From 2a1575e81c1b24c1e7ef571362423e1e312f2347 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 18 Jan 2012 04:45:07 +0100 Subject: [PATCH] sudo: simplify pam file, revbump. --- srcpkgs/sudo/files/sudo.pam | 6 +----- srcpkgs/sudo/template | 5 ++--- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/srcpkgs/sudo/files/sudo.pam b/srcpkgs/sudo/files/sudo.pam index 889f3a817c..23fbd062e0 100644 --- a/srcpkgs/sudo/files/sudo.pam +++ b/srcpkgs/sudo/files/sudo.pam @@ -1,6 +1,2 @@ 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 +auth required pam_nologin.so diff --git a/srcpkgs/sudo/template b/srcpkgs/sudo/template index fa522c268c..de26e7193f 100644 --- a/srcpkgs/sudo/template +++ b/srcpkgs/sudo/template @@ -6,7 +6,7 @@ build_style=gnu-configure configure_args="--with-ignore-dot -with-all-insults --with-env-editor --enable-shell-sets-home --enable-noargs-shell --without-sendmail --disable-root-sudo --with-logfac=auth --disable-root-mailer" -revision=1 +revision=2 short_desc="Allow others to run commands as root" maintainer="Juan RP " homepage="http://www.gratisoft.us/sudo/" @@ -26,7 +26,6 @@ Add_dependency build zlib-devel Add_dependency build pam-devel Add_dependency build coreutils -post_install() -{ +post_install() { vinstall ${FILESDIR}/sudo.pam 644 etc/pam.d sudo }