TITLE:=A tool to update dynamic dns services
DESCRIPTION:=Updatedd is a small tool that will update one of many dynamic\\\
dns services on boot.\\\
- Please look at the /etc/init.d/S55ddns script for more info.\\\
+ Please look at the /etc/init.d/ddns script for more info.\\\
URL:=http://www.philipp-benner.de/updatedd/
endef
define BuildPlugin
define Package/$(1)/install
- install -d -m0755 $$(1)/usr/lib/updatedd
- install -m0755 $(PKG_INSTALL_DIR)/usr/lib/updatedd/$(2).so $$(1)/usr/lib/updatedd/
+ $(INSTALL_DIR) $$(1)/usr/lib/updatedd
+ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/updatedd/$(2).so $$(1)/usr/lib/updatedd/
endef
$$(eval $$(call BuildPackage,$(1)))
endef
define Package/updatedd/install
- install -d -m0755 $(1)/etc/init.d
- install -m0755 ./files/S55ddns $(1)/etc/init.d/
- install -d -m0755 $(1)/usr/bin
+ $(INSTALL_DIR) $(1)/etc/init.d
+ $(INSTALL_BIN) ./files/ddns.init $(1)/etc/init.d/ddns
+ $(INSTALL_DIR) $(1)/etc/config
+ $(INSTALL_DATA) ./files/ddns.config $(1)/etc/config/updatedd
+ $(INSTALL_DIR) $(1)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/updatedd $(1)/usr/bin/
- install -d -m0755 $(1)/usr/lib/updatedd
+ $(INSTALL_DIR) $(1)/usr/lib/updatedd
endef
$(eval $(call BuildPackage,updatedd))