void-packages/srcpkgs/fwknop/template
2021-07-10 20:45:50 +02:00

46 lines
1.1 KiB
Bash

# Template file for 'fwknop'
pkgname=fwknop
version=2.6.10
revision=2
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.0-only"
homepage="https://www.cipherdyne.org/fwknop/"
changelog="https://raw.githubusercontent.com/mrash/fwknop/master/ChangeLog"
distfiles="${homepage}/download/${pkgname}-${version}.tar.gz"
checksum=2b15050bae92ec5210fcac944a7aa4bf9c651333a2b2960aabcd5cfc1d527cf1
CFLAGS="-fcommon"
fwknopd_package() {
depends="iptables libfko>=${version}_${revision}"
conf_files="/etc/fwknop/*.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
}
}