]>
Commit | Line | Data |
---|---|---|
714e50f5 MT |
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 | |
bbaafb6b | 28 | PKG_VER = 4.1.4.3 |
4c113bd2 | 29 | PKG_REL = 4 |
714e50f5 MT |
30 | |
31 | PKG_MAINTAINER = | |
bb7d617c | 32 | PKG_GROUPS = System/Base |
714e50f5 MT |
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 | ||
5f157e9d | 37 | PKG_BUILD_DEPS+= audit-devel libcap-devel libselinux-devel |
bd15364e | 38 | |
714e50f5 MT |
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 | ||
714e50f5 MT |
47 | CONFIGURE_OPTIONS += \ |
48 | --sysconfdir=/etc \ | |
49 | --enable-shadowgrp \ | |
50 | --with-sha-crypt \ | |
5f157e9d | 51 | --with-selinux \ |
714e50f5 MT |
52 | --without-libcrack \ |
53 | --without-libpam \ | |
54 | --disable-static | |
55 | ||
714e50f5 MT |
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 | |
bbaafb6b SS |
69 | |
70 | # Do not install russion man pages - was broken in 4.1.4.3 | |
71 | cd $(DIR_APP) && sed -i -e 's/ ru//' man/Makefile.in | |
714e50f5 MT |
72 | endef |
73 | ||
74 | define STAGE_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} | |
4c113bd2 | 77 | endef |
bd15364e | 78 | |
4c113bd2 | 79 | define STAGE_INSTALL_POST |
bd15364e MT |
80 | # Capabilities |
81 | chmod u-s $(BUILDROOT)/usr/bin/chage | |
82 | setcap cap_dac_read_search+ep $(BUILDROOT)/usr/bin/chage | |
83 | ||
84 | chmod u-s $(BUILDROOT)/usr/bin/newgrp | |
85 | setcap cap_dac_override,cap_setgid+ep $(BUILDROOT)/usr/bin/newgrp | |
714e50f5 | 86 | endef |