From 96191031546b38eac32db30e4aced5e41ff1ae6e Mon Sep 17 00:00:00 2001 From: Bdale Garbee Date: Sat, 10 Dec 2005 07:47:07 -0800 Subject: [PATCH] Imported Debian patch 1.6.8p9-4 --- debian/OPTIONS | 12 ++++++++++++ debian/changelog | 9 +++++++++ debian/control | 2 +- debian/docs | 11 +++++++++++ debian/init.d | 12 ++++++++++-- debian/rules | 5 ++--- 6 files changed, 45 insertions(+), 6 deletions(-) create mode 100644 debian/docs diff --git a/debian/OPTIONS b/debian/OPTIONS index 919eee6..4f98523 100644 --- a/debian/OPTIONS +++ b/debian/OPTIONS @@ -10,6 +10,10 @@ The following options were used to configure sudo for Debian GNU/Linux. Support for pluggable authentication modules. + --with-ldap + + Support for LDAP authentication. + --with-fqdn Allow use of fully qualified domain names in the sudoers file. @@ -47,3 +51,11 @@ The following options were used to configure sudo for Debian GNU/Linux. Include all the insults in the binary, won't be enabled unless turned on in the sudoers file. + --with-sendmail=/usr/sbin/sendmail + + Use Debian policy to know the location of sendmail instead of trying + to detect it at build time. + + --disable-setresuid + + Linux 2.2 kernels don't support setresgid. diff --git a/debian/changelog b/debian/changelog index 6e03cab..98086a3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,12 @@ +sudo (1.6.8p9-4) unstable; urgency=low + + * enable ldap support, deliver README.LDAP and sudoers2ldif, closes: #283231 + * merge patch from Martin Pitt / Ubuntu to be more robust about resetting + timestamps in the init.d script, closes: #330868 + * add dependency header to init.d script, closes: #332849 + + -- Bdale Garbee Sat, 10 Dec 2005 07:47:07 -0800 + sudo (1.6.8p9-3) unstable; urgency=high * update debhelper compatibility level from 2 to 4 diff --git a/debian/control b/debian/control index 56cf44f..4e03283 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: sudo Section: admin Priority: optional Maintainer: Bdale Garbee -Build-Depends: debhelper (>= 4), libpam0g-dev +Build-Depends: debhelper (>= 5), libpam0g-dev, libldap2-dev Standards-Version: 3.6.2.1 Package: sudo diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..bafbded --- /dev/null +++ b/debian/docs @@ -0,0 +1,11 @@ +debian/OPTIONS +BUGS +RUNSON +UPGRADE +PORTING +TODO +HISTORY +README +README.LDAP +TROUBLESHOOTING +sudoers2ldif diff --git a/debian/init.d b/debian/init.d index 85f1b19..ba67255 100644 --- a/debian/init.d +++ b/debian/init.d @@ -1,5 +1,13 @@ #! /bin/sh +### BEGIN INIT INFO +# Provides: sudu +# Required-Start: $local_fs $remote_fs +# Required-Stop: +# Default-Start: S 1 2 3 4 5 +# Default-Stop: 0 6 +### END INIT INFO + N=/etc/init.d/sudo set -e @@ -7,9 +15,9 @@ set -e case "$1" in start) # make sure privileges don't persist across reboots - if [ -d /var/run/sudo ] && [ "x`ls /var/run/sudo`" != x ] + if [ -d /var/run/sudo ] then - touch -t 198501010000 /var/run/sudo/* + find /var/run/sudo -type f -exec touch -t 198501010000 '{}' \; fi ;; stop|reload|restart|force-reload) diff --git a/debian/rules b/debian/rules index a5a2a12..5529cf3 100755 --- a/debian/rules +++ b/debian/rules @@ -15,7 +15,7 @@ build-stamp: ./configure --prefix=/usr -v \ --with-all-insults \ - --with-exempt=sudo --with-pam --with-fqdn \ + --with-exempt=sudo --with-pam --with-ldap --with-fqdn \ --with-logging=syslog --with-logfac=authpriv \ --with-env-editor --with-editor=/usr/bin/editor \ --with-timeout=15 --with-password-timeout=0 \ @@ -70,8 +70,7 @@ binary-indep: build install binary-arch: build install dh_testdir dh_testroot - dh_installdocs debian/OPTIONS BUGS RUNSON UPGRADE PORTING \ - TODO HISTORY README TROUBLESHOOTING + dh_installdocs dh_installexamples dh_installmenu dh_installinit -- 2.30.2