Annotation of /branches/R11-unstable/core/sudo/sudo-1.8.9p5-r1.smage2
Parent Directory | Revision Log
Revision 25072 -
(hide annotations)
(download)
Tue Nov 25 02:57:14 2014 UTC (9 years, 10 months ago) by niro
File size: 1933 byte(s)
Tue Nov 25 02:57:14 2014 UTC (9 years, 10 months ago) by niro
File size: 1933 byte(s)
-release branches/R11-unstable
1 | niro | 20899 | # $Id$ |
2 | |||
3 | PNAME="sudo" | ||
4 | PVER="1.8.9p5" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCAT="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 | mirror://${PNAME}/${PNAME}-1.8.5p2-preserve-magellan-env.patch | ||
25 | mirror://${PNAME}/${PNAME}-1.8.7-preserve-magellan-env-proxy.patch | ||
26 | mirror://${PNAME}/${PNAME}-1.8.5p2-disable-from-ssh-login.patch | ||
27 | ) | ||
28 | |||
29 | UP2DATE="updatecmd http://www.sudo.ws/${PNAME}/dist | grep ${PNAME}- | lasttarball gz" | ||
30 | |||
31 | src_prepare() | ||
32 | { | ||
33 | munpack ${SRCFILE} || die | ||
34 | cd ${SRCDIR} | ||
35 | |||
36 | # allow the group wheel to run all commands | ||
37 | mpatch ${PNAME}-1.8.0-allow-wheel.patch || die | ||
38 | |||
39 | # preserve some important magellan environment variables | ||
40 | mpatch ${PNAME}-1.8.5p2-preserve-magellan-env.patch || die | ||
41 | |||
42 | # preserve proxy variables too | ||
43 | mpatch ${PNAME}-1.8.7-preserve-magellan-env-proxy.patch || die | ||
44 | |||
45 | # disable sudo run from ssh logon for security reasons | ||
46 | mpatch ${PNAME}-1.8.5p2-disable-from-ssh-login.patch || die | ||
47 | } | ||
48 | |||
49 | src_compile() | ||
50 | { | ||
51 | cd ${SRCDIR} | ||
52 | |||
53 | mconfigure \ | ||
54 | --libexecdir=/usr/$(mlibdir)/sudo \ | ||
55 | --with-all-insults \ | ||
56 | --disable-path-info \ | ||
57 | --with-env-editor \ | ||
58 | --with-pam \ | ||
59 | || die | ||
60 | |||
61 | mmake || die | ||
62 | } | ||
63 | |||
64 | src_install() | ||
65 | { | ||
66 | cd ${SRCDIR} | ||
67 | mmake DESTDIR=${BINDIR} install || die | ||
68 | |||
69 | # keep empty dirs | ||
70 | mkeepdir /etc/sudoers.d || die | ||
71 | |||
72 | # pam related configs | ||
73 | minstallpam sudo.pamd-systemauth sudo || die | ||
74 | |||
75 | # fix permissions - /var and /var/db get 0700 and this breaks the system! | ||
76 | mchmod 0755 /var || die | ||
77 | mchmod 0755 /var/db || die | ||
78 | |||
79 | # docs | ||
80 | minstalldocs BUGS CHANGES HISTORY LICENSE PORTING \ | ||
81 | README RUNSON TODO TROUBLESHOOTING UPGRADE \ | ||
82 | || die | ||
83 | } |