void-packages/srcpkgs/ndhc/template

42 lines
1.1 KiB
Bash
Raw Normal View History

2015-02-12 18:40:37 +01:00
# Template file for 'ndhc'
pkgname=ndhc
2015-05-27 23:22:54 +02:00
version=20150527
2015-05-27 23:26:22 +02:00
revision=2
2015-02-12 18:40:37 +01:00
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 18:43:17 +01:00
nocross=yes # needs heavy CMakeLists patching
2015-05-27 23:22:54 +02:00
_gitsum="277f0f67c5df5c1b023a737548e692ad92831ca3 9c2fd471442db3d927e76132b736b41084d9b119"
2015-02-12 18:40:37 +01: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
2015-05-27 23:22:54 +02:00
cd "${pkgname}-${version}"
git checkout "${_gitsum[1]}"
cd ncmlib
git checkout "${_gitsum[2]}"
2015-02-12 18:40:37 +01:00
}
do_install() {
vbin build/src/ndhc
vman src/ndhc.8
2015-05-27 23:26:22 +02:00
vsv ndhc
2015-02-12 18:40:37 +01:00
vlicense LICENSE
}