Magellan Linux

Contents of /branches/magellan-next/core/sudo/sudo-1.8.1p2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7780 - (show annotations) (download)
Wed Jun 1 16:11:10 2011 UTC (12 years, 11 months ago) by niro
File size: 1351 byte(s)
auto added: ver bump to 1.8.1p2-r1
1 # $Id$
2
3 PNAME="sudo"
4 PVER="1.8.1p2"
5 PBUILD="r1"
6
7 PCATEGORIE="app-admin"
8 STATE="unstable"
9
10 DESCRIPTION="sudo allows to give certain users the ability to run some commands as another user while logging the commands."
11 HOMEPAGE="http://www.sudo.ws/"
12
13 DEPEND=">= sys-libs/pam-1.1"
14
15 SRCFILE="${PNAME}-${PVER}.tar.gz"
16 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
17
18 sminclude mtools
19
20 SRC_URI=(
21 http://www.sudo.ws/${PNAME}/dist/${SRCFILE}
22 mirror://${PNAME}/${SRCFILE}
23 mirror://${PNAME}/sudo.pamd
24 mirror://${PNAME}/${PNAME}-1.8.0-allow-wheel.patch
25 )
26
27 UP2DATE="updatecmd http://www.sudo.ws/${PNAME}/dist | grep ${PNAME}- | lasttarball gz"
28
29 src_prepare()
30 {
31 munpack ${SRCFILE} || die
32 cd ${SRCDIR}
33
34 # allow the group wheel to run all commands
35 mpatch ${PNAME}-1.8.0-allow-wheel.patch || die
36 }
37
38 src_compile()
39 {
40 cd ${SRCDIR}
41
42 mconfigure \
43 --libexecdir=/usr/$(mlibdir)/sudo \
44 --with-all-insults \
45 --disable-path-info \
46 --with-env-editor \
47 --with-pam \
48 || die
49
50 mmake || die
51 }
52
53 src_install()
54 {
55 cd ${SRCDIR}
56 mmake DESTDIR=${BINDIR} install || die
57
58 # pam related configs
59 minstallpam sudo.pamd sudo || die
60
61 # fix permissions - /var and /var/db get 0700 and this breaks the system!
62 mchmod 0755 /var || die
63 mchmod 0755 /var/db || die
64
65 # docs
66 minstalldocs BUGS CHANGES HISTORY LICENSE PORTING \
67 README RUNSON TODO TROUBLESHOOTING UPGRADE \
68 || die
69 }