]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
network: New package.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 7 Feb 2010 15:37:55 +0000 (16:37 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 8 Feb 2010 16:08:52 +0000 (17:08 +0100)
18 files changed:
pkgs/core/network/network.nm [new file with mode: 0644]
pkgs/core/network/src/functions [moved from src/network/functions with 100% similarity]
pkgs/core/network/src/functions.ppp [moved from src/network/functions.ppp with 100% similarity]
pkgs/core/network/src/hook-header [moved from src/network/hook-header with 100% similarity]
pkgs/core/network/src/hooks/README [moved from src/network/hooks/README with 100% similarity]
pkgs/core/network/src/hooks/bonding [moved from src/network/hooks/bonding with 100% similarity]
pkgs/core/network/src/hooks/ethernet [moved from src/network/hooks/ethernet with 100% similarity]
pkgs/core/network/src/hooks/ipv4-dhcp [moved from src/network/hooks/ipv4-dhcp with 100% similarity]
pkgs/core/network/src/hooks/ipv4-static [moved from src/network/hooks/ipv4-static with 100% similarity]
pkgs/core/network/src/hooks/ipv4-static-route [moved from src/network/hooks/ipv4-static-route with 100% similarity]
pkgs/core/network/src/hooks/mtu [moved from src/network/hooks/mtu with 100% similarity]
pkgs/core/network/src/hooks/pppoe [moved from src/network/hooks/pppoe with 100% similarity]
pkgs/core/network/src/hooks/pppoe.helper [moved from src/network/hooks/pppoe.helper with 100% similarity]
pkgs/core/network/src/hooks/stp [moved from src/network/hooks/stp with 100% similarity]
pkgs/core/network/src/hooks/vlan [moved from src/network/hooks/vlan with 100% similarity]
pkgs/core/network/src/network [moved from src/network/network with 100% similarity]
pkgs/core/network/src/ppp/ip-updown [moved from src/network/ppp/ip-updown with 100% similarity]
pkgs/core/network/src/zone [moved from src/network/zone with 100% similarity]

diff --git a/pkgs/core/network/network.nm b/pkgs/core/network/network.nm
new file mode 100644 (file)
index 0000000..161923c
--- /dev/null
@@ -0,0 +1,63 @@
+###############################################################################
+#                                                                             #
+# 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       = network
+PKG_VER        =
+PKG_REL        = 0
+
+PKG_MAINTAINER = Michael Tremer <michael.tremer@ipfire.org>
+PKG_GROUP      = Networking/Tools
+PKG_URL        = http://www.ipfire.org/
+PKG_LICENSE    = GPLv3+
+PKG_SUMMARY    = The IPFire Networking Scripts.
+
+PKG_DEPS      += dhcp iproute2 ppp sqlite vlan
+
+define PKG_DESCRIPTION
+       This script installs the IPFire Networking Scripts.
+endef
+
+DIR_APP = $(DIR_SOURCE)/src
+
+PKG_TARBALL    =
+
+STAGE_PREPARE = # Do nothing
+STAGE_BUILD = # Do nothing
+
+define STAGE_INSTALL
+       -mkdir -pv $(BUILDROOT)/etc/ppp
+       -mkdir -pv $(BUILDROOT)/lib/network
+       -mkdir -pv $(BUILDROOT)/sbin
+       -mkdir -pv $(BUILDROOT)/var/log/network
+
+       install -m 755 -v $(DIR_APP)/network $(BUILDROOT)/sbin
+
+       cp -rfv $(DIR_APP)/{hooks,hook-header,functions*,zone} $(BUILDROOT)/lib/network/
+
+       install -m 755 -v $(DIR_APP)/ppp/ip-updown $(BUILDROOT)/etc/ppp
+       ln -svf ip-updown $(BUILDROOT)/etc/ppp/ip-up
+       ln -svf ip-updown $(BUILDROOT)/etc/ppp/ip-down
+endef
similarity index 100%
rename from src/network/zone
rename to pkgs/core/network/src/zone