Magellan Linux

Annotation of /smage/trunk/core/sudo/sudo-1.7.4p4-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 769 - (hide annotations) (download)
Thu Oct 21 20:17:27 2010 UTC (13 years, 6 months ago) by niro
File size: 1411 byte(s)
auto added: ver bump to 1.7.4p4-r1
1 niro 769 # $Id: sudo-1.7.2p5-r1.smage2 5022 2010-03-01 15:14:45Z niro $
2    
3     PNAME="sudo"
4     PVER="1.7.4p4"
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}-${PVER}-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}-${PVER}-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     }