]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - shadow-utils/shadow-utils.nm
tmux: Update to 2.2
[people/amarx/ipfire-3.x.git] / shadow-utils / shadow-utils.nm
CommitLineData
714e50f5 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
714e50f5
MT
4###############################################################################
5
802ea3af 6name = shadow-utils
d1d527f8 7version = 4.2.1
4ca9f4ac 8release = 2.1
d1c9beb3 9thisapp = shadow-%{version}
714e50f5 10
802ea3af 11maintainer = Michael Tremer <michael.tremer@ipfire.org>
bf2a8b13 12groups = System/Base
802ea3af
MT
13url = http://pkg-shadow.alioth.debian.org/
14license = GPLv2+
15summary = Utilities to deal with user accounts.
714e50f5 16
802ea3af
MT
17description
18 The shadow-utils package includes the necessary programs
19 for converting UNIX password files to the shadow password
20 format, plus programs for managing user and group accounts.
21end
714e50f5 22
802ea3af 23source_dl = http://pkg-shadow.alioth.debian.org/releases/
d1d527f8 24sources = %{thisapp}.tar.xz
714e50f5 25
802ea3af
MT
26build
27 requires
28 audit-devel
d1d527f8
MT
29 bison
30 flex
4ca9f4ac 31 gnome-doc-utils
d1d527f8
MT
32 libacl-devel
33 libattr-devel
802ea3af
MT
34 libcap-devel
35 libselinux-devel
066a2dae 36 libsemanage-devel
802ea3af 37 end
714e50f5 38
802ea3af 39 configure_options += \
802ea3af
MT
40 --enable-shadowgrp \
41 --with-sha-crypt \
42 --with-selinux \
43 --without-libcrack \
44 --without-libpam \
d1d527f8
MT
45 --disable-static \
46 --with-group-name-max-length=32
47
802ea3af
MT
48 prepare_cmds
49 # Do not build these files:
714e50f5
MT
50 for i in nologin chfn chgpasswd chpasswd chsh expiry gpasswd groups login \
51 logoutd passwd su; do \
d1c9beb3
MT
52 sed -i "s/$i\$(EXEEXT)//" src/Makefile.in; \
53 find man -name Makefile.in -exec sed -i "s/$i\.1/ /" {} \;; \
714e50f5 54 done
bbaafb6b 55
802ea3af
MT
56 sed -i src/Makefile.in \
57 -e "s/^suidbins.*/# &/" -e "s/^suidubins.*/# &/"
714e50f5 58
802ea3af
MT
59 # Do not install korean and zh man pages
60 sed -i -e 's/ ko//' -e 's/ zh_CN zh_TW//' man/Makefile.in
bd15364e 61
802ea3af
MT
62 # Do not install russion man pages - was broken in 4.1.4.3
63 sed -i -e 's/ ru//' man/Makefile.in
64 end
bd15364e 65
802ea3af
MT
66 install_cmds
67 # Remove man pages in other languages
68 rm -rfv %{BUILDROOT}/usr/share/man/{cs,de,fi,fr,hu,id,it,ja,pl,pt_BR,ru,sv,tr}
cadb2dbb
MT
69
70 # Remove duplicate man pages.
71 rm -vf %{BUILDROOT}/usr/share/man/man*/{getspnam,nologin,passwd}.*
802ea3af
MT
72 end
73end
a4de5755 74
802ea3af
MT
75packages
76 package %{name}
4a1f50e0 77 groups += Base Build
bf2a8b13 78
6738176b
MT
79 obsoletes += shadow<%{thisver}
80 provides += shadow=%{thisver}
d1c9beb3
MT
81
82 conflicts
d1c9beb3
MT
83 pam<1.1.0-4
84 end
7b28d8be
MT
85
86 configfiles
87 /etc/default/useradd
88 end
802ea3af 89 end
1f9bc2f0
MT
90
91 package %{name}-debuginfo
92 template DEBUGINFO
93 end
802ea3af 94end