Magellan Linux

Annotation of /branches/magellan-next/core/sudo/sudo-1.7.4p3-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6413 - (hide annotations) (download)
Mon Aug 23 11:46:44 2010 UTC (13 years, 9 months ago) by niro
File size: 1282 byte(s)
-re-diffed wheel patch
1 niro 6411 # $Id: sudo-1.7.2p5-r1.smage2 5022 2010-03-01 15:14:45Z niro $
2    
3     PNAME="sudo"
4     PVER="1.7.4p3"
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 niro 6413 mirror://${PNAME}/${PNAME}-${PVER}-allow-wheel.patch
25 niro 6411 )
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 niro 6413 mpatch ${PNAME}-${PVER}-allow-wheel.patch || die
36 niro 6411 }
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     # docs
62     minstalldocs BUGS CHANGES HISTORY LICENSE PORTING \
63     README RUNSON TODO TROUBLESHOOTING UPGRADE \
64     || die
65     }