]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
firewall: New package.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 7 Feb 2010 16:04:23 +0000 (17:04 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 8 Feb 2010 16:08:52 +0000 (17:08 +0100)
18 files changed:
pkgs/core/firewall/firewall.nm [new file with mode: 0644]
pkgs/core/firewall/src/firewall [moved from src/firewall/firewall with 100% similarity]
pkgs/core/firewall/src/functions [moved from src/firewall/functions with 100% similarity]
pkgs/core/firewall/src/functions.commands [moved from src/firewall/functions.commands with 100% similarity]
pkgs/core/firewall/src/functions.config [moved from src/firewall/functions.config with 100% similarity]
pkgs/core/firewall/src/functions.firewall [moved from src/firewall/functions.firewall with 100% similarity]
pkgs/core/firewall/src/functions.ip [moved from src/firewall/functions.ip with 100% similarity]
pkgs/core/firewall/src/functions.iptables [moved from src/firewall/functions.iptables with 100% similarity]
pkgs/core/firewall/src/functions.macros [moved from src/firewall/functions.macros with 100% similarity]
pkgs/core/firewall/src/functions.zones [moved from src/firewall/functions.zones with 100% similarity]
pkgs/core/firewall/src/macros/DHCP [moved from src/firewall/macros/DHCP with 100% similarity]
pkgs/core/firewall/src/macros/HTTP [moved from src/firewall/macros/HTTP with 100% similarity]
pkgs/core/firewall/src/macros/HTTPS [moved from src/firewall/macros/HTTPS with 100% similarity]
pkgs/core/firewall/src/macros/WWW [moved from src/firewall/macros/WWW with 100% similarity]
pkgs/core/firewall/src/zones.blue [moved from src/firewall/zones.blue with 100% similarity]
pkgs/core/firewall/src/zones.green [moved from src/firewall/zones.green with 100% similarity]
pkgs/core/firewall/src/zones.orange [moved from src/firewall/zones.orange with 100% similarity]
pkgs/core/firewall/src/zones.red [moved from src/firewall/zones.red with 100% similarity]

diff --git a/pkgs/core/firewall/firewall.nm b/pkgs/core/firewall/firewall.nm
new file mode 100644 (file)
index 0000000..d8cdaaa
--- /dev/null
@@ -0,0 +1,57 @@
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+###############################################################################
+# Definitions
+###############################################################################
+
+include $(PKGROOT)/Include
+
+PKG_NAME       = firewall
+PKG_VER        =
+PKG_REL        = 0
+
+PKG_MAINTAINER = Michael Tremer <michael.tremer@ipfire.org>
+PKG_GROUP      = Networking/Firewall
+PKG_URL        = http://www.ipfire.org/
+PKG_LICENSE    = GPLv3+
+PKG_SUMMARY    = The IPFire Firewall Engine.
+
+PKG_DEPS      += iproute2 iptables
+
+define PKG_DESCRIPTION
+       This script installs IPFire's firewall.
+endef
+
+DIR_APP = $(DIR_SOURCE)/src
+
+PKG_TARBALL    =
+
+STAGE_PREPARE = # Do nothing
+STAGE_BUILD = # Do nothing
+
+define STAGE_INSTALL
+       -mkdir -pv $(BUILDROOT)/usr/{lib,share}/firewall $(BUILDROOT)/usr/bin
+       for i in $(DIR_APP)/{functions,zones}*; do \
+               install -m 644 -v $$i $(BUILDROOT)/usr/lib/firewall; \
+       done
+       cp -avf $(DIR_APP)/macros $(BUILDROOT)/usr/share/firewall/
+       install -m 755 -v $(DIR_APP)/firewall $(BUILDROOT)/usr/bin
+endef