# Contributor: Sören Tempel # Contributor: Łukasz Jendrysik # Maintainer: Natanael Copa pkgname=sudo pkgver=1.8.19_p1 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 mdocml" depends= subpackages="$pkgname-doc $pkgname-dev" source="https://www.sudo.ws/dist/sudo-${_realver}.tar.gz fix-cross-compile.patch libcrypt.patch musl-fix-headers.patch " options="suid" builddir="$srcdir"/$pkgname-$_realver build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --libexecdir=/usr/lib \ --mandir=/usr/share/man \ --disable-nls \ --enable-pie \ --with-env-editor \ --with-mdoc \ --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 } md5sums="1b34f00e604f4208e7004546f251ddf7 sudo-1.8.19p1.tar.gz 9c27fb2304054854798cfed02e8ad1a0 fix-cross-compile.patch 048e1cc360537bcea5b74a874fd41674 libcrypt.patch 9017a82095a79bea78be29f0dd23122a musl-fix-headers.patch" sha256sums="b8afb1cf8736b6c61f171f2bf4b174818d9e00e92ef73da55fabcd01286ffc92 sudo-1.8.19p1.tar.gz 921c3b11885b0f18c69f42755fe486f5b26f9af7b682768f57cd9b167474aa32 fix-cross-compile.patch d26dc7aaa958d988bbb7efaa0118d23e06375cc90868d14d4b2620f55589cb41 libcrypt.patch 314463cfa016981824d810cc5ca32da010206aa99e50adc22255a0eec6822b84 musl-fix-headers.patch" sha512sums="99fd482d34166021210b96959404aec22b4e793d04fd2037f7ca07118a817fe17ce2133662f20b820aa1f409e8f153ee3c1635e775a667dd4c95bcc94bfd6474 sudo-1.8.19p1.tar.gz f0f462f40502da2194310fe4a72ec1a16ba40f95a821ba9aa6aabaa423d28c4ab26b684afa7fb81c2407cf60de9327bdab01de51b878c5d4de49b0d62645f53c fix-cross-compile.patch 5ad20254aa587ef615f794081ecd55344eada5cf8c1a1d7956cc3f73375554716c483eeb74081da9a8501afce92cfbaf2abe59d1067aac67ce6e4874eb5a23e1 libcrypt.patch 113416fed7532c6092687c8bdd9913d04888d2f0a32e4333dd27a6b3d39145717ad5c3b3f05ba11bd6462612a9a013d446d254d50b2b651c33eeebe670f41ab5 musl-fix-headers.patch"