10 |
DESCRIPTION="sudo allows to give certain users the ability to run some commands as another user while logging the commands." |
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/" |
HOMEPAGE="http://www.sudo.ws/" |
12 |
|
|
13 |
DEPEND=">= sys-libs/pam-1.1" |
DEPEND=">= virtual/glibc" |
14 |
|
|
15 |
SRCFILE="${PNAME}-${PVER}.tar.gz" |
SRCFILE="${PNAME}-${PVER}.tar.gz" |
16 |
SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
17 |
|
|
18 |
sminclude mtools |
MCORE_ONLY_KEEP="etc/sudoers usr/bin/sudo" |
19 |
|
sminclude mtools mcore-split |
20 |
|
|
21 |
SRC_URI=( |
SRC_URI=( |
22 |
http://www.sudo.ws/${PNAME}/dist/${SRCFILE} |
http://www.sudo.ws/${PNAME}/dist/${SRCFILE} |
45 |
--with-all-insults \ |
--with-all-insults \ |
46 |
--disable-path-info \ |
--disable-path-info \ |
47 |
--with-env-editor \ |
--with-env-editor \ |
48 |
--with-pam \ |
--without-pam \ |
49 |
|| die |
|| die |
50 |
|
|
51 |
mmake || die |
mmake || die |
54 |
src_install() |
src_install() |
55 |
{ |
{ |
56 |
cd ${SRCDIR} |
cd ${SRCDIR} |
|
mmake DESTDIR=${BINDIR} install || die |
|
|
|
|
|
# pam related configs |
|
|
minstallpam sudo.pamd sudo || die |
|
57 |
|
|
58 |
|
mmake DESTDIR=${BINDIR} install || die |
59 |
# fix permissions - /var and /var/db get 0700 and this breaks the system! |
# fix permissions - /var and /var/db get 0700 and this breaks the system! |
60 |
mchmod 0755 /var || die |
mchmod 0755 /var || die |
61 |
mchmod 0755 /var/db || die |
mchmod 0755 /var/db || die |