]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - pkgs/shadow-utils/shadow-utils.nm
7c8b7825ccf28e01aaa67e7cf1b3f45788f2fcea
[people/amarx/ipfire-3.x.git] / pkgs / 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 = 1
9
10 maintainer = Michael Tremer <michael.tremer@ipfire.org>
11 groups = Base System/Base
12 url = http://pkg-shadow.alioth.debian.org/
13 license = GPLv2+
14 summary = Utilities to deal with user accounts.
15
16 description
17 The shadow-utils package includes the necessary programs
18 for converting UNIX password files to the shadow password
19 format, plus programs for managing user and group accounts.
20 end
21
22 obsoletes += shadow
23 thisapp = shadow-%{version}
24
25 source_dl = http://pkg-shadow.alioth.debian.org/releases/
26 sources = %{thisapp}.tar.bz2
27
28 build
29 requires
30 audit-devel
31 libcap-devel
32 libselinux-devel
33 end
34
35 configure_options += \
36 --sysconfdir=/etc \
37 --enable-shadowgrp \
38 --with-sha-crypt \
39 --with-selinux \
40 --without-libcrack \
41 --without-libpam \
42 --disable-static
43
44 prepare_cmds
45 # Do not build these files:
46 for i in nologin chfn chgpasswd chpasswd chsh expiry gpasswd groups login \
47 logoutd passwd su; do \
48 sed -i "s/$$i\$%{EXEEXT}//" src/Makefile.in; \
49 find man -name Makefile.in -exec sed -i "s/$$i\.1/ /" {} \;; \
50 done
51
52 sed -i src/Makefile.in \
53 -e "s/^suidbins.*/# &/" -e "s/^suidubins.*/# &/"
54
55 # Do not install korean and zh man pages
56 sed -i -e 's/ ko//' -e 's/ zh_CN zh_TW//' man/Makefile.in
57
58 # Do not install russion man pages - was broken in 4.1.4.3
59 sed -i -e 's/ ru//' man/Makefile.in
60 end
61
62 install_cmds
63 # Remove man pages in other languages
64 rm -rfv %{BUILDROOT}/usr/share/man/{cs,de,fi,fr,hu,id,it,ja,pl,pt_BR,ru,sv,tr}
65 end
66 end
67
68 packages
69 package %{name}
70 end
71 end