0422279876
This fixes CVE-2019-25016.
30 lines
947 B
Bash
30 lines
947 B
Bash
# Template file for 'opendoas'
|
|
pkgname=opendoas
|
|
version=6.8.1
|
|
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=c9070ae745d0f1bbe68ef0783a3958cd011b409959f65fd100e6b42b8ad6b162
|
|
|
|
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'
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|