void-packages/srcpkgs/opendoas/template

31 lines
840 B
Bash
Raw Normal View History

2016-05-29 18:44:35 +00:00
# Template file for 'opendoas'
pkgname=opendoas
2016-09-07 20:28:11 +00:00
version=6.0
2016-05-29 18:44:35 +00:00
revision=1
wrksrc="OpenDoas-$version"
build_style=configure
2016-06-27 16:55:43 +00:00
configure_args="$(vopt_with 'pam')"
2016-06-26 21:51:46 +00:00
conf_files="$(vopt_if 'pam' '/etc/pam.d/doas')"
2016-05-29 18:44:35 +00:00
hostmakedepends="bison"
2016-06-26 21:51:46 +00:00
makedepends="$(vopt_if 'pam' 'pam-devel')"
2016-05-29 18:44:35 +00:00
short_desc="Portable OpenBSD doas to execute commands as another user"
maintainer="Duncaen <duncaen@voidlinux.eu>"
2016-09-07 20:28:11 +00:00
license="ISC, BSD"
2016-05-29 18:44:35 +00:00
homepage="https://github.com/Duncaen/OpenDoas"
distfiles="https://github.com/Duncaen/OpenDoas/archive/v${version}.tar.gz"
2016-09-07 20:28:11 +00:00
checksum=59b5ce734591e0e5142f9cb27aaa56a4d5ce470d1f7ad85e9679cd91d2dd2058
2016-06-26 21:51:46 +00:00
build_options="pam"
build_options_default="pam"
2016-05-29 18:44:35 +00:00
pre_configure() {
cp ${FILESDIR}/doas.pam pam.d__doas__linux
2016-06-05 12:20:11 +00:00
sed -i bsd.prog.mk \
-e '/chown ${BINOWN}:${BINGRP}/d' \
-e '/chmod ${BINMODE}/d'
2016-05-29 18:44:35 +00:00
}
post_install() {
vlicense LICENSE
}