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