python-texttable: update to 1.3.1
[void-packages.git] / srcpkgs / ndhc / template
blob840e5267d42f8d533ad8a099746645f9b43f5940
1 # Template file for 'ndhc'
2 pkgname=ndhc
3 version=20180218
4 revision=1
5 build_style=cmake
6 make_dirs="/var/lib/ndhc/state 0755 root root
7  /var/lib/ndhc/jail/dev 0755 root root"
8 hostmakedepends="ragel"
9 makedepends="libcap-devel"
10 short_desc="Privilege-seperated secure DHCPv4 client"
11 maintainer="Leah Neukirchen <leah@vuxu.org>"
12 license="2-clause-BSD"
13 homepage="https://github.com/niklata/ndhc"
14 nocross=yes   # needs heavy CMakeLists patching
15 _ndhcsum=e08d3b15b53f54ae47993e229bfd40ed3d643f86
16 _libsum=fb9ee14a9e343d83fcf9d761de719d8410168e71
17 distfiles="https://github.com/niklata/ndhc/archive/$_ndhcsum.tar.gz
18  https://github.com/niklata/ncmlib/archive/$_libsum.tar.gz"
19 checksum="704dd0f9a340b7e3faaf054c119832d749525d83b3364114151a88853ea6ae53
20  6b47f624f17616dbebfec223b1b57c745e6d6dbd5d678ee898666651f37e1355"
21 wrksrc="ndhc-$_ndhcsum"
23 # XXX we use only one account for privsep, not three, because they
24 # should have the same primary group.  to be verified.
25 system_accounts="ndhc"
26 ndhc_homedir="/var/lib/ndhc/jail"
28 build_options="static"
29 if [ "$build_option_static" ]; then
30         LDFLAGS+=" -static"
33 post_extract() {
34         mv $XBPS_BUILDDIR/ncmlib-* $wrksrc/ncmlib
37 do_install() {
38         vbin build/src/ndhc
39         vman src/ndhc.8
40         vsv ndhc
41         vlicense LICENSE