testing/doas: new aport

https://github.com/Duncaen/OpenDoas
OpenBSD's temporary privledge escalation tool
This commit is contained in:
Drew DeVault 2017-12-09 19:37:36 -05:00 committed by Natanael Copa
parent 1ddccd03c1
commit 4aa3458d58
2 changed files with 38 additions and 0 deletions

34
testing/doas/APKBUILD Normal file
View File

@ -0,0 +1,34 @@
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=doas
pkgver=6.0
pkgrel=0
pkgdesc="OpenBSD's temporary privledge escalation tool"
url="https://github.com/Duncaen/OpenDoas"
arch="all"
license="BSD"
makedepends="bison"
subpackages="$pkgname-doc"
source="
$pkgname-$pkgver.tar.gz::https://github.com/Duncaen/OpenDoas/archive/v6.0.tar.gz
doas.conf
"
builddir="$srcdir/OpenDoas-$pkgver"
options="$options !check suid"
build() {
cd "$builddir"
./configure \
--prefix=/usr \
--enable-static \
--without-pam || return 1
make
}
package() {
cd "$builddir"
make install DESTDIR="$pkgdir"
install -Dm440 "$srcdir"/doas.conf "$pkgdir"/etc/doas.conf
}
sha512sums="2bf5e00895a45d87785e7a494a1506844afd843ef5375e0b0e3795ebc24712bb941c6feeb87e426e41a240d40aca9b4c099f77220745bb7142a7a4b303441f60 doas-6.0.tar.gz
5035ae91293953b292c430334e949e11e5b482c5c91c7f018ac8286a791568a3006499649f487547a262291c0968618522fbc14acb5e2faa2af52accf15bbc49 doas.conf"

4
testing/doas/doas.conf Normal file
View File

@ -0,0 +1,4 @@
# see doas.conf(5) for configuration details
# Uncomment to allow group "admin" to become root
# permit :admin