From 4abce5c6653a6fc745b420a9b2d9e58088569d09 Mon Sep 17 00:00:00 2001 From: Nathan Date: Mon, 19 Oct 2020 19:26:36 +0000 Subject: Add user/doas --- user/doas/APKBUILD | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 user/doas/APKBUILD (limited to 'user/doas/APKBUILD') diff --git a/user/doas/APKBUILD b/user/doas/APKBUILD new file mode 100644 index 000000000..c38cb62bd --- /dev/null +++ b/user/doas/APKBUILD @@ -0,0 +1,34 @@ +# Contributor: Nathan +# Maintainer: Nathan +pkgname=doas +pkgver=6.6.1 +pkgrel=0 +pkgdesc="OpenBSD's escalation tool" +url="https://github.com/Duncaen/OpenDoas" +arch="all" +options="suid" +license="ISC" +depends="" +makedepends="bison" +subpackages="$pkgname-doc" +source="$pkgname-$pkgver.tar.gz::https://github.com/Duncaen/OpenDoas/archive/v$pkgver.tar.gz" +builddir="$srcdir/OpenDoas-$pkgver" + +build() { + ./configure \ + --prefix=/usr \ + --without-pam \ + --with-timestamp + make +} + +check() { + # doas -v returns 1 + ./doas -v || test $? = 1 +} + +package() { + make DESTDIR="$pkgdir" install +} + +sha512sums="390e0e139a2641be22c4493c3ed755d9cb4091f4ab8d590123b7c8c4f2f116cea3b3500926ff191fb98d92192ca9e92118cbcbeb463a7833763e00c65603e678 doas-6.6.1.tar.gz" -- cgit v1.2.3-70-g09d2