]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - shadow-utils/shadow-utils.nm
shadow-utils: Fix package replacement.
[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
MT
6name = shadow-utils
7version = 4.1.4.3
6738176b 8release = 3
d1c9beb3 9thisapp = shadow-%{version}
714e50f5 10
802ea3af
MT
11maintainer = Michael Tremer <michael.tremer@ipfire.org>
12groups = Base System/Base
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
MT
23source_dl = http://pkg-shadow.alioth.debian.org/releases/
24sources = %{thisapp}.tar.bz2
714e50f5 25
802ea3af
MT
26build
27 requires
28 audit-devel
29 libcap-devel
30 libselinux-devel
31 end
714e50f5 32
802ea3af
MT
33 configure_options += \
34 --sysconfdir=/etc \
35 --enable-shadowgrp \
36 --with-sha-crypt \
37 --with-selinux \
38 --without-libcrack \
39 --without-libpam \
40 --disable-static
714e50f5 41
802ea3af
MT
42 prepare_cmds
43 # Do not build these files:
714e50f5
MT
44 for i in nologin chfn chgpasswd chpasswd chsh expiry gpasswd groups login \
45 logoutd passwd su; do \
d1c9beb3
MT
46 sed -i "s/$i\$(EXEEXT)//" src/Makefile.in; \
47 find man -name Makefile.in -exec sed -i "s/$i\.1/ /" {} \;; \
714e50f5 48 done
bbaafb6b 49
802ea3af
MT
50 sed -i src/Makefile.in \
51 -e "s/^suidbins.*/# &/" -e "s/^suidubins.*/# &/"
714e50f5 52
802ea3af
MT
53 # Do not install korean and zh man pages
54 sed -i -e 's/ ko//' -e 's/ zh_CN zh_TW//' man/Makefile.in
bd15364e 55
802ea3af
MT
56 # Do not install russion man pages - was broken in 4.1.4.3
57 sed -i -e 's/ ru//' man/Makefile.in
58 end
bd15364e 59
802ea3af
MT
60 install_cmds
61 # Remove man pages in other languages
62 rm -rfv %{BUILDROOT}/usr/share/man/{cs,de,fi,fr,hu,id,it,ja,pl,pt_BR,ru,sv,tr}
63 end
64end
a4de5755 65
802ea3af
MT
66packages
67 package %{name}
6738176b
MT
68 obsoletes += shadow<%{thisver}
69 provides += shadow=%{thisver}
d1c9beb3
MT
70
71 conflicts
d1c9beb3
MT
72 pam<1.1.0-4
73 end
802ea3af
MT
74 end
75end