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