diff options
author | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-12-13 13:01:01 +0000 |
---|---|---|
committer | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-12-13 13:01:01 +0000 |
commit | 0af4779944a183d23dd2f6c35c9902160237b95b (patch) | |
tree | 07697b4b585e304902d8364595be78db791baf3d /openwrt/package/dhcp6/Makefile | |
parent | 63bb3d91544b8e09e859e9be19b66c0da1b226f5 (diff) |
Added dhcp6, an IPv6 implementation of the dhcp server and client
Added support in package/rules.mk for zip files, just use PKG_CAT=unzip to uncompress the archive
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2649 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/dhcp6/Makefile')
-rwxr-xr-x | openwrt/package/dhcp6/Makefile | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/openwrt/package/dhcp6/Makefile b/openwrt/package/dhcp6/Makefile new file mode 100755 index 0000000000..aef4f5cf09 --- /dev/null +++ b/openwrt/package/dhcp6/Makefile @@ -0,0 +1,35 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=dhcp6 +PKG_VERSION:=1.0 +PKG_RELEASE:=1 +PKG_MD5SUM:=86193dfa62137db3ea459543db4f1102 +PKG_SOURCE_URL:=@SF/dhcpv6-linux +PKG_SOURCE:=dhcpv6-linux-$(PKG_VERSION).zip +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) +PKG_CAT:=unzip + +PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install + +include $(TOPDIR)/package/rules.mk + +$(eval $(call PKG_template,DHCP6,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) + +$(PKG_BUILD_DIR)/.configured: + touch $@ + +$(PKG_BUILD_DIR)/.built: + $(MAKE) CC=$(TARGET_CC) STAGING_DIR=$(STAGING_DIR) -C $(PKG_BUILD_DIR)/server + $(MAKE) CC=$(TARGET_CC) STAGING_DIR=$(STAGING_DIR) -C $(PKG_BUILD_DIR)/client + install -d $(PKG_INSTALL_DIR)/usr/sbin $(PKG_INSTALL_DIR)/etc/dhcp{d6,6} + install -m0755 $(PKG_BUILD_DIR)/client/cli $(PKG_INSTALL_DIR)/usr/sbin/dhcp6client + install -m0755 $(PKG_BUILD_DIR)/server/serv $(PKG_INSTALL_DIR)/usr/sbin/dhcpd6 + install -m0755 $(PKG_BUILD_DIR)/server/*.conf $(PKG_INSTALL_DIR)/etc/dhcpd6/ + install -m0755 $(PKG_BUILD_DIR)/client/*.conf $(PKG_INSTALL_DIR)/etc/dhcp6/ + touch $@ + +$(IPKG_DHCP6): + mkdir -p $(IDIR_DHCP6) + cp -fpR $(PKG_INSTALL_DIR)/* $(IDIR_DHCP6)/ + $(RSTRIP) $(IDIR_DHCP6) + $(IPKG_BUILD) $(IDIR_DHCP6) $(PACKAGE_DIR) |