Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 801 - (hide annotations) (download)
Thu Oct 21 20:46:26 2010 UTC (13 years, 7 months ago) by niro
File size: 1407 byte(s)
-fixed a typo
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 niro 770 DEPEND=">= virtual/glibc"
14 niro 769
15     SRCFILE="${PNAME}-${PVER}.tar.gz"
16     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
17    
18 niro 770 MCORE_ONLY_KEEP="etc/sudoers usr/bin/sudo"
19     sminclude mtools mcore-split
20 niro 769
21     SRC_URI=(
22     http://www.sudo.ws/${PNAME}/dist/${SRCFILE}
23     mirror://${PNAME}/${SRCFILE}
24     mirror://${PNAME}/sudo.pamd
25 niro 801 mirror://${PNAME}/${PNAME}-1.7.4p3-allow-wheel.patch
26 niro 769 )
27    
28     UP2DATE="updatecmd http://www.sudo.ws/${PNAME}/dist | grep ${PNAME}- | lasttarball gz"
29    
30     src_prepare()
31     {
32     munpack ${SRCFILE} || die
33     cd ${SRCDIR}
34    
35     # allow the group wheel to run all commands
36 niro 801 mpatch ${PNAME}-1.7.4p3-allow-wheel.patch || die
37 niro 769 }
38    
39     src_compile()
40     {
41     cd ${SRCDIR}
42    
43     mconfigure \
44     --libexecdir=/usr/$(mlibdir)/sudo \
45     --with-all-insults \
46     --disable-path-info \
47     --with-env-editor \
48 niro 770 --without-pam \
49 niro 769 || die
50    
51     mmake || die
52     }
53    
54     src_install()
55     {
56     cd ${SRCDIR}
57 niro 770
58 niro 769 mmake DESTDIR=${BINDIR} install || die
59     # fix permissions - /var and /var/db get 0700 and this breaks the system!
60     mchmod 0755 /var || die
61     mchmod 0755 /var/db || die
62    
63     # docs
64     minstalldocs BUGS CHANGES HISTORY LICENSE PORTING \
65     README RUNSON TODO TROUBLESHOOTING UPGRADE \
66     || die
67     }