2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 18:08:23 +00:00

Initial support for debian 4.0

This commit is contained in:
Todd C. Miller 2010-07-13 17:52:50 -04:00
parent 781788e2ee
commit fde091cc00
3 changed files with 40 additions and 4 deletions

27
mkpkg
View File

@ -72,7 +72,6 @@ case "$platform" in
--libexecdir=$prefix/$libexec/sudo --libexecdir=$prefix/$libexec/sudo
--with-logging=syslog --with-logging=syslog
--with-logfac=auth --with-logfac=auth
--with-insults=disabled
--with-all-insults --with-all-insults
--with-ignore-dot --with-ignore-dot
--with-tty-tickets --with-tty-tickets
@ -99,7 +98,6 @@ case "$platform" in
--libexecdir=$prefix/$libexec/sudo --libexecdir=$prefix/$libexec/sudo
--with-logging=syslog --with-logging=syslog
--with-logfac=auth --with-logfac=auth
--with-insults=disabled
--with-all-insults --with-all-insults
--with-ignore-dot --with-ignore-dot
--with-tty-tickets --with-tty-tickets
@ -128,7 +126,6 @@ case "$platform" in
--with-selinux --with-selinux
--with-logging=syslog --with-logging=syslog
--with-logfac=auth --with-logfac=auth
--with-insults=disabled
--with-all-insults --with-all-insults
--with-ignore-dot --with-ignore-dot
--with-tty-tickets --with-tty-tickets
@ -142,6 +139,30 @@ case "$platform" in
make_opts='docdir=$(datarootdir)/doc/packages/$(PACKAGE_TARNAME)' make_opts='docdir=$(datarootdir)/doc/packages/$(PACKAGE_TARNAME)'
export CFLAGS="$F_PIE" LDFLAGS="-pie" export CFLAGS="$F_PIE" LDFLAGS="-pie"
;; ;;
deb4*)
# XXX - create sudo group like debian does
# XXX - newer deb moved timestamps to /var/lib/sudo
# Note, must indent with tabs, not spaces due to IFS trickery
configure_opts="
--prefix=/usr
--with-ldap
--with-all-insults
--with-exempt=sudo
--with-pam
--with-fqdn
--with-logging=syslog
--with-logfac=authpriv
--with-env-editor
--with-editor=/usr/bin/editor
--with-timeout=15
--with-password-timeout=0
--disable-root-mailer
--disable-setresuid
--with-sendmail=/usr/sbin/sendmail
--mandir=/usr/share/man
--libexecdir=/usr/lib/sudo
--with-secure-path=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin"
;;
*) *)
# Note, must indent with tabs, not spaces due to IFS trickery # Note, must indent with tabs, not spaces due to IFS trickery
configure_opts=" configure_opts="

3
pp
View File

@ -3957,7 +3957,8 @@ pp_backend_deb_probe() {
;; ;;
*) *)
# Remove trailing revision number and any dots # Remove trailing revision number and any dots
release=`echo $release | cut -dr -f1 | tr -d .` #release=`echo $release | cut -dr -f1 | tr -d .`
release=`echo $release | cut -dr -f1`
;; ;;
esac esac

14
sudo.pp
View File

@ -93,6 +93,20 @@ still allow people to get their work done."
;; ;;
esac esac
%set [deb]
# Choose the correct PAM file by distro
# XXX - missing deb5 and others
case "$pp_deb_distro" in
deb4.*)
mkdir -p ${pp_destdir}/etc/pam.d
cat > ${pp_destdir}/etc/pam.d/sudo <<-EOF
#%PAM-1.0
@include common-auth
@include common-account
EOF
;;
esac
%set [aix] %set [aix]
pp_aix_version=`echo $version | sed -e 's,\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\)p\([0-9][0-9]*\)q\([0-9][0-9]*\),\1.\2.\3.\4,'` pp_aix_version=`echo $version | sed -e 's,\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\)p\([0-9][0-9]*\)q\([0-9][0-9]*\),\1.\2.\3.\4,'`
summary="Configurable super-user privileges" summary="Configurable super-user privileges"