mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-09 02:32:25 +01:00
Since abuild v2.22.0, these are removed automatically unless 'libtool' option has been specified.
70 lines
2.4 KiB
Plaintext
70 lines
2.4 KiB
Plaintext
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=sudo
|
|
pkgver=1.8.14_p3
|
|
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
|
|
}
|
|
|
|
md5sums="93dbd1e47c136179ff1b01494c1c0e75 sudo-1.8.14p3.tar.gz
|
|
9c27fb2304054854798cfed02e8ad1a0 fix-cross-compile.patch
|
|
048e1cc360537bcea5b74a874fd41674 libcrypt.patch
|
|
9017a82095a79bea78be29f0dd23122a musl-fix-headers.patch"
|
|
sha256sums="a8a697cbb113859058944850d098464618254804cf97961dee926429f00a1237 sudo-1.8.14p3.tar.gz
|
|
921c3b11885b0f18c69f42755fe486f5b26f9af7b682768f57cd9b167474aa32 fix-cross-compile.patch
|
|
d26dc7aaa958d988bbb7efaa0118d23e06375cc90868d14d4b2620f55589cb41 libcrypt.patch
|
|
314463cfa016981824d810cc5ca32da010206aa99e50adc22255a0eec6822b84 musl-fix-headers.patch"
|
|
sha512sums="022e75a4171c0d9b87569adc5b08afc1b8f2adb7dbc6c80dfb737029dbca560a08e317ce37f117b614f36b54666ed01559a72d0c92523a5a2ee3531f520d7a2b sudo-1.8.14p3.tar.gz
|
|
f0f462f40502da2194310fe4a72ec1a16ba40f95a821ba9aa6aabaa423d28c4ab26b684afa7fb81c2407cf60de9327bdab01de51b878c5d4de49b0d62645f53c fix-cross-compile.patch
|
|
5ad20254aa587ef615f794081ecd55344eada5cf8c1a1d7956cc3f73375554716c483eeb74081da9a8501afce92cfbaf2abe59d1067aac67ce6e4874eb5a23e1 libcrypt.patch
|
|
113416fed7532c6092687c8bdd9913d04888d2f0a32e4333dd27a6b3d39145717ad5c3b3f05ba11bd6462612a9a013d446d254d50b2b651c33eeebe670f41ab5 musl-fix-headers.patch"
|