]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - shadow-utils/shadow-utils.nm
glibc: Update to 2.20
[people/ms/ipfire-3.x.git] / shadow-utils / shadow-utils.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = shadow-utils
7 version = 4.1.4.3
8 release = 7
9 thisapp = shadow-%{version}
10
11 maintainer = Michael Tremer <michael.tremer@ipfire.org>
12 groups = System/Base
13 url = http://pkg-shadow.alioth.debian.org/
14 license = GPLv2+
15 summary = Utilities to deal with user accounts.
16
17 description
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.
21 end
22
23 source_dl = http://pkg-shadow.alioth.debian.org/releases/
24 sources = %{thisapp}.tar.bz2
25
26 build
27 requires
28 audit-devel
29 libcap-devel
30 libselinux-devel
31 end
32
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
41
42 prepare_cmds
43 # Do not build these files:
44 for i in nologin chfn chgpasswd chpasswd chsh expiry gpasswd groups login \
45 logoutd passwd su; do \
46 sed -i "s/$i\$(EXEEXT)//" src/Makefile.in; \
47 find man -name Makefile.in -exec sed -i "s/$i\.1/ /" {} \;; \
48 done
49
50 sed -i src/Makefile.in \
51 -e "s/^suidbins.*/# &/" -e "s/^suidubins.*/# &/"
52
53 # Do not install korean and zh man pages
54 sed -i -e 's/ ko//' -e 's/ zh_CN zh_TW//' man/Makefile.in
55
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
59
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
64 # Remove duplicate man pages.
65 rm -vf %{BUILDROOT}/usr/share/man/man*/{getspnam,nologin,passwd}.*
66 end
67 end
68
69 packages
70 package %{name}
71 groups += Base Build
72
73 obsoletes += shadow<%{thisver}
74 provides += shadow=%{thisver}
75
76 conflicts
77 pam<1.1.0-4
78 end
79
80 configfiles
81 /etc/default/useradd
82 end
83 end
84
85 package %{name}-debuginfo
86 template DEBUGINFO
87 end
88 end