36 lines
970 B
Bash
36 lines
970 B
Bash
# Template file for 'ndhc'
|
|
pkgname=ndhc
|
|
version=20220308
|
|
revision=1
|
|
_dashversion="${version:0:4}-${version:4:2}-${version:6:2}"
|
|
build_style=gnu-makefile
|
|
make_dirs="
|
|
/var/lib/ndhc/state 0755 root root
|
|
/var/lib/ndhc/jail/dev 0755 root root"
|
|
makedepends="libcap-devel"
|
|
short_desc="Privilege-seperated secure DHCPv4 client"
|
|
maintainer="Duncaen <duncaen@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="https://github.com/niklata/ndhc"
|
|
distfiles="https://github.com/niklata/ndhc/archive/v${_dashversion}.tar.gz"
|
|
checksum=30f595b7c1cc2e60599b8c6aa82e0b1ee4ef2243a67fcebf812b60746db7de4d
|
|
|
|
export CFLAGS="-std=gnu99 -D_GNU_SOURCE -DNK_USE_CAPABILITY"
|
|
|
|
# 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 ndhc
|
|
vman ndhc.8
|
|
vsv ndhc
|
|
vlicense LICENSE
|
|
}
|