# Contributor: Ɓukasz Jendrysik # Maintainer: Natanael Copa pkgname=sudo pkgver=1.8.13 if [ "${pkgver%_*}" != "$pkgver" ]; then _realver=${pkgver%_*}${pkgver#*_} else _realver=$pkgver fi pkgrel=0 pkgdesc="Give certain users the ability to run some commands as root" url="http://www.sudo.ws/sudo/" arch="all" license='custom ISC' makedepends="zlib-dev bash" depends= subpackages="$pkgname-doc $pkgname-dev" source="ftp://ftp.sudo.ws/pub/sudo/$pkgname-$_realver.tar.gz fix-cross-compile.patch libcrypt.patch musl-fix-headers.patch " options="suid" _builddir="$srcdir"/$pkgname-$_realver prepare() { cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --libexecdir=/usr/lib \ --with-env-editor \ --without-pam \ --without-skey \ --with-passprompt="[sudo] password for %p: " \ || return 1 make || return 1 } package() { cd "$_builddir" # the sudo's mkinstalldir script miscreates the leading # path components with bad permissions. fix this. install -d -m0755 "$pkgdir"/var "$pkgdir"/var/db || return 1 make -j1 DESTDIR="$pkgdir" install || return 1 rm "$pkgdir"/usr/lib/sudo/*.la } md5sums="f61577ec330ad1bd504c0e2eec6ea2d8 sudo-1.8.13.tar.gz 91e1a494af992cc9e598f8bb715a13c9 fix-cross-compile.patch 048e1cc360537bcea5b74a874fd41674 libcrypt.patch 5d43f046681bd7655cddc868c4e96cdb musl-fix-headers.patch" sha256sums="e374e5edf2c11c00d6916a9f51cb0ad15e51c7b028370fa15169b07e61e05a25 sudo-1.8.13.tar.gz 7683c69c977b276882922b826b9166bc0ec8c82e1ca8c97d6d93f4738c0c6a5e fix-cross-compile.patch d26dc7aaa958d988bbb7efaa0118d23e06375cc90868d14d4b2620f55589cb41 libcrypt.patch 49d1d94a64d1487c22d32b016d2bf5bb48d23013f0f206f690ad7474cab65ca6 musl-fix-headers.patch" sha512sums="d5498ce8136e903a5ee9e6b1e9b69149b2268798f0678bf7fa82d56947c60d0dec1d7ee25df382e2ee05ecb660720af6b6bc24ad1b6493834e158ee3b186d03c sudo-1.8.13.tar.gz 4da8baf526dc7b7dac5cc067e52d5ae464b82337ac5d520641b3d93af2cfa4f2d3897f4e6602f988a194b7260e3edea9c57ccfc07a3eed7e9967956851997950 fix-cross-compile.patch 5ad20254aa587ef615f794081ecd55344eada5cf8c1a1d7956cc3f73375554716c483eeb74081da9a8501afce92cfbaf2abe59d1067aac67ce6e4874eb5a23e1 libcrypt.patch 0b585305c904ed8651999dcac8096a47c6af3edfb0b4857dc1b242efbed1393119d6e5ffb276751a53b6c2d55dc31eb77dcefe1864617f8e7d4ee9ba7b5cd186 musl-fix-headers.patch"