void-packages/srcpkgs/opendoas/template
2016-06-27 18:55:43 +02:00

30 lines
837 B
Bash

# Template file for 'opendoas'
pkgname=opendoas
version=0.3.2
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.eu>"
license="BSD"
homepage="https://github.com/Duncaen/OpenDoas"
distfiles="https://github.com/Duncaen/OpenDoas/archive/v${version}.tar.gz"
checksum=2d985dbfae31e9c7b422f059d5914ff5bd5d38f2cce1962ad825ffbf0fbd291d
build_options="pam"
build_options_default="pam"
pre_configure() {
cp ${FILESDIR}/doas.pam pam.d__doas__linux
sed -i bsd.prog.mk \
-e '/chown ${BINOWN}:${BINGRP}/d' \
-e '/chmod ${BINMODE}/d'
}
post_install() {
vlicense LICENSE
}