]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - shadow-utils/shadow-utils.nm
Move all packages to root.
[people/ms/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
8release = 1
714e50f5 9
802ea3af
MT
10maintainer = Michael Tremer <michael.tremer@ipfire.org>
11groups = Base System/Base
12url = http://pkg-shadow.alioth.debian.org/
13license = GPLv2+
14summary = Utilities to deal with user accounts.
714e50f5 15
802ea3af
MT
16description
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.
20end
714e50f5 21
802ea3af
MT
22obsoletes += shadow
23thisapp = shadow-%{version}
bd15364e 24
802ea3af
MT
25source_dl = http://pkg-shadow.alioth.debian.org/releases/
26sources = %{thisapp}.tar.bz2
714e50f5 27
802ea3af
MT
28build
29 requires
30 audit-devel
31 libcap-devel
32 libselinux-devel
33 end
714e50f5 34
802ea3af
MT
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
714e50f5 43
802ea3af
MT
44 prepare_cmds
45 # Do not build these files:
714e50f5
MT
46 for i in nologin chfn chgpasswd chpasswd chsh expiry gpasswd groups login \
47 logoutd passwd su; do \
802ea3af 48 sed -i "s/$$i\$%{EXEEXT}//" src/Makefile.in; \
714e50f5
MT
49 find man -name Makefile.in -exec sed -i "s/$$i\.1/ /" {} \;; \
50 done
bbaafb6b 51
802ea3af
MT
52 sed -i src/Makefile.in \
53 -e "s/^suidbins.*/# &/" -e "s/^suidubins.*/# &/"
714e50f5 54
802ea3af
MT
55 # Do not install korean and zh man pages
56 sed -i -e 's/ ko//' -e 's/ zh_CN zh_TW//' man/Makefile.in
bd15364e 57
802ea3af
MT
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
bd15364e 61
802ea3af
MT
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
66end
a4de5755 67
802ea3af
MT
68packages
69 package %{name}
70 end
71end