void-packages/srcpkgs/opendoas/template
2019-11-23 17:20:37 +01:00

30 lines
843 B
Bash

# Template file for 'opendoas'.
pkgname=opendoas
version=6.6
revision=1
wrksrc="OpenDoas-$version"
build_style=configure
configure_args="$(vopt_with 'pam')"
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"
homepage="https://github.com/Duncaen/OpenDoas"
distfiles="https://github.com/Duncaen/OpenDoas/archive/v${version}.tar.gz"
checksum=83ca7e6d75b834f0a03604a4e5dd3879534de5ab8e75b36bbe169b53666f8ec8
build_options="pam"
build_options_default="pam"
pre_configure() {
cp ${FILESDIR}/doas.pam pam.d__doas__linux
vsed -i bsd.prog.mk \
-e '/chown ${BINOWN}:${BINGRP}/d' \
-e '/chmod ${BINMODE}/d'
}
post_install() {
vlicense LICENSE
}