diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2018-10-12 19:59:41 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-10-12 20:00:31 +0000 |
commit | f4c4f7037d2203f9a9762fbba0c7c05d6699f73f (patch) | |
tree | ff715c425fedae9df29da4836ec02e76279bbfb3 /community/doas | |
parent | 2132549f51c433d556708e830d01353cd1c70aba (diff) | |
download | aports-f4c4f7037d2203f9a9762fbba0c7c05d6699f73f.tar.bz2 aports-f4c4f7037d2203f9a9762fbba0c7c05d6699f73f.tar.xz |
community/doas: move from testing
Diffstat (limited to 'community/doas')
-rw-r--r-- | community/doas/APKBUILD | 40 | ||||
-rw-r--r-- | community/doas/doas.conf | 4 |
2 files changed, 44 insertions, 0 deletions
diff --git a/community/doas/APKBUILD b/community/doas/APKBUILD new file mode 100644 index 0000000000..41344d16f4 --- /dev/null +++ b/community/doas/APKBUILD @@ -0,0 +1,40 @@ +# 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/v$pkgver.tar.gz + doas.conf +" +builddir="$srcdir/OpenDoas-$pkgver" +options="$options suid" + +build() { + cd "$builddir" + ./configure \ + --prefix=/usr \ + --enable-static \ + --without-pam + make +} + +check() { + cd "$builddir" + # doas -v returns 1 + ./doas -v || test $? = 1 +} + +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" diff --git a/community/doas/doas.conf b/community/doas/doas.conf new file mode 100644 index 0000000000..57907748ab --- /dev/null +++ b/community/doas/doas.conf @@ -0,0 +1,4 @@ +# see doas.conf(5) for configuration details + +# Uncomment to allow group "admin" to become root +# permit :admin |