From c2b5767572c7cece21f7739e416d59458278b7d8 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 20 Oct 2011 15:01:06 +0000 Subject: [PATCH] base-files: move network related scripts to a separate package to make the transition to netifd easier SVN-Revision: 28495 --- package/base-files-network/Makefile | 44 +++++++++++++++++++ .../files/etc/hotplug.d/iface/00-netstate | 0 .../files/etc/hotplug.d/iface/10-routes | 0 .../files/etc/hotplug.d/net/10-net | 0 .../files/etc/init.d/network | 0 .../files/lib/network/config.sh | 0 .../files/sbin/ifdown | 0 .../files/sbin/ifup | 0 .../files/usr/share/udhcpc/default.script | 0 package/base-files/Makefile | 1 + 10 files changed, 45 insertions(+) create mode 100644 package/base-files-network/Makefile rename package/{base-files => base-files-network}/files/etc/hotplug.d/iface/00-netstate (100%) rename package/{base-files => base-files-network}/files/etc/hotplug.d/iface/10-routes (100%) rename package/{base-files => base-files-network}/files/etc/hotplug.d/net/10-net (100%) rename package/{base-files => base-files-network}/files/etc/init.d/network (100%) rename package/{base-files => base-files-network}/files/lib/network/config.sh (100%) rename package/{base-files => base-files-network}/files/sbin/ifdown (100%) rename package/{base-files => base-files-network}/files/sbin/ifup (100%) rename package/{base-files => base-files-network}/files/usr/share/udhcpc/default.script (100%) diff --git a/package/base-files-network/Makefile b/package/base-files-network/Makefile new file mode 100644 index 0000000000..0a74196bc1 --- /dev/null +++ b/package/base-files-network/Makefile @@ -0,0 +1,44 @@ +# +# Copyright (C) 2007-2011 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk +include $(INCLUDE_DIR)/kernel.mk + +PKG_NAME:=base-files-network +PKG_RELEASE:=1 + +PKG_BUILD_DEPENDS:=opkg/host + +include $(INCLUDE_DIR)/package.mk + +define Package/base-files-network + SECTION:=base + CATEGORY:=Base system + TITLE:=Network scripts for the OpenWrt base system + URL:=http://openwrt.org/ + VERSION:=$(PKG_RELEASE) +endef + +define Package/base-files-network/description + This package contains the network system scripts for OpenWrt. +endef + +define Build/Prepare + mkdir -p $(PKG_BUILD_DIR) +endef + +define Build/Compile + +endef + +define Package/base-files-network/install + $(CP) ./files/* $(1)/ +endef + + +$(eval $(call BuildPackage,base-files-network)) + diff --git a/package/base-files/files/etc/hotplug.d/iface/00-netstate b/package/base-files-network/files/etc/hotplug.d/iface/00-netstate similarity index 100% rename from package/base-files/files/etc/hotplug.d/iface/00-netstate rename to package/base-files-network/files/etc/hotplug.d/iface/00-netstate diff --git a/package/base-files/files/etc/hotplug.d/iface/10-routes b/package/base-files-network/files/etc/hotplug.d/iface/10-routes similarity index 100% rename from package/base-files/files/etc/hotplug.d/iface/10-routes rename to package/base-files-network/files/etc/hotplug.d/iface/10-routes diff --git a/package/base-files/files/etc/hotplug.d/net/10-net b/package/base-files-network/files/etc/hotplug.d/net/10-net similarity index 100% rename from package/base-files/files/etc/hotplug.d/net/10-net rename to package/base-files-network/files/etc/hotplug.d/net/10-net diff --git a/package/base-files/files/etc/init.d/network b/package/base-files-network/files/etc/init.d/network similarity index 100% rename from package/base-files/files/etc/init.d/network rename to package/base-files-network/files/etc/init.d/network diff --git a/package/base-files/files/lib/network/config.sh b/package/base-files-network/files/lib/network/config.sh similarity index 100% rename from package/base-files/files/lib/network/config.sh rename to package/base-files-network/files/lib/network/config.sh diff --git a/package/base-files/files/sbin/ifdown b/package/base-files-network/files/sbin/ifdown similarity index 100% rename from package/base-files/files/sbin/ifdown rename to package/base-files-network/files/sbin/ifdown diff --git a/package/base-files/files/sbin/ifup b/package/base-files-network/files/sbin/ifup similarity index 100% rename from package/base-files/files/sbin/ifup rename to package/base-files-network/files/sbin/ifup diff --git a/package/base-files/files/usr/share/udhcpc/default.script b/package/base-files-network/files/usr/share/udhcpc/default.script similarity index 100% rename from package/base-files/files/usr/share/udhcpc/default.script rename to package/base-files-network/files/usr/share/udhcpc/default.script diff --git a/package/base-files/Makefile b/package/base-files/Makefile index 6d494e06dd..0f823beee1 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile @@ -34,6 +34,7 @@ endif define Package/base-files SECTION:=base CATEGORY:=Base system + DEPENDS:=+base-files-network TITLE:=Base filesystem for OpenWrt URL:=http://openwrt.org/ VERSION:=$(PKG_RELEASE)-$(REVISION) -- 2.25.1