Contents of /smage/trunk/core/sudo/sudo-1.8.2-r1.smage2
Parent Directory | Revision Log
Revision 1774 -
(show annotations)
(download)
Mon Sep 19 11:14:27 2011 UTC (13 years ago) by niro
File size: 1714 byte(s)
Mon Sep 19 11:14:27 2011 UTC (13 years ago) by niro
File size: 1714 byte(s)
auto added: ver bump to 1.8.2-r1
1 | # $Id$ |
2 | |
3 | PNAME="sudo" |
4 | PVER="1.8.2" |
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=">= virtual/glibc" |
13 | |
14 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
15 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
16 | |
17 | MCORE_ONLY_KEEP="etc/sudoers etc/sudoers.d usr/bin/sudo usr/$(mlibdir)/sudo/*.so" |
18 | sminclude mtools mcore-split |
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 | --without-pam \ |
48 | || die |
49 | |
50 | mmake || die |
51 | } |
52 | |
53 | mcore_generic_src_install() |
54 | { |
55 | cd ${SRCDIR} |
56 | |
57 | mmake DESTDIR=${BINDIR} install || die |
58 | # fix permissions - /var and /var/db get 0700 and this breaks the system! |
59 | mchmod 0755 /var || die |
60 | mchmod 0755 /var/db || die |
61 | |
62 | # docs |
63 | minstalldocs BUGS CHANGES HISTORY LICENSE PORTING \ |
64 | README RUNSON TODO TROUBLESHOOTING UPGRADE \ |
65 | || die |
66 | |
67 | # mcore-specific |
68 | # include configs from /etc/sudoers.d |
69 | minstalldir /etc/sudoers.d || die |
70 | # must be 0755!! |
71 | mchmod 0755 /etc/sudoers.d || die |
72 | mcinjectfile users_reboot.sudo /etc/sudoers.d/10_users_reboot || die |
73 | mchmod 0440 /etc/sudoers.d/10_users_reboot || die |
74 | } |
75 | |
76 | preinstall() |
77 | { |
78 | add_conf_prot_mask /etc/sudoers /etc/sudoers.d |
79 | } |