mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
29 lines
973 B
Bash
29 lines
973 B
Bash
# Maintainer: Manuel Rotter <rotter.manuel@gmail.com>
|
|
# Modified by OpenPogo
|
|
|
|
pkgname=sudo
|
|
pkgver=1.7.2
|
|
pkgrel=1
|
|
pkgdesc="Give certain users the ability to run some commands as root"
|
|
arch=(arm)
|
|
url="http://www.sudo.ws/sudo/"
|
|
license=('custom')
|
|
depends=('pam')
|
|
backup=('opt/etc/sudoers' 'opt/etc/pam.d/sudo')
|
|
source=(ftp://ftp.sudo.ws/pub/sudo/$pkgname-$pkgver.tar.gz
|
|
sudo.pam)
|
|
options=('!libtool' '!makeflags')
|
|
md5sums=('9caba8719c3e0f163880a05f02a48249'
|
|
'4e7ad4ec8f2fe6a40e12bcb2c0b256e3')
|
|
|
|
build() {
|
|
cd $srcdir/$pkgname-$pkgver || return 1
|
|
./configure --prefix=/opt --with-pam --libexecdir=/opt/lib \
|
|
--with-env-editor --with-all-insults --with-logfac=auth || return 1
|
|
make || return 1
|
|
make DESTDIR=$pkgdir install || return 1
|
|
install -Dm644 $srcdir/sudo.pam $pkgdir/opt/etc/pam.d/sudo || return 1
|
|
install -Dm644 LICENSE $pkgdir/opt/share/licenses/sudo/LICENSE || return 1
|
|
mv $pkgdir/etc/sudoers $pkgdir/opt/etc/
|
|
rmdir $pkgdir/etc
|
|
}
|