summaryrefslogtreecommitdiff
path: root/source/ap/sudo
diff options
context:
space:
mode:
authorPatrick J Volkerding <volkerdi@slackware.com>2011-04-25 13:37:00 +0000
committerEric Hameleers <alien@slackware.com>2018-05-31 22:45:18 +0200
commit75a4a592e5ccda30715f93563d741b83e0dcf39e (patch)
tree502f745607e77a2c4386ad38d818ddcafe81489c /source/ap/sudo
parentb76270bf9e6dd375e495fec92140a79a79415d27 (diff)
downloadcurrent-75a4a592e5ccda30715f93563d741b83e0dcf39e.tar.gz
Slackware 13.37slackware-13.37
Mon Apr 25 13:37:00 UTC 2011 Slackware 13.37 x86_64 stable is released! Thanks to everyone who pitched in on this release: the Slackware team, the folks producing upstream code, and linuxquestions.org for providing a great forum for collaboration and testing. The ISOs are off to be replicated, a 6 CD-ROM 32-bit set and a dual-sided 32-bit/64-bit x86/x86_64 DVD. Please consider supporting the Slackware project by picking up a copy from store.slackware.com. We're taking pre-orders now, and offer a discount if you sign up for a subscription. As always, thanks to the Slackware community for testing, suggestions, and feedback. :-) Have fun!
Diffstat (limited to 'source/ap/sudo')
-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* \