diff --git a/srcpkgs/sudo/INSTALL b/srcpkgs/sudo/INSTALL index 5dab60a679..3e47c050f7 100644 --- a/srcpkgs/sudo/INSTALL +++ b/srcpkgs/sudo/INSTALL @@ -7,5 +7,6 @@ post) echo "Setting up permissions to /etc/sudoers..." chmod 0440 etc/sudoers fi + chmod 4111 bin/sudo bin/sudoedit ;; esac diff --git a/srcpkgs/sudo/patches/install_perms.patch b/srcpkgs/sudo/patches/install_perms.patch new file mode 100644 index 0000000000..08212921cc --- /dev/null +++ b/srcpkgs/sudo/patches/install_perms.patch @@ -0,0 +1,31 @@ +--- install-sh.orig 2010-04-22 13:32:13.000776102 +0200 ++++ install-sh 2010-04-22 13:35:55.804781474 +0200 +@@ -88,7 +88,6 @@ while ${MORETODO} ; do + X-G) + GROUP="$2" + shift +- ${ROOT} && CHGROUPIT=true + ;; + X-G*) + if ${ROOT} ; then +@@ -107,12 +106,10 @@ while ${MORETODO} ; do + ;; + X-M) + MODE="$2" +- ${ROOT} && CHMODIT=true + shift + ;; + X-M*) + MODE=`expr "$1" : '-m\(.*\)'` +- ${ROOT} && CHMODIT=true + ;; + X-n) + TOUCHIT=false +@@ -129,7 +126,6 @@ while ${MORETODO} ; do + X-O) + OWNER="$2" + shift +- ${ROOT} && CHOWNIT=true + ;; + X-O*) + if ${ROOT} ; then diff --git a/srcpkgs/sudo/template b/srcpkgs/sudo/template index 880dc29c06..9a56e6ba87 100644 --- a/srcpkgs/sudo/template +++ b/srcpkgs/sudo/template @@ -1,7 +1,7 @@ # Template build file for 'sudo'. pkgname=sudo version=1.7.2p6 -revision=1 +revision=2 distfiles="http://www.courtesan.com/sudo/dist/$pkgname-$version.tar.gz" build_style=gnu_configure configure_args="--with-ignore-dot -with-all-insults --with-env-editor @@ -23,6 +23,13 @@ nostrip=yes Add_dependency run glibc Add_dependency run pam Add_dependency build pam-devel +Add_dependency build diffutils + +pre_install() +{ + # Use cmp from diffutils. + export PATH="/usr/bin:$PATH" +} post_install() {