diff options
Diffstat (limited to 'sudo')
-rw-r--r--[-rwxr-xr-x] | sudo/Pkgfile | 27 | ||||
-rw-r--r-- | sudo/sudo.pam | 3 |
2 files changed, 17 insertions, 13 deletions
diff --git a/sudo/Pkgfile b/sudo/Pkgfile index 1b0ba5dff..12e1f4f23 100755..100644 --- a/sudo/Pkgfile +++ b/sudo/Pkgfile @@ -2,26 +2,27 @@ # URL: http://www.gratisoft.us/sudo/ # Maintainer: NuTyX core team # Packager: tnut at nutyx dot com +# Depends on: linux-pam +# Run on: linux-pam name=sudo version=1.8.3p1 -release=2 -source=(ftp://ftp.sudo.ws/pub/sudo/$name-$version.tar.gz) +release=3 +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 |