32 lines
954 B
Bash
32 lines
954 B
Bash
# Template file for 'opendoas'
|
|
pkgname=opendoas
|
|
version=6.6.1
|
|
revision=1
|
|
wrksrc="OpenDoas-$version"
|
|
build_style=configure
|
|
configure_args="$(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"
|
|
homepage="https://github.com/Duncaen/OpenDoas"
|
|
distfiles="https://github.com/Duncaen/OpenDoas/archive/v${version}.tar.gz"
|
|
checksum=baf5a2c73116781519cf03b5b9147eee8db69e8b052eaa81caf093107226b4fe
|
|
|
|
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 bsd.prog.mk \
|
|
-e '/chown ${BINOWN}:${BINGRP}/d' \
|
|
-e '/chmod ${BINMODE}/d'
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|