# Template file for 'ndhc' pkgname=ndhc version=20160506 revision=1 build_style=cmake make_dirs="/var/lib/ndhc/state 0755 root root /var/lib/ndhc/jail/dev 0755 root root" hostmakedepends="cmake ragel" makedepends="libcap-devel" short_desc="Privilege-seperated secure DHCPv4 client" maintainer="Christian Neukirchen " license="BSD" homepage="https://github.com/niklata/ndhc" nocross=yes # needs heavy CMakeLists patching # 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 _ndhcsum=1fc7bd31448a284b8b3dc7ade5436d586de06fb5 _libsum=6c9f48031a5408eb6775f86e9f86e5d5f2895ed1 distfiles="https://github.com/niklata/ndhc/archive/$_ndhcsum.tar.gz https://github.com/niklata/ncmlib/archive/$_libsum.tar.gz" checksum="1b819e96aa8a63eee2f4417a8fd0e9d2d4b3e6fb427ec5b376eea1e4818943fd 1ff1e8a6159337093ea45d512460ab8ffa41e3b893ae838bcb203bd730b37a3f" wrksrc="ndhc-$_ndhcsum" post_extract() { mv $XBPS_BUILDDIR/ncmlib-* $wrksrc/ncmlib } do_install() { vbin build/src/ndhc vman src/ndhc.8 vsv ndhc vlicense LICENSE }