void-packages/srcpkgs/ndhc/template

37 lines
955 B
Bash
Raw Normal View History

2015-02-12 17:40:37 +00:00
# Template file for 'ndhc'
pkgname=ndhc
2015-02-17 13:37:51 +00:00
version=20150217
2015-02-12 17:40:37 +00:00
revision=1
build_style=cmake
make_dirs="/var/lib/ndhc/state 0755 root root
/var/lib/ndhc/jail/dev 0755 root root"
hostmakedepends="cmake git ragel"
makedepends="libcap-devel"
short_desc="Privilege-seperated secure DHCPv4 client"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="BSD"
homepage="https://github.com/niklata/ndhc"
2015-02-12 17:43:17 +00:00
nocross=yes # needs heavy CMakeLists patching
2015-02-12 17:40:37 +00:00
# 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_fetch() {
git clone git://github.com/niklata/ndhc ${pkgname}-${version}
git clone git://github.com/niklata/ncmlib ${pkgname}-${version}/ncmlib
}
do_install() {
vbin build/src/ndhc
vman src/ndhc.8
vsv ndhc-eth0
vlicense LICENSE
}