summaryrefslogtreecommitdiffstats
path: root/sudo
diff options
context:
space:
mode:
Diffstat (limited to 'sudo')
-rwxr-xr-xsudo/.footprint.i6862
-rwxr-xr-xsudo/.footprint.x86_642
-rw-r--r--sudo/.md5sum.i6861
-rw-r--r--sudo/.md5sum.x86_641
-rw-r--r--[-rwxr-xr-x]sudo/Pkgfile25
-rw-r--r--sudo/sudo.pam3
6 files changed, 22 insertions, 12 deletions
diff --git a/sudo/.footprint.i686 b/sudo/.footprint.i686
index e3bafc13e..a9e89a216 100755
--- a/sudo/.footprint.i686
+++ b/sudo/.footprint.i686
@@ -1,4 +1,6 @@
drwxr-xr-x root/root etc/
+drwxr-xr-x root/root etc/pam.d/
+-rw-r--r-- root/root etc/pam.d/sudo
-r--r----- root/root etc/sudoers
drwxr-x--- root/root etc/sudoers.d/
drwxr-xr-x root/root usr/
diff --git a/sudo/.footprint.x86_64 b/sudo/.footprint.x86_64
index e3bafc13e..a9e89a216 100755
--- a/sudo/.footprint.x86_64
+++ b/sudo/.footprint.x86_64
@@ -1,4 +1,6 @@
drwxr-xr-x root/root etc/
+drwxr-xr-x root/root etc/pam.d/
+-rw-r--r-- root/root etc/pam.d/sudo
-r--r----- root/root etc/sudoers
drwxr-x--- root/root etc/sudoers.d/
drwxr-xr-x root/root usr/
diff --git a/sudo/.md5sum.i686 b/sudo/.md5sum.i686
index ecff11a77..67854831f 100644
--- a/sudo/.md5sum.i686
+++ b/sudo/.md5sum.i686
@@ -1 +1,2 @@
6d4282a1530c541f7900fa8dfcf2a882 sudo-1.8.3p2.tar.gz
+4e7ad4ec8f2fe6a40e12bcb2c0b256e3 sudo.pam
diff --git a/sudo/.md5sum.x86_64 b/sudo/.md5sum.x86_64
index ecff11a77..67854831f 100644
--- a/sudo/.md5sum.x86_64
+++ b/sudo/.md5sum.x86_64
@@ -1 +1,2 @@
6d4282a1530c541f7900fa8dfcf2a882 sudo-1.8.3p2.tar.gz
+4e7ad4ec8f2fe6a40e12bcb2c0b256e3 sudo.pam
diff --git a/sudo/Pkgfile b/sudo/Pkgfile
index da90fed6d..c13f2e16c 100755..100644
--- a/sudo/Pkgfile
+++ b/sudo/Pkgfile
@@ -2,26 +2,27 @@
# URL: http://www.gratisoft.us/sudo/
# Maintainer: Todd dot Miller at courtesan dot com
# Packager: tnut at nutyx dot com
+# Depends on: linux-pam
+# Run on: linux-pam
name=sudo
version=1.8.3p2
release=1
-source=(ftp://ftp.sudo.ws/pub/sudo/$name-$version.tar.gz)
+source=(ftp://ftp.sudo.ws/pub/sudo/$name-$version.tar.gz
+ sudo.pam)
build() {
-cd $name-$version
+ cd $name-$version
./configure --prefix=/usr \
- --sbindir=/usr/sbin \
- --mandir=/usr/share/man \
- --infodir=/usr/share/info \
- --libexecdir=/usr/lib \
- --enable-noargs-shell \
- --without-pam \
- --with-ignore-dot \
- --with-all-insults \
- --enable-shell-sets-home
+ --libexecdir=/usr/lib \
+ --enable-noargs-shell \
+ --with-env-editor \
+ --with-pam \
+ --with-ignore-dot \
+ --with-all-insults \
+ --enable-shell-sets-home
make
make DESTDIR=$PKG install
+ install -Dm644 ../sudo.pam $PKG/etc/pam.d/sudo
echo "%admin ALL =(ALL) ALL" >> $PKG/etc/sudoers
}
-
diff --git a/sudo/sudo.pam b/sudo/sudo.pam
new file mode 100644
index 000000000..4e586cd22
--- /dev/null
+++ b/sudo/sudo.pam
@@ -0,0 +1,3 @@
+#%PAM-1.0
+auth required pam_unix.so
+auth required pam_nologin.so