summaryrefslogtreecommitdiffstats
path: root/abs/core/sudo
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/sudo')
-rw-r--r--abs/core/sudo/PKGBUILD41
1 files changed, 25 insertions, 16 deletions
diff --git a/abs/core/sudo/PKGBUILD b/abs/core/sudo/PKGBUILD
index 7226f0c..d74b779 100644
--- a/abs/core/sudo/PKGBUILD
+++ b/abs/core/sudo/PKGBUILD
@@ -1,29 +1,38 @@
+# $Id: PKGBUILD 90200 2010-09-09 05:26:45Z allan $
+# Maintainer: Allan McRae <allan@archlinux.org>
+# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
+
pkgname=sudo
-pkgver=1.7.3
+_ver=1.7.4p4
+pkgver=${_ver/[a-z]/.${_ver//[0-9.]/}}
pkgrel=1
pkgdesc="Give certain users the ability to run some commands as root"
-arch=(i686 x86_64)
+arch=('i686' 'x86_64')
url="http://www.sudo.ws/sudo/"
-# 2 separate licenses apply, custom and ISC, each covering part of the software
-license=('custom' 'ISC')
+license=('custom')
depends=('glibc' 'pam')
backup=('etc/sudoers' 'etc/pam.d/sudo')
-source=(ftp://ftp.sudo.ws/pub/sudo/$pkgname-$pkgver.tar.gz sudo.pam )
+source=(ftp://ftp.sudo.ws/pub/sudo/$pkgname-$_ver.tar.gz
+ sudo.pam)
options=('!libtool' '!makeflags')
+md5sums=('55d9906535d70a1de347cd3d3550ee87'
+ '4e7ad4ec8f2fe6a40e12bcb2c0b256e3')
build() {
- cd $startdir/src/$pkgname-$pkgver || return 1
+ cd $srcdir/$pkgname-$_ver
./configure --prefix=/usr --with-pam --libexecdir=/usr/lib \
- --with-env-editor --with-all-insults --with-logfac=auth || return 1
- make || return 1
- make DESTDIR=$startdir/pkg install || return 1
- install -D -m644 $startdir/src/sudo.pam $startdir/pkg/etc/pam.d/sudo \
- || return 1
+ --with-env-editor --with-all-insults --with-logfac=auth
+ make
+}
+
+package() {
+ cd $srcdir/$pkgname-$_ver
+ install -dm755 $pkgdir/var/lib
- #install the license
- install -D -m644 LICENSE $startdir/pkg/usr/share/licenses/sudo/LICENSE \
- || return 1
+ make DESTDIR=$pkgdir install
+ install -Dm644 $srcdir/sudo.pam $pkgdir/etc/pam.d/sudo
+
+ install -Dm644 LICENSE $pkgdir/usr/share/licenses/sudo/LICENSE
}
-md5sums=('c22115b47cb2591bceedb914b673f031'
- '4e7ad4ec8f2fe6a40e12bcb2c0b256e3')
+