]> git.ipfire.org Git - ipfire-3.x.git/blob - shadow-utils/shadow-utils.nm
shadow-utils: Update to 4.4.
[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.4
8 release = 1
9 thisapp = shadow-%{version}
10
11 maintainer = Michael Tremer <michael.tremer@ipfire.org>
12 groups = System/Base
13 url = https://github.com/shadow-maint/shadow/
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 = https://github.com/shadow-maint/shadow/archive/%{version}.tar.gz#/
24
25 build
26 requires
27 autoconf
28 automake
29 audit-devel
30 bison
31 docbook-xsl
32 flex
33 gettext-devel
34 gnome-doc-utils
35 libacl-devel
36 libattr-devel
37 libcap-devel
38 libtool
39 end
40
41 configure_options += \
42 --enable-shadowgrp \
43 --enable-man \
44 --with-sha-crypt \
45 --without-libcrack \
46 --without-libpam \
47 --disable-static \
48 --with-group-name-max-length=32
49
50 prepare_cmds
51 autoreconf -vfi
52
53 # Do not build these files:
54 for i in nologin chfn chgpasswd chpasswd chsh expiry gpasswd groups login \
55 logoutd passwd su; do \
56
57 # Do not generate any manpages for them.
58 find man -name Makefile.in -exec sed -i -e "/$i\.[1-9]\.xml/d" {} \;; \
59 find man -name Makefile.in -exec sed -i -e "s/man1\/$i\.1/ /" {} \;; \
60
61 # Do not compile them.
62 sed -i "s/$i\$(EXEEXT)//" src/Makefile.in; \
63 done
64
65 sed -i src/Makefile.in \
66 -e "s/^suidbins.*/# &/" -e "s/^suidubins.*/# &/"
67
68 # Do not install korean and zh man pages
69 sed -i -e 's/ ko//' -e 's/ zh_CN zh_TW//' man/Makefile.in
70
71 # Do not install russion man pages - was broken in 4.1.4.3
72 sed -i -e 's/ ru//' man/Makefile.in
73 end
74
75 install_cmds
76 # Remove man pages in other languages
77 rm -rfv %{BUILDROOT}/usr/share/man/{cs,de,fi,fr,hu,id,it,ja,pl,pt_BR,ru,sv,tr}
78
79 # Remove duplicate man pages.
80 rm -vf %{BUILDROOT}/usr/share/man/man*/{getspnam,nologin,passwd}.*
81 end
82 end
83
84 packages
85 package %{name}
86 groups += Base Build
87
88 obsoletes += shadow<%{thisver}
89 provides += shadow=%{thisver}
90
91 conflicts
92 pam<1.1.0-4
93 end
94
95 configfiles
96 /etc/default/useradd
97 end
98 end
99
100 package %{name}-debuginfo
101 template DEBUGINFO
102 end
103 end