Annotation of /trunk/core/shadow/shadow-4.1.4.2-r2.smage2
Parent Directory | Revision Log
Revision 3078 -
(hide annotations)
(download)
Tue Oct 13 08:09:04 2009 UTC (14 years, 11 months ago) by niro
File size: 3572 byte(s)
Tue Oct 13 08:09:04 2009 UTC (14 years, 11 months ago) by niro
File size: 3572 byte(s)
auto added: ver bump to 4.1.4.2-r2
1 | niro | 3078 | # $Id$ |
2 | |||
3 | PNAME="shadow" | ||
4 | PVER="4.1.4.2" | ||
5 | PBUILD="r2" | ||
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-4 | ||
15 | >= sys-libs/pam-1.10 | ||
16 | >= sys-libs/cracklib-2.8" | ||
17 | |||
18 | SDEPEND=">= sys-dev/autoconf-5 | ||
19 | >= sys-dev/automake-4 | ||
20 | >= sys-dev/libtool-2.2" | ||
21 | |||
22 | SRCFILE="${PNAME}-${PVER}.tar.bz2" | ||
23 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
24 | |||
25 | # no shared libs get installed, is multilib needed anymore? | ||
26 | sminclude multilib mtools | ||
27 | |||
28 | SRC_URI=( | ||
29 | ftp://pkg-${PNAME}.alioth.debian.org/pub/pkg-${PNAME}/${SRCFILE} | ||
30 | mirror://${PNAME}/${SRCFILE} | ||
31 | mirror://${PNAME}/securetty | ||
32 | mirror://${PNAME}/pamd/chage | ||
33 | mirror://${PNAME}/pamd/login | ||
34 | mirror://${PNAME}/pamd/other | ||
35 | mirror://${PNAME}/pamd/passwd | ||
36 | mirror://${PNAME}/pamd/su | ||
37 | mirror://${PNAME}/${PNAME}-4.1.2.1-defaults.patch | ||
38 | ) | ||
39 | |||
40 | UP2DATE="updatecmd ${HOMEPAGE} | grep 'New release' | sed 's/.*: \(.*\).*/\1/;q'" | ||
41 | |||
42 | src_prepare() | ||
43 | { | ||
44 | munpack ${SRCFILE} || die | ||
45 | |||
46 | # fixes useradd default settings (create_mail_spool) | ||
47 | mpatch ${PNAME}-4.1.2.1-defaults.patch || die | ||
48 | |||
49 | # do not build 'groups'; coreutils provide a better version | ||
50 | all-abis "sed -i 's/groups$(EXEEXT) //' src/Makefile.in" || die | ||
51 | all-abis "sed -i '/groups/d' man/Makefile.in" || die | ||
52 | } | ||
53 | |||
54 | src_compile() | ||
55 | { | ||
56 | # configures shadow with pam | ||
57 | mconfigure \ | ||
58 | --enable-shared \ | ||
59 | --with-libpam \ | ||
60 | --with-libcrack \ | ||
61 | --with-libcrypt \ | ||
62 | --enable-nls \ | ||
63 | --without-selinux \ | ||
64 | || die | ||
65 | |||
66 | mmake || die | ||
67 | } | ||
68 | |||
69 | src_install() | ||
70 | { | ||
71 | # needed directories | ||
72 | minstalldir /etc/{default,skel} || die | ||
73 | |||
74 | # added exec_prefix for better bin location | ||
75 | mmake DESTDIR=${BINDIR} install || die | ||
76 | |||
77 | minstalletc etc/limits limits || die | ||
78 | minstalletc etc/login.access login.access || die | ||
79 | |||
80 | # makes recovery easier, when /usr is not mounted :) | ||
81 | mv -v ${BINDIR}/usr/bin/passwd ${BINDIR}/bin || die | ||
82 | mlink /bin/passwd /usr/bin || die | ||
83 | |||
84 | # not provided by shadow anymore; install our own now | ||
85 | minstalletc securetty || die | ||
86 | |||
87 | # install pam related configuration files | ||
88 | minstallpam chage || die | ||
89 | minstallpam login || die | ||
90 | minstallpam other || die | ||
91 | minstallpam passwd || die | ||
92 | minstallpam su || die | ||
93 | minstallpam chage chpasswd || die | ||
94 | minstallpam chage chfn || die | ||
95 | minstallpam chage chsh || die | ||
96 | minstallpam chage newusers || die | ||
97 | minstallpam chage groupadd || die | ||
98 | minstallpam chage groupdel || die | ||
99 | minstallpam chage groupmod || die | ||
100 | minstallpam chage useradd || die | ||
101 | minstallpam chage userdel || die | ||
102 | minstallpam chage usermod || die | ||
103 | |||
104 | # disable these checks as pam controls them now | ||
105 | sed -e "s/^DIALUPS_CHECK_ENAB/# &/" \ | ||
106 | -e "s/^LASTLOG_ENAB/# &/" \ | ||
107 | -e "s/^MAIL_CHECK_ENAB/# &/" \ | ||
108 | -e "s/^PORTTIME_CHECKS_ENAB/# &/" \ | ||
109 | -e "s/^CONSOLE/# &/" \ | ||
110 | -e "s/^MOTD_FILE/# &/" \ | ||
111 | -e "s/^NOLOGINS_FILE/# &/" \ | ||
112 | -e "s/^PASS_MIN_LEN/# &/" \ | ||
113 | -e "s/^SU_WHEEL_ONLY/# &/" \ | ||
114 | -e "s/^CONSOLE_GROUPS/# &/" \ | ||
115 | -e "s/^ENVIRON_FILE/# &/" \ | ||
116 | -e "s/^OBSCURE_CHECKS_ENAB/# &/" \ | ||
117 | -e "s/^CRACKLIB_DICTPATH/# &/" \ | ||
118 | -e "s/^PASS_CHANGE_TRIES/# &/" \ | ||
119 | -e "s/^PASS_ALWAYS_WARN/# &/" \ | ||
120 | -e "s/^FAILLOG_ENAB/# &/" \ | ||
121 | -e "s/^QUOTAS_ENAB/# &/" \ | ||
122 | -e "s/^FTMP_FILE/# &/" \ | ||
123 | -e "s/^ENV_HZ/# &/" \ | ||
124 | -e "s/^CHFN_AUTH/# &/" \ | ||
125 | etc/login.defs > ${BINDIR}/etc/login.defs || die | ||
126 | |||
127 | # fix some pathes in login.defs | ||
128 | # md5crypt is also controlled by pam ! | ||
129 | sed -i -e "s/^MD5_CRYPT_ENAB/# &/" \ | ||
130 | -e 's%/var/spool/mail%/var/mail%' \ | ||
131 | -e 's@DICTPATH.*@DICTPATH\t/lib/cracklib/pw_dict@' \ | ||
132 | ${BINDIR}/etc/login.defs || die | ||
133 | } | ||
134 | |||
135 | postinstall() | ||
136 | { | ||
137 | if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] | ||
138 | then | ||
139 | /usr/sbin/pwconv | ||
140 | /usr/sbin/grpconv | ||
141 | fi | ||
142 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |