[SM-Commit] GIT changes to master grimoire by Vlad Glagolev (b8109ad91ec460ab6e7a9f75819b38fb83fb28d8)

Vlad Glagolev scm at sourcemage.org
Wed Dec 19 22:33:44 EST 2007


GIT changes to master grimoire by Vlad Glagolev <stealth at sourcemage.org>:

 ChangeLog                      |    3 +++
 net/ferm/BUILD                 |    1 +
 net/ferm/DEPENDS               |    2 ++
 net/ferm/DETAILS               |   17 +++++++++++++++++
 net/ferm/HISTORY               |    3 +++
 net/ferm/INSTALL               |    5 +++++
 net/ferm/PRE_BUILD             |    4 ++++
 net/ferm/ferm-1.3.2.tar.gz.sig |binary
 net/ferm/init.d/ferm           |   18 ++++++++++++++++++
 net/ferm/init.d/ferm.conf      |   10 ++++++++++
 10 files changed, 63 insertions(+)

New commits:
commit b8109ad91ec460ab6e7a9f75819b38fb83fb28d8
Author: Vlad Glagolev <stealth at sourcemage.org>
Commit: Vlad Glagolev <stealth at sourcemage.org>

    ferm: new spell, tool to maintain complex firewalls written in perl

diff --git a/ChangeLog b/ChangeLog
index 112f9d5..2c83c48 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2007-12-20 Vlad Glagolev <stealth at sourcemage.org>
+	* net/ferm: new spell, tool to maintain complex firewalls written in perl
+
 2007-12-18 Ladislav Hagara <hgr at vabo.cz>
 	* mobile/rutilt: new spell
 	  a Gtk+ program designed to set up any wireless network interface
diff --git a/net/ferm/BUILD b/net/ferm/BUILD
new file mode 100755
index 0000000..8f58e6d
--- /dev/null
+++ b/net/ferm/BUILD
@@ -0,0 +1 @@
+make
diff --git a/net/ferm/DEPENDS b/net/ferm/DEPENDS
new file mode 100755
index 0000000..b231bc5
--- /dev/null
+++ b/net/ferm/DEPENDS
@@ -0,0 +1,2 @@
+depends perl 
+depends iptables
diff --git a/net/ferm/DETAILS b/net/ferm/DETAILS
new file mode 100755
index 0000000..e1e52db
--- /dev/null
+++ b/net/ferm/DETAILS
@@ -0,0 +1,17 @@
+           SPELL=ferm
+         VERSION=1.3.2
+          SOURCE=$SPELL-$VERSION.tar.gz
+   SOURCE_URL[0]=http://ferm.foo-projects.org/download/1.3/$SOURCE
+      SOURCE_GPG=gurus.gpg:$SOURCE.sig
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-$VERSION
+        WEB_SITE=http://ferm.foo-projects.org/
+      LICENSE[0]=GPL
+         ENTERED=20071220
+           SHORT="tool to maintain complex firewalls"
+cat << EOF
+ferm is a tool to maintain complex firewalls, without having the trouble
+to rewrite the complex rules over and over again. ferm allows the entire
+firewall rule set to be stored in a separate file, and to be loaded with one
+command. The firewall configuration resembles structured programming-like
+language, which can contain levels and lists.
+EOF
diff --git a/net/ferm/HISTORY b/net/ferm/HISTORY
new file mode 100644
index 0000000..238be23
--- /dev/null
+++ b/net/ferm/HISTORY
@@ -0,0 +1,3 @@
+2007-12-20 Vlad Glagolev <stealth at sourcemage.org>
+	* DEPENDS, DETAILS, INSTALL, BUILD, PRE_BUILD, init.d: spell created,
+	  init.d/ferm.conf is basic and doesn't need anything more than this
diff --git a/net/ferm/INSTALL b/net/ferm/INSTALL
new file mode 100755
index 0000000..e89edd6
--- /dev/null
+++ b/net/ferm/INSTALL
@@ -0,0 +1,5 @@
+make install &&
+if [[ $INIT_INSTALLED ]]; then
+  install_config_file ${SCRIPT_DIRECTORY}/init.d/ferm.conf \
+    $INSTALL_ROOT/etc/sysconfig/ferm
+fi
diff --git a/net/ferm/PRE_BUILD b/net/ferm/PRE_BUILD
new file mode 100755
index 0000000..e31b73f
--- /dev/null
+++ b/net/ferm/PRE_BUILD
@@ -0,0 +1,4 @@
+default_pre_build &&
+cd $SOURCE_DIRECTORY &&
+sed -i "s:man/:share/man/:" config.mk &&
+sed -i "s:sbin:usr/sbin:" src/import-ferm
diff --git a/net/ferm/ferm-1.3.2.tar.gz.sig b/net/ferm/ferm-1.3.2.tar.gz.sig
new file mode 100644
index 0000000..7825d04
Binary files /dev/null and b/net/ferm/ferm-1.3.2.tar.gz.sig differ
diff --git a/net/ferm/init.d/ferm b/net/ferm/init.d/ferm
new file mode 100755
index 0000000..9523582
--- /dev/null
+++ b/net/ferm/init.d/ferm
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+PROGRAM=/usr/sbin/ferm
+RUNLEVEL=3
+ARGS="/etc/sysconfig/ferm"
+NEEDS="+network"
+
+. /etc/init.d/smgl_init
+
+stop() {
+    echo "Flushing $NAME rules..."
+    ferm -F $ARGS
+    evaluate_retval
+}
+
+usage() {
+    echo "Usage: $0 {start|stop|restart}"
+}
diff --git a/net/ferm/init.d/ferm.conf b/net/ferm/init.d/ferm.conf
new file mode 100644
index 0000000..c2070a2
--- /dev/null
+++ b/net/ferm/init.d/ferm.conf
@@ -0,0 +1,10 @@
+# Ferm example script
+#
+# for more info how to confgure it -- read ferm(1) and import-ferm(1)
+#
+
+table filter {
+    chain INPUT policy ACCEPT;
+    chain OUTPUT policy ACCEPT;
+    chain FORWARD policy DROP;
+}



More information about the SM-Commit mailing list