2015-02-12 18:40:37 +01:00
|
|
|
# Template file for 'ndhc'
|
|
|
|
pkgname=ndhc
|
2015-09-19 13:45:31 +02:00
|
|
|
version=20150703
|
2015-09-19 13:44:03 +02:00
|
|
|
revision=1
|
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"
|
2015-07-29 03:35:15 +02:00
|
|
|
hostmakedepends="cmake ragel"
|
2015-02-12 18:40:37 +01:00
|
|
|
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-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
|
|
|
|
|
2015-09-19 13:44:03 +02:00
|
|
|
_ndhcsum="e0b5ff8eaf2dba7beb37ca49df5521f83a3eead5"
|
2015-07-29 03:35:15 +02:00
|
|
|
_libsum="9c2fd471442db3d927e76132b736b41084d9b119"
|
|
|
|
distfiles="https://github.com/niklata/ndhc/archive/$_ndhcsum.tar.gz
|
|
|
|
https://github.com/niklata/ncmlib/archive/$_libsum.tar.gz"
|
2015-09-19 13:44:03 +02:00
|
|
|
checksum="43713c1481eea26a9a46980ec652e10ac64365361d45b3c7f86d41ae3a9ab4bd 26fe5ec4ce174f5d4fe43bd272ea288b686e6d9da9ed8d6853995958b7d6b667"
|
2015-07-29 03:35:15 +02:00
|
|
|
|
|
|
|
wrksrc="ndhc-$_ndhcsum"
|
|
|
|
|
|
|
|
post_extract() {
|
|
|
|
mv $XBPS_BUILDDIR/ncmlib-* $wrksrc/ncmlib
|
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
|
|
|
|
}
|