summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/sudo/PKGBUILD
blob: 7226f0ccd8c8bdc76b42c74161283fd9eefc5d9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
pkgname=sudo
pkgver=1.7.3
pkgrel=1
pkgdesc="Give certain users the ability to run some commands as root"
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')
depends=('glibc' 'pam')
backup=('etc/sudoers' 'etc/pam.d/sudo')
source=(ftp://ftp.sudo.ws/pub/sudo/$pkgname-$pkgver.tar.gz sudo.pam )
options=('!libtool' '!makeflags')

build() {
  cd $startdir/src/$pkgname-$pkgver || return 1

  ./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

  #install the license
  install -D -m644 LICENSE $startdir/pkg/usr/share/licenses/sudo/LICENSE \
  	|| return 1
}
md5sums=('c22115b47cb2591bceedb914b673f031'
         '4e7ad4ec8f2fe6a40e12bcb2c0b256e3')