void-packages/srcpkgs/opendoas/template

33 lines
975 B
Bash

# Template file for 'opendoas'
pkgname=opendoas
version=6.8
revision=1
wrksrc="OpenDoas-$version"
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=c53edc59a576cfe8ec8737230e7d0398842a5a8c925e25065463ab632a7eaba9
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' \
-e '/chmod ${BINMODE}/d'
}
post_install() {
vlicense LICENSE
}