diff --git a/srcpkgs/sudo/files/sudo.pam b/srcpkgs/sudo/files/sudo.pam new file mode 100644 index 0000000000..889f3a817c --- /dev/null +++ b/srcpkgs/sudo/files/sudo.pam @@ -0,0 +1,6 @@ +auth required pam_unix.so +account required pam_unix.so +session optional pam_mail.so dir=/var/mail standard +session optional pam_xauth.so +session required pam_env.so +session required pam_unix.so diff --git a/srcpkgs/sudo/template b/srcpkgs/sudo/template index 240fd955c8..a7ddad843d 100644 --- a/srcpkgs/sudo/template +++ b/srcpkgs/sudo/template @@ -1,6 +1,6 @@ # Template build file for 'sudo'. pkgname=sudo -version=1.7.2p5 +version=1.7.2p6 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 @@ -9,7 +9,7 @@ configure_args="--with-ignore-dot -with-all-insults --with-env-editor --disable-root-mailer --disable-setresuid" short_desc="Allow others to run commands as root" maintainer="Juan RP " -checksum=69981fefeaedd47319d700db4aa335f3e8b30c7805d7aa4b9e8e08d4b989d806 +checksum=8104c5e0130f100bbdbfbc0318fea3024027929adaafd2018f1c96c94f771161 long_desc=" Sudo is a program designed to allow a sysadmin to give limited root privileges to users and log root activity. The basic philosophy is to @@ -25,14 +25,5 @@ Add_dependency build pam-devel post_install() { - install -d $DESTDIR/etc/pam.d - cat > $DESTDIR/etc/pam.d/sudo <<_EOF -auth required pam_unix.so -account required pam_unix.so -session optional pam_mail.so dir=/var/mail standard -session optional pam_xauth.so -session required pam_env.so -session required pam_unix.so -_EOF - chmod 644 $DESTDIR/etc/pam.d/sudo + install -D -m644 ${FILESDIR}/sudo.pam ${DESTDIR}/etc/pam/sudo }