summaryrefslogtreecommitdiff
path: root/source/ap/sudo/sudo.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/ap/sudo/sudo.SlackBuild')
-rwxr-xr-xsource/ap/sudo/sudo.SlackBuild14
1 files changed, 6 insertions, 8 deletions
diff --git a/source/ap/sudo/sudo.SlackBuild b/source/ap/sudo/sudo.SlackBuild
index 4d6b898e..c3b85360 100755
--- a/source/ap/sudo/sudo.SlackBuild
+++ b/source/ap/sudo/sudo.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
-# Copyright 2008, 2009, 2010 Patrick J. Volkerding, Sebeka, MN, USA
+# Copyright 2008, 2009, 2010, 2011 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -42,7 +42,7 @@ TMP=${TMP:-/tmp}
PKG=$TMP/package-sudo
rm -rf $PKG
-mkdir -p $TMP $PKG
+mkdir -p $TMP $PKG/var/{lib,db}
if [ "$ARCH" = "i386" ]; then
SLKCFLAGS="-O2 -march=i386 -mcpu=i686"
@@ -58,6 +58,7 @@ cd $TMP
rm -rf sudo-$VERSION
tar xvf $CWD/sudo-$VERSION.tar.gz || exit 1
cd sudo-$VERSION
+
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -70,20 +71,16 @@ CFLAGS="$SLKCFLAGS" \
--prefix=/usr \
--sbindir=/usr/sbin \
--mandir=/usr/man \
- --with-getpass \
- --with-C2 \
+ --docdir=/usr/doc/sudo-$VERSION \
--with-env-editor \
--disable-pam-session \
--with-pam=no \
+ --with-timedir=/var/db/sudo \
--build=$ARCH-slackware-linux
make $NUMJOBS || make || exit 1
make install DESTDIR=$PKG || exit 1
-# Create the timestamp directory
-mkdir -p $PKG/var/run/sudo
-chmod 700 $PKG/var/run/sudo
-
( cd $PKG/usr/bin
chmod 4711 sudo
ln -sf sudo sudoedit
@@ -99,6 +96,7 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
mv $PKG/etc/sudoers $PKG/etc/sudoers.new
+rm -r $PKG/usr/doc/sudo-$VERSION
mkdir -p $PKG/usr/doc/sudo-$VERSION
cp -a \
BUGS HISTORY INSTALL LICENSE PORTING README* \