Magellan Linux

Contents of /smage/trunk/core/shadow/shadow-4.1.4.2-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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