mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-25 09:41:35 +01:00
72 lines
1.6 KiB
Plaintext
72 lines
1.6 KiB
Plaintext
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
|
|
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=sudo
|
|
pkgver=1.9.10
|
|
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="https://www.sudo.ws/sudo/"
|
|
arch="all"
|
|
license="custom ISC"
|
|
makedepends="zlib-dev bash mandoc"
|
|
subpackages="$pkgname-doc $pkgname-dev"
|
|
source="https://www.sudo.ws/dist/sudo-$_realver.tar.gz"
|
|
options="suid"
|
|
builddir="$srcdir/sudo-$_realver"
|
|
|
|
# secfixes:
|
|
# 1.9.5p2-r0:
|
|
# - CVE-2021-3156
|
|
# 1.9.5-r0:
|
|
# - CVE-2021-23239
|
|
# - CVE-2021-23240
|
|
# 1.8.31-r0:
|
|
# - CVE-2019-18634
|
|
# 1.8.28-r0:
|
|
# - CVE-2019-14287
|
|
# 1.8.20_p2-r0:
|
|
# - CVE-2017-1000368
|
|
|
|
build() {
|
|
./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-sendmail=/usr/sbin/sendmail \
|
|
--with-passprompt="[sudo] password for %p: "
|
|
|
|
make
|
|
}
|
|
|
|
check() {
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
# the sudo's mkinstalldir script miscreates the leading
|
|
# path components with bad permissions. fix this.
|
|
install -d -m0755 "$pkgdir"/var "$pkgdir"/var/db
|
|
make -j1 DESTDIR="$pkgdir" install
|
|
rm -rf "$pkgdir"/var/run
|
|
|
|
# Exactly the same as /etc/sudoers
|
|
rm "$pkgdir"/etc/sudoers.dist
|
|
}
|
|
|
|
sha512sums="
|
|
65cf92b67b64413cb807da8b9602fc90b75e5b30dd1402d682ca36f276a3d6209a8a59c14e463898abc9856bc56263e5ba4bb6d44774f56a2885a9eea4a35375 sudo-1.9.10.tar.gz
|
|
"
|