From: Michael Tremer Date: Sun, 7 Feb 2010 15:37:55 +0000 (+0100) Subject: network: New package. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6860f43b5917e72fdcc59b3abf35a97339a1d88;p=ipfire-3.x.git network: New package. --- diff --git a/pkgs/core/network/network.nm b/pkgs/core/network/network.nm new file mode 100644 index 000000000..161923c3d --- /dev/null +++ b/pkgs/core/network/network.nm @@ -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 . # +# # +############################################################################### + +############################################################################### +# Definitions +############################################################################### + +include $(PKGROOT)/Include + +PKG_NAME = network +PKG_VER = +PKG_REL = 0 + +PKG_MAINTAINER = Michael Tremer +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 diff --git a/src/network/functions b/pkgs/core/network/src/functions similarity index 100% rename from src/network/functions rename to pkgs/core/network/src/functions diff --git a/src/network/functions.ppp b/pkgs/core/network/src/functions.ppp similarity index 100% rename from src/network/functions.ppp rename to pkgs/core/network/src/functions.ppp diff --git a/src/network/hook-header b/pkgs/core/network/src/hook-header similarity index 100% rename from src/network/hook-header rename to pkgs/core/network/src/hook-header diff --git a/src/network/hooks/README b/pkgs/core/network/src/hooks/README similarity index 100% rename from src/network/hooks/README rename to pkgs/core/network/src/hooks/README diff --git a/src/network/hooks/bonding b/pkgs/core/network/src/hooks/bonding similarity index 100% rename from src/network/hooks/bonding rename to pkgs/core/network/src/hooks/bonding diff --git a/src/network/hooks/ethernet b/pkgs/core/network/src/hooks/ethernet similarity index 100% rename from src/network/hooks/ethernet rename to pkgs/core/network/src/hooks/ethernet diff --git a/src/network/hooks/ipv4-dhcp b/pkgs/core/network/src/hooks/ipv4-dhcp similarity index 100% rename from src/network/hooks/ipv4-dhcp rename to pkgs/core/network/src/hooks/ipv4-dhcp diff --git a/src/network/hooks/ipv4-static b/pkgs/core/network/src/hooks/ipv4-static similarity index 100% rename from src/network/hooks/ipv4-static rename to pkgs/core/network/src/hooks/ipv4-static diff --git a/src/network/hooks/ipv4-static-route b/pkgs/core/network/src/hooks/ipv4-static-route similarity index 100% rename from src/network/hooks/ipv4-static-route rename to pkgs/core/network/src/hooks/ipv4-static-route diff --git a/src/network/hooks/mtu b/pkgs/core/network/src/hooks/mtu similarity index 100% rename from src/network/hooks/mtu rename to pkgs/core/network/src/hooks/mtu diff --git a/src/network/hooks/pppoe b/pkgs/core/network/src/hooks/pppoe similarity index 100% rename from src/network/hooks/pppoe rename to pkgs/core/network/src/hooks/pppoe diff --git a/src/network/hooks/pppoe.helper b/pkgs/core/network/src/hooks/pppoe.helper similarity index 100% rename from src/network/hooks/pppoe.helper rename to pkgs/core/network/src/hooks/pppoe.helper diff --git a/src/network/hooks/stp b/pkgs/core/network/src/hooks/stp similarity index 100% rename from src/network/hooks/stp rename to pkgs/core/network/src/hooks/stp diff --git a/src/network/hooks/vlan b/pkgs/core/network/src/hooks/vlan similarity index 100% rename from src/network/hooks/vlan rename to pkgs/core/network/src/hooks/vlan diff --git a/src/network/network b/pkgs/core/network/src/network similarity index 100% rename from src/network/network rename to pkgs/core/network/src/network diff --git a/src/network/ppp/ip-updown b/pkgs/core/network/src/ppp/ip-updown similarity index 100% rename from src/network/ppp/ip-updown rename to pkgs/core/network/src/ppp/ip-updown diff --git a/src/network/zone b/pkgs/core/network/src/zone similarity index 100% rename from src/network/zone rename to pkgs/core/network/src/zone