# Template file for 'opendoas'
pkgname=opendoas
version=0.1
revision=1
wrksrc="OpenDoas-$version"
build_style=configure
conf_files="/etc/pam.d/doas"
hostmakedepends="bison"
makedepends="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=468fb97307e4ac4c6b92931a2e315fd2b6201f7e82a4db25ec2aa6f6d8b3627e

CFLAGS="-Wno-unused-result"

pre_configure() {
	cp ${FILESDIR}/doas.pam pam.d__doas__linux
	export VERSION=$version BINGRP=root
}

post_install() {
	vlicense LICENSE
}
