From 445d5e12cf785fd0741298de731fe801d46a8417 Mon Sep 17 00:00:00 2001 From: nico Date: Sat, 5 Nov 2005 02:16:36 +0000 Subject: reorganize/rationalize/format package menuconfig, make updatedd modular git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2333 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- openwrt/package/updatedd/Makefile | 66 +++++++++++++++++++-------------------- 1 file changed, 32 insertions(+), 34 deletions(-) (limited to 'openwrt/package/updatedd/Makefile') diff --git a/openwrt/package/updatedd/Makefile b/openwrt/package/updatedd/Makefile index 1279015fb1..cc88b5a616 100644 --- a/openwrt/package/updatedd/Makefile +++ b/openwrt/package/updatedd/Makefile @@ -16,7 +16,36 @@ PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install include $(TOPDIR)/package/rules.mk +define PKG_mod_template + +$$(IPKG_$(1)): + install -d -m0755 $$(IDIR_$(1))/usr/lib/updatedd + install -m0755 $(PKG_INSTALL_DIR)/usr/lib/updatedd/$(2).so $$(IDIR_$(1))/usr/lib/updatedd/ + $(RSTRIP) $$(IDIR_$(1)) + $(IPKG_BUILD) $$(IDIR_$(1)) $(PACKAGE_DIR) + +endef + $(eval $(call PKG_template,UPDATEDD,updatedd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) +$(eval $(call PKG_template,UPDATEDD_MOD_CHANGEIP,updatedd-mod-changeip,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) +$(eval $(call PKG_template,UPDATEDD_MOD_DYNDNS,updatedd-mod-dyndns,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) +$(eval $(call PKG_template,UPDATEDD_MOD_EURODYNDNS,updatedd-mod-eurodyndns,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) +$(eval $(call PKG_template,UPDATEDD_MOD_HN,updatedd-mod-hn,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) +$(eval $(call PKG_template,UPDATEDD_MOD_NOIP,updatedd-mod-noip,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) +$(eval $(call PKG_template,UPDATEDD_MOD_ODS,updatedd-mod-ods,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) +$(eval $(call PKG_template,UPDATEDD_MOD_OVH,updatedd-mod-ovh,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) +$(eval $(call PKG_template,UPDATEDD_MOD_REGFISH,updatedd-mod-regfish,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) +$(eval $(call PKG_template,UPDATEDD_MOD_TZO,updatedd-mod-tzo,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) + +$(eval $(call PKG_mod_template,UPDATEDD_MOD_CHANGEIP,changeip)) +$(eval $(call PKG_mod_template,UPDATEDD_MOD_DYNDNS,dyndns)) +$(eval $(call PKG_mod_template,UPDATEDD_MOD_EURODYNDNS,eurodyndns)) +$(eval $(call PKG_mod_template,UPDATEDD_MOD_HN,hn)) +$(eval $(call PKG_mod_template,UPDATEDD_MOD_NOIP,noip)) +$(eval $(call PKG_mod_template,UPDATEDD_MOD_ODS,ods)) +$(eval $(call PKG_mod_template,UPDATEDD_MOD_OVH,ovh)) +$(eval $(call PKG_mod_template,UPDATEDD_MOD_REGFISH,regfish)) +$(eval $(call PKG_mod_template,UPDATEDD_MOD_TZO,tzo)) $(PKG_BUILD_DIR)/.configured: (cd $(PKG_BUILD_DIR); \ @@ -42,41 +71,10 @@ $(PKG_BUILD_DIR)/.built: touch $@ $(IPKG_UPDATEDD): + install -d -m0755 $(IDIR_UPDATEDD)/etc/init.d + install -m0755 ./files/S55ddns $(IDIR_UPDATEDD)/etc/init.d/ install -d -m0755 $(IDIR_UPDATEDD)/usr/bin - cp -fpR $(PKG_INSTALL_DIR)/usr/bin/updatedd $(IDIR_UPDATEDD)/usr/bin/updatedd - - install -d -m0755 $(IDIR_UPDATEDD)/etc/init.d/ - install -m0755 ./files/S55ddns $(IDIR_UPDATEDD)/etc/init.d/S55ddns - + cp -fpR $(PKG_INSTALL_DIR)/usr/bin/updatedd $(IDIR_UPDATEDD)/usr/bin/ install -d -m0755 $(IDIR_UPDATEDD)/usr/lib/updatedd - -ifeq ($(BR2_PACKAGE_UPDATEDD_CHANGEIP),y) - install -m0644 $(PKG_INSTALL_DIR)/usr/lib/updatedd/changeip.so $(IDIR_UPDATEDD)/usr/lib/updatedd/changeip.so -endif -ifeq ($(BR2_PACKAGE_UPDATEDD_DYNDNS),y) - install -m0644 $(PKG_INSTALL_DIR)/usr/lib/updatedd/dyndns.so $(IDIR_UPDATEDD)/usr/lib/updatedd/dyndns.so -endif -ifeq ($(BR2_PACKAGE_UPDATEDD_EURODYNDNS),y) - install -m0644 $(PKG_INSTALL_DIR)/usr/lib/updatedd/eurodyndns.so $(IDIR_UPDATEDD)/usr/lib/updatedd/eurodyndns.so -endif -ifeq ($(BR2_PACKAGE_UPDATEDD_HN),y) - install -m0644 $(PKG_INSTALL_DIR)/usr/lib/updatedd/hn.so $(IDIR_UPDATEDD)/usr/lib/updatedd/hn.so -endif -ifeq ($(BR2_PACKAGE_UPDATEDD_NOIP),y) - install -m0644 $(PKG_INSTALL_DIR)/usr/lib/updatedd/noip.so $(IDIR_UPDATEDD)/usr/lib/updatedd/noip.so -endif -ifeq ($(BR2_PACKAGE_UPDATEDD_ODS),y) - install -m0644 $(PKG_INSTALL_DIR)/usr/lib/updatedd/ods.so $(IDIR_UPDATEDD)/usr/lib/updatedd/ods.so -endif -ifeq ($(BR2_PACKAGE_UPDATEDD_OVH),y) - install -m0644 $(PKG_INSTALL_DIR)/usr/lib/updatedd/ovh.so $(IDIR_UPDATEDD)/usr/lib/updatedd/ovh.so -endif -ifeq ($(BR2_PACKAGE_UPDATEDD_REGFISH),y) - install -m0644 $(PKG_INSTALL_DIR)/usr/lib/updatedd/regfish.so $(IDIR_UPDATEDD)/usr/lib/updatedd/regfish.so -endif -ifeq ($(BR2_PACKAGE_UPDATEDD_TZO),y) - install -m0644 $(PKG_INSTALL_DIR)/usr/lib/updatedd/tzo.so $(IDIR_UPDATEDD)/usr/lib/updatedd/tzo.so -endif - $(RSTRIP) $(IDIR_UPDATEDD) $(IPKG_BUILD) $(IDIR_UPDATEDD) $(PACKAGE_DIR) -- cgit v1.2.3