]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - pkgs/shadow/shadow.nm
Move packages to pkgs subdirectory.
[people/ms/ipfire-3.x.git] / pkgs / shadow / shadow.nm
1 ###############################################################################
2 # #
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
5 # #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
10 # #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
15 # #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
18 # #
19 ###############################################################################
20
21 ###############################################################################
22 # Definitions
23 ###############################################################################
24
25 include $(PKGROOT)/Include
26
27 PKG_NAME = shadow
28 PKG_VER = 4.1.4.2
29 PKG_REL = 2
30
31 PKG_MAINTAINER =
32 PKG_GROUP = System/Base
33 PKG_URL = ftp://pkg-shadow.alioth.debian.org/pub/pkg-shadow/
34 PKG_LICENSE = GPLv2+
35 PKG_SUMMARY = Utilities to deal with user accounts.
36
37 PKG_BUILD_DEPS+= audit-devel libcap-devel libselinux-devel
38
39 define PKG_DESCRIPTION
40 The shadow-utils package includes the necessary programs \
41 for converting UNIX password files to the shadow password \
42 format, plus programs for managing user and group accounts.
43 endef
44
45 PKG_TARBALL = $(THISAPP).tar.bz2
46
47 CONFIGURE_OPTIONS += \
48 --sysconfdir=/etc \
49 --enable-shadowgrp \
50 --with-sha-crypt \
51 --with-selinux \
52 --without-libcrack \
53 --without-libpam \
54 --disable-static
55
56 define STAGE_PREPARE_CMDS
57 # Do not build these files:
58 cd $(DIR_APP) && \
59 for i in nologin chfn chgpasswd chpasswd chsh expiry gpasswd groups login \
60 logoutd passwd su; do \
61 sed -i "s/$$i\$$(EXEEXT)//" src/Makefile.in; \
62 find man -name Makefile.in -exec sed -i "s/$$i\.1/ /" {} \;; \
63 done
64 cd $(DIR_APP) && sed -i src/Makefile.in \
65 -e "s/^suidbins.*/# &/" -e "s/^suidubins.*/# &/"
66
67 # Do not install korean and zh man pages
68 cd $(DIR_APP) && sed -i -e 's/ ko//' -e 's/ zh_CN zh_TW//' man/Makefile.in
69 endef
70
71 define STAGE_INSTALL_CMDS
72 # Remove man pages in other languages
73 rm -rfv $(BUILDROOT)/usr/share/man/{cs,de,fi,fr,hu,id,it,ja,pl,pt_BR,ru,sv,tr}
74
75 # Capabilities
76 chmod u-s $(BUILDROOT)/usr/bin/chage
77 setcap cap_dac_read_search+ep $(BUILDROOT)/usr/bin/chage
78
79 chmod u-s $(BUILDROOT)/usr/bin/newgrp
80 setcap cap_dac_override,cap_setgid+ep $(BUILDROOT)/usr/bin/newgrp
81 endef