void-packages/srcpkgs/ndhc/template
2020-11-18 11:43:55 +01:00

34 lines
936 B
Bash

# Template file for 'ndhc'
pkgname=ndhc
version=20201020
revision=1
_dashversion=2020-10-20
build_style=cmake
make_dirs="/var/lib/ndhc/state 0755 root root
/var/lib/ndhc/jail/dev 0755 root root"
hostmakedepends="ragel"
makedepends="libcap-devel"
short_desc="Privilege-seperated secure DHCPv4 client"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="BSD-2-Clause"
homepage="https://github.com/niklata/ndhc"
distfiles="https://github.com/niklata/ndhc/archive/v${_dashversion}.tar.gz"
checksum=ca5a37afc3f30c9fd110e97339a10b3c8ed08ae6cad388cec6bdd7f3bb146da0
wrksrc="ndhc-${_dashversion}"
# XXX we use only one account for privsep, not three, because they
# should have the same primary group. to be verified.
system_accounts="ndhc"
ndhc_homedir="/var/lib/ndhc/jail"
build_options="static"
if [ "$build_option_static" ]; then
LDFLAGS+=" -static"
fi
do_install() {
vbin build/ndhc
vman src/ndhc.8
vsv ndhc
vlicense LICENSE
}