Contents of /trunk/core/shadow/shadow-4.1.2.1-r1.smage2
Parent Directory | Revision Log
Revision 167 -
(show annotations)
(download)
Tue Oct 14 19:57:18 2008 UTC (15 years, 8 months ago) by niro
File size: 3603 byte(s)
Tue Oct 14 19:57:18 2008 UTC (15 years, 8 months ago) by niro
File size: 3603 byte(s)
-fixed more build issues
1 | # $Header: /magellan-cvs/smage/shadow/shadow-4.1.0-r1.smage2,v 1.2 2008/02/10 11:28:22 niro Exp $ |
2 | |
3 | PNAME="shadow" |
4 | PVER="4.1.2.1" |
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 |
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 | UP2DATE="updatecmd ${HOMEPAGE} | grep 'New release' | sed 's/.*: \(.*\).*/\1/;q'" |
40 | |
41 | src_prepare() |
42 | { |
43 | munpack ${SRCFILE} || die |
44 | |
45 | # fixes useradd default settings (create_mail_spool) |
46 | mpatch ${PNAME}-${PVER}-defaults.patch || die |
47 | |
48 | # do not build 'groups'; coreutils provide a better version |
49 | all-abis "sed -i 's/groups$(EXEEXT) //' src/Makefile.in" || die |
50 | all-abis "sed -i '/groups/d' man/Makefile.in" || die |
51 | } |
52 | |
53 | src_compile() |
54 | { |
55 | # configures shadow with pam |
56 | mconfigure \ |
57 | --enable-shared \ |
58 | --with-libpam \ |
59 | --with-libcrack \ |
60 | --with-libcrypt \ |
61 | --enable-nls \ |
62 | --without-selinux \ |
63 | || die |
64 | |
65 | mmake || die |
66 | } |
67 | |
68 | src_install() |
69 | { |
70 | # needed directories |
71 | minstalldir /etc/{default,skel} || die |
72 | |
73 | # added exec_prefix for better bin location |
74 | mmake DESTDIR=${BINDIR} install || die |
75 | |
76 | minstalletc etc/limits limits || die |
77 | minstalletc etc/login.access login.access || die |
78 | |
79 | # makes recovery easier, when /usr is not mounted :) |
80 | mv -v ${BINDIR}/usr/bin/passwd ${BINDIR}/bin || die |
81 | mlink /bin/passwd /usr/bin || die |
82 | |
83 | # not provided by shadow anymore; install our own now |
84 | minstalletc securetty || die |
85 | |
86 | # install pam related configuration files |
87 | minstallpam chage || die |
88 | minstallpam login || die |
89 | minstallpam other || die |
90 | minstallpam passwd || die |
91 | minstallpam su || die |
92 | minstallpam chage chpasswd || die |
93 | minstallpam chage chfn || die |
94 | minstallpam chage chsh || die |
95 | minstallpam chage newusers || die |
96 | minstallpam chage groupadd || die |
97 | minstallpam chage groupdel || die |
98 | minstallpam chage groupmod || die |
99 | minstallpam chage useradd || die |
100 | minstallpam chage userdel || die |
101 | minstallpam chage usermod || die |
102 | |
103 | # disable these checks as pam controls them now |
104 | sed -e "s/^DIALUPS_CHECK_ENAB/# &/" \ |
105 | -e "s/^LASTLOG_ENAB/# &/" \ |
106 | -e "s/^MAIL_CHECK_ENAB/# &/" \ |
107 | -e "s/^PORTTIME_CHECKS_ENAB/# &/" \ |
108 | -e "s/^CONSOLE/# &/" \ |
109 | -e "s/^MOTD_FILE/# &/" \ |
110 | -e "s/^NOLOGINS_FILE/# &/" \ |
111 | -e "s/^PASS_MIN_LEN/# &/" \ |
112 | -e "s/^SU_WHEEL_ONLY/# &/" \ |
113 | -e "s/^CONSOLE_GROUPS/# &/" \ |
114 | -e "s/^ENVIRON_FILE/# &/" \ |
115 | -e "s/^OBSCURE_CHECKS_ENAB/# &/" \ |
116 | -e "s/^CRACKLIB_DICTPATH/# &/" \ |
117 | -e "s/^PASS_CHANGE_TRIES/# &/" \ |
118 | -e "s/^PASS_ALWAYS_WARN/# &/" \ |
119 | -e "s/^FAILLOG_ENAB/# &/" \ |
120 | -e "s/^QUOTAS_ENAB/# &/" \ |
121 | -e "s/^FTMP_FILE/# &/" \ |
122 | -e "s/^ENV_HZ/# &/" \ |
123 | -e "s/^CHFN_AUTH/# &/" \ |
124 | etc/login.defs > ${BINDIR}/etc/login.defs || die |
125 | |
126 | # fix some pathes in login.defs |
127 | # md5crypt is also controlled by pam ! |
128 | sed -i -e "s/^MD5_CRYPT_ENAB/# &/" \ |
129 | -e 's%/var/spool/mail%/var/mail%' \ |
130 | -e 's@DICTPATH.*@DICTPATH\t/lib/cracklib/pw_dict@' \ |
131 | ${BINDIR}/etc/login.defs || die |
132 | } |
133 | |
134 | postinstall() |
135 | { |
136 | if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] |
137 | then |
138 | /usr/sbin/pwconv |
139 | /usr/sbin/grpconv |
140 | fi |
141 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |