diff options
-rw-r--r-- | package/Config.in | 1 | ||||
-rw-r--r-- | package/Makefile | 1 | ||||
-rw-r--r-- | package/updatedd/Config.in | 45 | ||||
-rw-r--r-- | package/updatedd/Makefile | 82 | ||||
-rw-r--r-- | package/updatedd/files/S55ddns | 10 | ||||
-rw-r--r-- | package/updatedd/ipkg/updatedd.control | 6 |
6 files changed, 145 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in index 3442bc2251..c97fec2916 100644 --- a/package/Config.in +++ b/package/Config.in @@ -102,6 +102,7 @@ source "package/tinc/Config.in" source "package/tor/Config.in" source "package/ttcp/Config.in" source "package/ulogd/Config.in" +source "package/updatedd/Config.in" source "package/vsftpd/Config.in" source "package/vtun/Config.in" source "package/wireless-tools/Config.in" diff --git a/package/Makefile b/package/Makefile index 090b819a29..e078d18800 100644 --- a/package/Makefile +++ b/package/Makefile @@ -159,6 +159,7 @@ package-$(BR2_PACKAGE_TOR) += tor package-$(BR2_PACKAGE_TTCP) += ttcp package-$(BR2_PACKAGE_UCLIBCXX) += uclibc++ package-$(BR2_PACKAGE_ULOGD) += ulogd +package-$(BR2_PACKAGE_UPDATEDD) += updatedd package-$(BR2_PACKAGE_USBUTILS) += usbutils package-$(BR2_PACKAGE_VTUN) += vtun package-$(BR2_PACKAGE_VSFTPD) += vsftpd diff --git a/package/updatedd/Config.in b/package/updatedd/Config.in new file mode 100644 index 0000000000..0862021890 --- /dev/null +++ b/package/updatedd/Config.in @@ -0,0 +1,45 @@ +config BR2_PACKAGE_UPDATEDD + tristate "updatedd - a tool to update dynamic dns services" + default m if CONFIG_DEVEL + help + Updatedd is a small tool that will update one of many dynamic + dns services on boot. Please look at the /etc/init.d/S50ddns + script for more info. + + +config BR2_PACKAGE_UPDATEDD_CHANGEIP + bool "changeip.com" + depends on BR2_PACKAGE_UPDATEDD + default y if CONFIG_DEVEL +config BR2_PACKAGE_UPDATEDD_DYNDNS + bool "dyndns.org" + depends on BR2_PACKAGE_UPDATEDD + default y if CONFIG_DEVEL +config BR2_PACKAGE_UPDATEDD_EURODYNDNS + bool "eurodyndns.org" + depends on BR2_PACKAGE_UPDATEDD + default y if CONFIG_DEVEL +config BR2_PACKAGE_UPDATEDD_HN + bool "hn.org" + depends on BR2_PACKAGE_UPDATEDD + default y if CONFIG_DEVEL +config BR2_PACKAGE_UPDATEDD_NOIP + bool "no-ip.com" + depends on BR2_PACKAGE_UPDATEDD + default y if CONFIG_DEVEL +config BR2_PACKAGE_UPDATEDD_ODS + bool "ods.org" + depends on BR2_PACKAGE_UPDATEDD + default y if CONFIG_DEVEL +config BR2_PACKAGE_UPDATEDD_OVH + bool "ovh.com" + depends on BR2_PACKAGE_UPDATEDD + default y if CONFIG_DEVEL +config BR2_PACKAGE_UPDATEDD_REGFISH + bool "regfish.com" + depends on BR2_PACKAGE_UPDATEDD + default y if CONFIG_DEVEL +config BR2_PACKAGE_UPDATEDD_TZO + bool "tzo.com" + depends on BR2_PACKAGE_UPDATEDD + default y if CONFIG_DEVEL diff --git a/package/updatedd/Makefile b/package/updatedd/Makefile new file mode 100644 index 0000000000..f55542c02b --- /dev/null +++ b/package/updatedd/Makefile @@ -0,0 +1,82 @@ +# $Id$ + +include $(TOPDIR)/rules.mk + +PKG_NAME:=updatedd +PKG_VERSION:=2.5 +PKG_RELEASE:=1 +PKG_MD5SUM:=2957496de0c8e08e9c6492fabf1a88be + +PKG_SOURCE_URL:=http://savannah.nongnu.org/download/updatedd/ +PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz +PKG_CAT:=zcat + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) +PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install + +include $(TOPDIR)/package/rules.mk + +$(eval $(call PKG_template,UPDATEDD,updatedd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) + +$(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared + (cd $(PKG_BUILD_DIR); \ + $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS)" \ + ./configure \ + --target=$(GNU_TARGET_NAME) \ + --host=$(GNU_TARGET_NAME) \ + --build=$(GNU_HOST_NAME) \ + --prefix=/usr \ + --sysconfdir=/etc \ + ); + touch $@ + +$(PKG_BUILD_DIR)/.built: + rm -rf $(PKG_INSTALL_DIR) + mkdir -p $(PKG_INSTALL_DIR) + $(TARGET_CONFIGURE_OPTS) \ + $(MAKE) -C $(PKG_BUILD_DIR) \ + $(TARGET_CONFIGURE_OPTS) \ + DESTDIR="$(PKG_INSTALL_DIR)" \ + all install + touch $@ + +$(IPKG_UPDATEDD): + 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 + + 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) diff --git a/package/updatedd/files/S55ddns b/package/updatedd/files/S55ddns new file mode 100644 index 0000000000..b02d579178 --- /dev/null +++ b/package/updatedd/files/S55ddns @@ -0,0 +1,10 @@ +ddnsupdate=$(nvram get ddns_update) +[ "$ddnsupdate" = 1 ]&& { + service=$(nvram get ddns_service) + uname=$(nvram get ddns_user) + passwd=$(nvram get ddns_password) + host=$(nvram get ddns_host) + + /usr/bin/updatedd -Y $service -- $uname:$passwd $host +} + diff --git a/package/updatedd/ipkg/updatedd.control b/package/updatedd/ipkg/updatedd.control new file mode 100644 index 0000000000..85eb4aca30 --- /dev/null +++ b/package/updatedd/ipkg/updatedd.control @@ -0,0 +1,6 @@ +Package: updatedd +Priority: optional +Section: net +Maintainer: Tony Murray +Source: http:://updatedd.philipp-benner.de/updatedd/ +Description: A tool to update dynamic dns services. |