void-packages/srcpkgs/fwknop/template
2015-12-23 18:47:19 -05:00

43 lines
1.1 KiB
Bash

# Template file for 'fwknop'
pkgname=fwknop
version=2.6.8
revision=1
build_style=gnu-configure
configure_args="--with-gpg=${XBPS_CROSS_BASE}/usr/bin/gpg"
hostmakedepends="iptables"
makedepends="libpcap-devel gpgme-devel"
short_desc="Single Packet Authorization (SPA) implementation"
maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
license="GPL-2"
homepage="https://www.cipherdyne.org/fwknop/"
distfiles="${homepage}/download/${pkgname}-${version}.tar.gz"
checksum=5999c2cffd231caf3082a5169fbac2f4a3f5db8309355c5615c98998718198ff
fwknopd_package() {
depends="iptables libfko>=${version}_${revision}"
conf_files="/etc/fwknop/fwknopd.conf /etc/fwknop/access.conf"
short_desc+=" - server"
pkg_install() {
vmove etc/fwknop
vmove usr/bin/fwknopd
vmove usr/share/man/man8/fwknopd.8
vsv fwknopd
}
}
libfko_package() {
short_desc+=" - shared libraries"
pkg_install() {
vmove usr/lib/*.so.*
}
}
libfko-devel_package() {
depends="libfko>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/*.a
vmove usr/lib/*.so
}
}