1 ###############################################################################
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
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. #
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. #
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/>. #
19 ###############################################################################
21 ###############################################################################
23 ###############################################################################
25 include $(PKGROOT)/Include
32 PKG_GROUP = System/Base
33 PKG_URL = ftp://pkg-shadow.alioth.debian.org/pub/pkg-shadow/
35 PKG_SUMMARY = Utilities to deal with user accounts.
37 PKG_BUILD_DEPS+= audit-devel libcap-devel libselinux-devel
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.
45 PKG_TARBALL = $(THISAPP).tar.bz2
47 CONFIGURE_OPTIONS += \
56 define STAGE_PREPARE_CMDS
57 # Do not build these files:
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/ /" {} \;; \
64 cd $(DIR_APP) && sed -i src/Makefile.in \
65 -e "s/^suidbins.*/# &/" -e "s/^suidubins.*/# &/"
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
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}
76 chmod u-s $(BUILDROOT)/usr/bin/chage
77 setcap cap_dac_read_search+ep $(BUILDROOT)/usr/bin/chage
79 chmod u-s $(BUILDROOT)/usr/bin/newgrp
80 setcap cap_dac_override,cap_setgid+ep $(BUILDROOT)/usr/bin/newgrp