From 54140dacb0e3786d6b344a88ac34931b0beff547 Mon Sep 17 00:00:00 2001 From: Steve Prybylski Date: Tue, 13 Oct 2015 20:27:25 -0400 Subject: [PATCH] New package: fwknop-2.6.7 --- common/shlibs | 1 + srcpkgs/fwknop/files/fwknopd/run | 2 ++ srcpkgs/fwknop/template | 43 ++++++++++++++++++++++++++++++++ srcpkgs/fwknopd | 1 + srcpkgs/libfko | 1 + srcpkgs/libfko-devel | 1 + 6 files changed, 49 insertions(+) create mode 100644 srcpkgs/fwknop/files/fwknopd/run create mode 100644 srcpkgs/fwknop/template create mode 120000 srcpkgs/fwknopd create mode 120000 srcpkgs/libfko create mode 120000 srcpkgs/libfko-devel diff --git a/common/shlibs b/common/shlibs index fa6eec6df4..4a92a4285d 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2225,3 +2225,4 @@ libdovecot-sieve.so.0 dovecot-plugin-pigeonhole-0.4.9_2 libi3ipc-glib-1.0.so.0 i3ipc-glib-0.6.0_1 libcsound64.so.6.0 csound-6.05.0_1 libcsnd6.so.6.0 csound-6.05.0_1 +libfko.so.2 libfko-2.6.7_1 diff --git a/srcpkgs/fwknop/files/fwknopd/run b/srcpkgs/fwknop/files/fwknopd/run new file mode 100644 index 0000000000..9d915cb51e --- /dev/null +++ b/srcpkgs/fwknop/files/fwknopd/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec fwknopd -f diff --git a/srcpkgs/fwknop/template b/srcpkgs/fwknop/template new file mode 100644 index 0000000000..41431dbbd4 --- /dev/null +++ b/srcpkgs/fwknop/template @@ -0,0 +1,43 @@ +# Template file for 'fwknop' +pkgname=fwknop +version=2.6.7 +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 " +license="GPL-2" +homepage="https://www.cipherdyne.org/fwknop/" +distfiles="${homepage}/download/${pkgname}-${version}.tar.gz" +checksum=ed6f8cfbda6dc76a56a994465188b49419267492ebc6d5328e0947479bd2714b + +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 + } +} diff --git a/srcpkgs/fwknopd b/srcpkgs/fwknopd new file mode 120000 index 0000000000..3b65ebff9d --- /dev/null +++ b/srcpkgs/fwknopd @@ -0,0 +1 @@ +fwknop \ No newline at end of file diff --git a/srcpkgs/libfko b/srcpkgs/libfko new file mode 120000 index 0000000000..3b65ebff9d --- /dev/null +++ b/srcpkgs/libfko @@ -0,0 +1 @@ +fwknop \ No newline at end of file diff --git a/srcpkgs/libfko-devel b/srcpkgs/libfko-devel new file mode 120000 index 0000000000..3b65ebff9d --- /dev/null +++ b/srcpkgs/libfko-devel @@ -0,0 +1 @@ +fwknop \ No newline at end of file