Date: Sunday, November 24, 2019 @ 01:00:49 Author: escondida Revision: 532416
Add opendoas-6.6-1 Added: opendoas/ opendoas/repos/ opendoas/trunk/ opendoas/trunk/PKGBUILD opendoas/trunk/opendoas.install ------------------+ PKGBUILD | 34 ++++++++++++++++++++++++++++++++++ opendoas.install | 21 +++++++++++++++++++++ 2 files changed, 55 insertions(+) Added: opendoas/trunk/PKGBUILD =================================================================== --- opendoas/trunk/PKGBUILD (rev 0) +++ opendoas/trunk/PKGBUILD 2019-11-24 01:00:49 UTC (rev 532416) @@ -0,0 +1,34 @@ +# Maintainer: Ivy Foster <i...@archlinux.org> +# Contributor: alive4ever <alive4ever at live.com> +# Contributor: Earnest +pkgname=opendoas +pkgver=6.6 +pkgrel=1 +pkgdesc='Run commands as super user or another user' +arch=(x86_64) +url='https://github.com/Duncaen/OpenDoas' +license=(custom:ISC) +depends=(pam) +install=opendoas.install +source=( + "https://github.com/Duncaen/OpenDoas/releases/download/v$pkgver/opendoas-$pkgver.tar.gz" + "https://github.com/Duncaen/OpenDoas/releases/download/v$pkgver/opendoas-$pkgver.tar.gz.sig" +) +# checksums provided by packager. Take with a grain of salt! +sha256sums=( + 71cdac90c5d4b4ac0679ea51b91edba38cccbce952877533cb5a392749d5f422 + SKIP +) +validpgpkeys=(C4B6FBA98211F7EFF35DEB73335C1D17EC3D6E35) + +build() { + cd "opendoas-$pkgver" + ./configure --prefix=/usr --with-timestamp + make +} + +package() { + cd "opendoas-$pkgver" + make DESTDIR="$pkgdir" install + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/opendoas/LICENSE" +} Added: opendoas/trunk/opendoas.install =================================================================== --- opendoas/trunk/opendoas.install (rev 0) +++ opendoas/trunk/opendoas.install 2019-11-24 01:00:49 UTC (rev 532416) @@ -0,0 +1,21 @@ +post_install() { + cat <<EOF +To allow members of the wheel group to run commands as other users, +create the file /etc/doas.conf with the following content: + + permit :wheel + +Refer to doas(1) and doas.conf(5) for more information. + +An important notice from README.md: + + The persist feature is disabled by default [....] This feature + is new and potentially dangerous, in the original doas, a + kernel API is used to set and clear timeouts. This API is + openbsd specific and no similar API is available on other + operating systems. + + As a workaround, the persist feature is implemented using + timestamp files similar to sudo. +EOF +}