void-packages/srcpkgs/opendoas/template

30 lines
920 B
Bash

# Template file for 'opendoas'
pkgname=opendoas
version=6.8.2
revision=1
build_style=configure
configure_args="--prefix=/usr $(vopt_with 'pam') $(vopt_with 'timestamp')"
conf_files="$(vopt_if 'pam' '/etc/pam.d/doas')"
hostmakedepends="bison"
makedepends="$(vopt_if 'pam' 'pam-devel')"
short_desc="Portable OpenBSD doas to execute commands as another user"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="ISC, BSD-3-Clause"
homepage="https://github.com/Duncaen/OpenDoas"
distfiles="https://github.com/Duncaen/OpenDoas/archive/v${version}.tar.gz"
checksum=6da058a0e70b7543bc60624389b0b00b686189ec933828c522bf8b2600495a67
build_options="pam timestamp"
build_options_default="pam timestamp"
desc_option_timestamp="enable persistent auth using timestamps"
pre_configure() {
cp ${FILESDIR}/doas.pam pam.d__doas__linux
vsed -i GNUmakefile \
-e '/chown ${BINOWN}:${BINGRP}/d'
}
post_install() {
vlicense LICENSE
}