Contents of /trunk/core/sudo/sudo-1.8.22-r1.smage2
Parent Directory | Revision Log
Revision 30370 -
(show annotations)
(download)
Wed Jan 17 13:28:26 2018 UTC (6 years, 8 months ago) by niro
File size: 1935 byte(s)
Wed Jan 17 13:28:26 2018 UTC (6 years, 8 months ago) by niro
File size: 1935 byte(s)
auto added: ver bump to 1.8.22-r1
1 | # $Id$ |
2 | |
3 | PNAME="sudo" |
4 | PVER="1.8.22" |
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}- | highesttarball 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 | } |