mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-08 08:03:51 +02:00
ndhc: add distfiles+checksum
This commit is contained in:
parent
09c8f6fb46
commit
f6ee6db277
1 changed files with 12 additions and 10 deletions
|
@ -1,18 +1,17 @@
|
||||||
# Template file for 'ndhc'
|
# Template file for 'ndhc'
|
||||||
pkgname=ndhc
|
pkgname=ndhc
|
||||||
version=20150527
|
version=20150527
|
||||||
revision=2
|
revision=3
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
make_dirs="/var/lib/ndhc/state 0755 root root
|
make_dirs="/var/lib/ndhc/state 0755 root root
|
||||||
/var/lib/ndhc/jail/dev 0755 root root"
|
/var/lib/ndhc/jail/dev 0755 root root"
|
||||||
hostmakedepends="cmake git ragel"
|
hostmakedepends="cmake ragel"
|
||||||
makedepends="libcap-devel"
|
makedepends="libcap-devel"
|
||||||
short_desc="Privilege-seperated secure DHCPv4 client"
|
short_desc="Privilege-seperated secure DHCPv4 client"
|
||||||
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
||||||
license="BSD"
|
license="BSD"
|
||||||
homepage="https://github.com/niklata/ndhc"
|
homepage="https://github.com/niklata/ndhc"
|
||||||
nocross=yes # needs heavy CMakeLists patching
|
nocross=yes # needs heavy CMakeLists patching
|
||||||
_gitsum="277f0f67c5df5c1b023a737548e692ad92831ca3 9c2fd471442db3d927e76132b736b41084d9b119"
|
|
||||||
|
|
||||||
# XXX we use only one account for privsep, not three, because they
|
# XXX we use only one account for privsep, not three, because they
|
||||||
# should have the same primary group. to be verified.
|
# should have the same primary group. to be verified.
|
||||||
|
@ -24,13 +23,16 @@ if [ "$build_option_static" ]; then
|
||||||
LDFLAGS+=" -static"
|
LDFLAGS+=" -static"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
do_fetch() {
|
_ndhcsum="277f0f67c5df5c1b023a737548e692ad92831ca3"
|
||||||
git clone git://github.com/niklata/ndhc ${pkgname}-${version}
|
_libsum="9c2fd471442db3d927e76132b736b41084d9b119"
|
||||||
git clone git://github.com/niklata/ncmlib ${pkgname}-${version}/ncmlib
|
distfiles="https://github.com/niklata/ndhc/archive/$_ndhcsum.tar.gz
|
||||||
cd "${pkgname}-${version}"
|
https://github.com/niklata/ncmlib/archive/$_libsum.tar.gz"
|
||||||
git checkout "${_gitsum[1]}"
|
checksum="e3a899fb3346084788ed2ab155cc58d514271e9f97039b962813562e91fcf412 26fe5ec4ce174f5d4fe43bd272ea288b686e6d9da9ed8d6853995958b7d6b667"
|
||||||
cd ncmlib
|
|
||||||
git checkout "${_gitsum[2]}"
|
wrksrc="ndhc-$_ndhcsum"
|
||||||
|
|
||||||
|
post_extract() {
|
||||||
|
mv $XBPS_BUILDDIR/ncmlib-* $wrksrc/ncmlib
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue