summaryrefslogtreecommitdiffstats
path: root/sudo/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'sudo/Pkgfile')
-rw-r--r--sudo/Pkgfile28
1 files changed, 28 insertions, 0 deletions
diff --git a/sudo/Pkgfile b/sudo/Pkgfile
new file mode 100644
index 000000000..12e1f4f23
--- /dev/null
+++ b/sudo/Pkgfile
@@ -0,0 +1,28 @@
+# Description: Permet de donner des droits administrateurs aux utilisateurs normaux
+# 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=3
+source=(ftp://ftp.sudo.ws/pub/sudo/$name-$version.tar.gz
+ sudo.pam)
+
+build() {
+ cd $name-$version
+ ./configure --prefix=/usr \
+ --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
+}