Magellan Linux

Annotation of /branches/magellan-next/core/sudo/sudo-1.8.1p2-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8831 - (hide annotations) (download)
Tue Aug 2 10:38:09 2011 UTC (12 years, 9 months ago) by niro
File size: 1356 byte(s)
-use new system-auth stack
1 niro 8831 # $Id$
2    
3     PNAME="sudo"
4     PVER="1.8.1p2"
5     PBUILD="r2"
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=">= 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     )
25    
26     UP2DATE="updatecmd http://www.sudo.ws/${PNAME}/dist | grep ${PNAME}- | lasttarball gz"
27    
28     src_prepare()
29     {
30     munpack ${SRCFILE} || die
31     cd ${SRCDIR}
32    
33     # allow the group wheel to run all commands
34     mpatch ${PNAME}-1.8.0-allow-wheel.patch || die
35     }
36    
37     src_compile()
38     {
39     cd ${SRCDIR}
40    
41     mconfigure \
42     --libexecdir=/usr/$(mlibdir)/sudo \
43     --with-all-insults \
44     --disable-path-info \
45     --with-env-editor \
46     --with-pam \
47     || die
48    
49     mmake || die
50     }
51    
52     src_install()
53     {
54     cd ${SRCDIR}
55     mmake DESTDIR=${BINDIR} install || die
56    
57     # pam related configs
58     minstallpam sudo.pamd-systemauth sudo || die
59    
60     # fix permissions - /var and /var/db get 0700 and this breaks the system!
61     mchmod 0755 /var || die
62     mchmod 0755 /var/db || die
63    
64     # docs
65     minstalldocs BUGS CHANGES HISTORY LICENSE PORTING \
66     README RUNSON TODO TROUBLESHOOTING UPGRADE \
67     || die
68     }