mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-26 10:12:13 +01:00
51 lines
1.2 KiB
Plaintext
51 lines
1.2 KiB
Plaintext
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=sudo
|
|
pkgver=1.8.4_p4
|
|
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"
|
|
depends=
|
|
subpackages="$pkgname-doc $pkgname-dev"
|
|
source="ftp://ftp.sudo.ws/pub/sudo/$pkgname-$_realver.tar.gz
|
|
libcrypt.patch"
|
|
|
|
_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 --prefix=/usr \
|
|
--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="b9be6df7ecefedff2263052ed9fc5e93 sudo-1.8.4p4.tar.gz
|
|
429d9613091f1f3f19ce8def5b3032b3 libcrypt.patch"
|