[arch-commits] Commit in sudo/trunk (PKGBUILD)

Evangelos Foutras foutrelis at archlinux.org
Mon Sep 3 08:43:56 UTC 2012


    Date: Monday, September 3, 2012 @ 04:43:56
  Author: foutrelis
Revision: 165896

Adopt; enable passprompt; reformat PKGBUILD a bit.

Modified:
  sudo/trunk/PKGBUILD

----------+
 PKGBUILD |   34 +++++++++++++++++++++-------------
 1 file changed, 21 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-09-03 06:51:02 UTC (rev 165895)
+++ PKGBUILD	2012-09-03 08:43:56 UTC (rev 165896)
@@ -1,10 +1,11 @@
 # $Id$
-# Maintainer: Allan McRae <allan at archlinux.org>
+# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
+# Contributor: Allan McRae <allan at archlinux.org>
 # Contributor: Tom Newsom <Jeepster at gmx.co.uk>
 
 pkgname=sudo
-_ver=1.8.5p3
-pkgver=${_ver/[a-z]/.${_ver//[0-9.]/}}
+_sudover=1.8.5p3
+pkgver=${_sudover/p/.p}
 pkgrel=1
 pkgdesc="Give certain users the ability to run some commands as root"
 arch=('i686' 'x86_64')
@@ -12,31 +13,38 @@
 license=('custom')
 depends=('glibc' 'pam')
 backup=('etc/sudoers' 'etc/pam.d/sudo')
-options=('!libtool' '!makeflags')
-source=(ftp://ftp.sudo.ws/pub/sudo/$pkgname-$_ver.tar.gz{,.sig}
+options=('!libtool')
+source=(http://www.sudo.ws/sudo/dist/$pkgname-$_sudover.tar.gz
         sudo.pam)
-md5sums=('aa50e0a9ca02ac35d1020881bd3a221f'
-         'aceea97d5f4fe063d6803bead339364d'
-         '4e7ad4ec8f2fe6a40e12bcb2c0b256e3')
+sha256sums=('00bbf27d53e8a74ef3e76b531c2b8a8d6dccab58e0d040c2a3a08171543bb1a7'
+            'e7de79d2c73f2b32b20a8e797e54777a2bf19788ec03e48decd6c15cd93718ae')
 
 build() {
-  cd "$srcdir/$pkgname-$_ver"
+  cd "$srcdir/$pkgname-$_sudover"
 
-  ./configure --prefix=/usr --with-pam --libexecdir=/usr/lib \
-    --with-env-editor --with-all-insults --with-logfac=auth
+  ./configure \
+    --prefix=/usr \
+    --libexecdir=/usr/lib \
+    --with-logfac=auth \
+    --with-pam \
+    --with-env-editor \
+    --with-passprompt="[sudo] password for %p: " \
+    --with-all-insults
   make
 }
 
 check() {
-  cd "$srcdir/$pkgname-$_ver"
+  cd "$srcdir/$pkgname-$_sudover"
   make check
 }
 
 package() {
-  cd "$srcdir/$pkgname-$_ver"
+  cd "$srcdir/$pkgname-$_sudover"
   make DESTDIR="$pkgdir" install
 
   install -Dm644 "$srcdir/sudo.pam" "$pkgdir/etc/pam.d/sudo"
 
   install -Dm644 doc/LICENSE "$pkgdir/usr/share/licenses/sudo/LICENSE"
 }
+
+# vim:set ts=2 sw=2 et:




More information about the arch-commits mailing list