]>
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 | |
28 | PKG_VER = 4.1.4.2 | |
29 | PKG_REL = 0 | |
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 | define PKG_DESCRIPTION | |
38 | The shadow-utils package includes the necessary programs \ | |
39 | for converting UNIX password files to the shadow password \ | |
40 | format, plus programs for managing user and group accounts. | |
41 | endef | |
42 | ||
43 | PKG_TARBALL = $(THISAPP).tar.bz2 | |
44 | ||
45 | # Modification of the user and shell permissions | |
46 | PKG_PATCHES += $(THISAPP)-ipfire.patch | |
47 | ||
48 | # Username check for umlauts | |
49 | PKG_PATCHES += $(THISAPP)-goodname.patch | |
50 | ||
51 | CONFIGURE_OPTIONS += \ | |
52 | --sysconfdir=/etc \ | |
53 | --enable-shadowgrp \ | |
54 | --with-sha-crypt \ | |
55 | --without-selinux \ | |
56 | --without-libcrack \ | |
57 | --without-libpam \ | |
58 | --disable-static | |
59 | ||
60 | ############################################################################### | |
61 | # Installation Details | |
62 | ############################################################################### | |
63 | ||
64 | define STAGE_PREPARE_CMDS | |
65 | # Do not build these files: | |
66 | cd $(DIR_APP) && \ | |
67 | for i in nologin chfn chgpasswd chpasswd chsh expiry gpasswd groups login \ | |
68 | logoutd passwd su; do \ | |
69 | sed -i "s/$$i\$$(EXEEXT)//" src/Makefile.in; \ | |
70 | find man -name Makefile.in -exec sed -i "s/$$i\.1/ /" {} \;; \ | |
71 | done | |
72 | cd $(DIR_APP) && sed -i src/Makefile.in \ | |
73 | -e "s/^suidbins.*/# &/" -e "s/^suidubins.*/# &/" | |
74 | ||
75 | # Do not install korean and zh man pages | |
76 | cd $(DIR_APP) && sed -i -e 's/ ko//' -e 's/ zh_CN zh_TW//' man/Makefile.in | |
77 | endef | |
78 | ||
79 | define STAGE_INSTALL_CMDS | |
80 | # Remove man pages in other languages | |
81 | rm -rfv $(BUILDROOT)/usr/share/man/{cs,de,fi,fr,hu,id,it,ja,pl,pt_BR,ru,sv,tr} | |
82 | endef |