Contents of /smage/trunk/core/shadow/shadow-4.1.0-r1.smage2
Parent Directory | Revision Log
Revision 6 -
(show annotations)
(download)
Sun Jan 11 01:07:49 2009 UTC (15 years, 3 months ago) by niro
File size: 4072 byte(s)
Sun Jan 11 01:07:49 2009 UTC (15 years, 3 months ago) by niro
File size: 4072 byte(s)
-fixed old cvs headers
1 | # $Id$ |
2 | |
3 | PNAME="shadow" |
4 | PVER="4.1.0" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="sys-apps" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="Utilities to deal with user accounts, with pam support." |
11 | HOMEPAGE="http://pkg-shadow.alioth.debian.org/" |
12 | |
13 | DEPEND=">= virtual/glibc |
14 | >= app-shells/bash-3 |
15 | >= sys-libs/pam-0.99 |
16 | >= sys-libs/cracklib-2.8" |
17 | |
18 | SDEPEND=">= sys-dev/autoconf-4 |
19 | >= sys-dev/automake-3 |
20 | >= sys-dev/libtool-1.5" |
21 | |
22 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
23 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
24 | |
25 | sminclude multilib mtools alx |
26 | |
27 | SRC_URI=( |
28 | ftp://pkg-${PNAME}.alioth.debian.org/pub/pkg-${PNAME}/${SRCFILE} |
29 | mirror://${PNAME}/${SRCFILE} |
30 | mirror://${PNAME}/securetty |
31 | mirror://${PNAME}/pamd/chage |
32 | mirror://${PNAME}/pamd/login |
33 | mirror://${PNAME}/pamd/other |
34 | mirror://${PNAME}/pamd/passwd |
35 | mirror://${PNAME}/pamd/su |
36 | mirror://${PNAME}/${PNAME}-${PVER}-defaults.patch |
37 | ) |
38 | |
39 | src_prepare() |
40 | { |
41 | munpack ${SRCFILE} || die |
42 | |
43 | # fixes useradd default settings (home gid etc) |
44 | # since shadow-4.1.0 we have mail_spool_createn disabled too |
45 | mpatch ${PNAME}-${PVER}-defaults.patch || die |
46 | |
47 | local abi |
48 | for abi in ${MULTILIB_ABIS} |
49 | do |
50 | cd ${SRCDIR}-${abi} |
51 | # do not build 'groups'; coreutils provide a better version |
52 | sed -i 's/groups$(EXEEXT) //' src/Makefile.in || die |
53 | sed -i '/groups/d' man/Makefile.in || die |
54 | |
55 | if [[ ${abi} = m64 ]]; then |
56 | sed -i configure \ |
57 | -e 's@\(^sys_lib_search_path_spec=\).*@\1"/lib64 /usr/lib64 /usr/local/lib64"@g' \ |
58 | -e 's@\(^sys_lib_dlsearch_path_spec=\).*@\1"/lib64 /usr/lib64 /usr/local/lib64"@g' \ |
59 | || die |
60 | fi |
61 | done |
62 | } |
63 | |
64 | src_compile() |
65 | { |
66 | # configures shadow with pam |
67 | all-abis mconfigure \ |
68 | --enable-shared \ |
69 | --with-libpam \ |
70 | --with-libcrack \ |
71 | --with-libcrypt \ |
72 | --enable-nls \ |
73 | --without-selinux \ |
74 | || die |
75 | |
76 | mmake || die |
77 | } |
78 | |
79 | src_install() |
80 | { |
81 | # needed directories |
82 | minstalldir /etc/{default,skel} || die |
83 | |
84 | all-abis minstalldir /'$(mlibdir)' || die |
85 | |
86 | # added exec_prefix for better bin location |
87 | all-abis make DESTDIR=${BINDIR} install || die |
88 | |
89 | # move libs to a proper location |
90 | all-abis mv ${BINDIR}/usr/'$(mlibdir)'/libshadow.so.0* ${BINDIR}/'$(mlibdir)' || die |
91 | all-abis mlink ../../'$(mlibdir)'/libshadow.so.0 /usr/'$(mlibdir)'/libshadow.so || die |
92 | |
93 | minstalletc etc/limits limits || die |
94 | minstalletc etc/login.access login.access || die |
95 | |
96 | # makes recovery easier, when /usr is not mounted :) |
97 | mv -v ${BINDIR}/usr/bin/passwd ${BINDIR}/bin || die |
98 | mlink /bin/passwd /usr/bin || die |
99 | |
100 | # not provided by shadow anymore; install our own now |
101 | minstalletc securetty || die |
102 | |
103 | # install pam related configuration files |
104 | minstallpam chage || die |
105 | minstallpam login || die |
106 | minstallpam other || die |
107 | minstallpam passwd || die |
108 | minstallpam su || die |
109 | minstallpam chage chpasswd || die |
110 | minstallpam chage chfn || die |
111 | minstallpam chage chsh || die |
112 | minstallpam chage newusers || die |
113 | minstallpam chage groupadd || die |
114 | minstallpam chage groupdel || die |
115 | minstallpam chage groupmod || die |
116 | minstallpam chage useradd || die |
117 | minstallpam chage userdel || die |
118 | minstallpam chage usermod || die |
119 | |
120 | # disable these checks as pam controls them now |
121 | sed -e "s/^DIALUPS_CHECK_ENAB/# &/" \ |
122 | -e "s/^LASTLOG_ENAB/# &/" \ |
123 | -e "s/^MAIL_CHECK_ENAB/# &/" \ |
124 | -e "s/^PORTTIME_CHECKS_ENAB/# &/" \ |
125 | -e "s/^CONSOLE/# &/" \ |
126 | -e "s/^MOTD_FILE/# &/" \ |
127 | -e "s/^NOLOGINS_FILE/# &/" \ |
128 | -e "s/^PASS_MIN_LEN/# &/" \ |
129 | -e "s/^SU_WHEEL_ONLY/# &/" \ |
130 | -e "s/^CONSOLE_GROUPS/# &/" \ |
131 | -e "s/^ENVIRON_FILE/# &/" \ |
132 | -e "s/^OBSCURE_CHECKS_ENAB/# &/" \ |
133 | -e "s/^CRACKLIB_DICTPATH/# &/" \ |
134 | -e "s/^PASS_CHANGE_TRIES/# &/" \ |
135 | -e "s/^PASS_ALWAYS_WARN/# &/" \ |
136 | -e "s/^FAILLOG_ENAB/# &/" \ |
137 | -e "s/^QUOTAS_ENAB/# &/" \ |
138 | -e "s/^FTMP_FILE/# &/" \ |
139 | -e "s/^ENV_HZ/# &/" \ |
140 | -e "s/^CHFN_AUTH/# &/" \ |
141 | etc/login.defs > ${BINDIR}/etc/login.defs || die |
142 | |
143 | # fix some pathes in login.defs |
144 | # md5crypt is also controlled by pam ! |
145 | sed -i -e "s/^MD5_CRYPT_ENAB/# &/" \ |
146 | -e 's%/var/spool/mail%/var/mail%' \ |
147 | -e 's@DICTPATH.*@DICTPATH\t/lib/cracklib/pw_dict@' \ |
148 | ${BINDIR}/etc/login.defs || die |
149 | } |
150 | |
151 | postinstall() |
152 | { |
153 | if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] |
154 | then |
155 | /usr/sbin/pwconv |
156 | /usr/sbin/grpconv |
157 | fi |
158 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |