From 5576dfc975333bfc34a94d2a8b1b65eaab950136 Mon Sep 17 00:00:00 2001 From: Thomas Zander Date: Fri, 29 Aug 2014 14:33:48 +0000 Subject: [PATCH] - Import pftables Minimal rc script to save and restore pf tables upon reboots --- sysutils/Makefile | 1 + sysutils/pftables/Makefile | 28 ++++++++++++++++++++++++++++ sysutils/pftables/distinfo | 2 ++ sysutils/pftables/pkg-descr | 5 +++++ 4 files changed, 36 insertions(+) create mode 100644 sysutils/pftables/Makefile create mode 100644 sysutils/pftables/distinfo create mode 100644 sysutils/pftables/pkg-descr diff --git a/sysutils/Makefile b/sysutils/Makefile index ba12bb4cfb0e..8bffbb0cc656 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -689,6 +689,7 @@ SUBDIR += pessulus SUBDIR += pflogx SUBDIR += pfstat + SUBDIR += pftables SUBDIR += pftop SUBDIR += phantom SUBDIR += philesight diff --git a/sysutils/pftables/Makefile b/sysutils/pftables/Makefile new file mode 100644 index 000000000000..310f5272d2e9 --- /dev/null +++ b/sysutils/pftables/Makefile @@ -0,0 +1,28 @@ +# Created by: Thomas Zander +# $FreeBSD$ +# + +PORTNAME= pftables +PORTVERSION= 0.1 +CATEGORIES= sysutils + +MAINTAINER= riggs@FreeBSD.org +COMMENT= Minimal rc script to save and restore pf tables upon reboots + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +USE_GITHUB= yes +GH_ACCOUNT= riggs- +GH_COMMIT= 6a29e7a +GH_TAGNAME= ${GH_COMMIT} + +NO_ARCH= yes +NO_BUILD= yes + +PLIST_FILES= etc/rc.d/pftables + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/pftables ${STAGEDIR}${PREFIX}/etc/rc.d + +.include diff --git a/sysutils/pftables/distinfo b/sysutils/pftables/distinfo new file mode 100644 index 000000000000..6d6c0821762b --- /dev/null +++ b/sysutils/pftables/distinfo @@ -0,0 +1,2 @@ +SHA256 (pftables-0.1.tar.gz) = 44e0008bbeadcda5b74ee01ed2f36c3003dded0c1a8d9b477f5fbd41b8983993 +SIZE (pftables-0.1.tar.gz) = 1919 diff --git a/sysutils/pftables/pkg-descr b/sysutils/pftables/pkg-descr new file mode 100644 index 000000000000..6a93bf2f52fd --- /dev/null +++ b/sysutils/pftables/pkg-descr @@ -0,0 +1,5 @@ +While the FreeBSD Handbook on pf explains the simple steps necessary +to make pf tables survive a reboot, it does not (yet) point to an +already existing script. This rc script provides a minimum solution. + +WWW: https://github.com/riggs-/pftables