@ -3,17 +3,19 @@ include $(TOPDIR)/rules.mk
PKG_NAME := ddns-scripts
# Version == major.minor.patch
# increase on new functionality (minor) or patches (patch)
PKG_VERSION := 2.3 .0
PKG_VERSION := 2.4 .0
# Release == build
# increase on changes of services files or tld_names.dat
PKG_RELEASE := 1
PKG_LICENSE := GPL-2.0
PKG_MAINTAINER := Christian Schoenebeck <christian.schoenebeck@gmail.com>
PKG_BUILD_DIR := $( BUILD_DIR) /$( PKG_NAME)
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
# no default dependencies
PKG_DEFAULT_DEPENDS =
d e f i n e P a c k a g e / $( PKG_NAME ) / D e f a u l t
SECTION:= net
CATEGORY:= Network
@ -21,6 +23,7 @@ define Package/$(PKG_NAME)/Default
PKGARCH:= all
e n d e f
##### **********************************
d e f i n e P a c k a g e / $( PKG_NAME )
$( call Package/$( PKG_NAME) /Default)
TITLE:= Dynamic DNS Client scripts ( with IPv6 support)
@ -41,31 +44,53 @@ define Package/$(PKG_NAME)/config
- Proxy server support
- log file support
- support to run once
.
Version: $( PKG_VERSION) -$( PKG_RELEASE)
Info : http://wiki.openwrt.org/doc/howto/ddns.client
.
$( PKG_MAINTAINER)
e n d e f
d e f i n e P a c k a g e / $( PKG_NAME ) _ C l o u d F l a r e
##### **********************************
d e f i n e P a c k a g e / $( PKG_NAME ) _ c l o u d f l a r e
$( call Package/$( PKG_NAME) /Default)
TITLE:= DDNS extension for CloudFlare
DEPENDS:= $( PKG_NAME)
e n d e f
d e f i n e P a c k a g e / $( PKG_NAME ) _ C l o u d F l a r e / d e s c r i p t i o n
d e f i n e P a c k a g e / $( PKG_NAME ) _ c l o u d f l a r e / d e s c r i p t i o n
Dynamic DNS Client scripts extension for CloudFlare
e n d e f
d e f i n e P a c k a g e / $( PKG_NAME ) _ N o - I P _ c o m
##### **********************************
d e f i n e P a c k a g e / $( PKG_NAME ) _ n o - i p _ c o m
$( call Package/$( PKG_NAME) /Default)
TITLE:= DDNS extension for No-IP.com
DEPENDS:= $( PKG_NAME)
e n d e f
d e f i n e P a c k a g e / $( PKG_NAME ) _ N o - I P _ c o m / d e s c r i p t i o n
d e f i n e P a c k a g e / $( PKG_NAME ) _ n o - i p _ c o m / d e s c r i p t i o n
Dynamic DNS Client scripts extension for No-IP.com
e n d e f
##### **********************************
d e f i n e P a c k a g e / $( PKG_NAME ) _ n s u p d a t e
$( call Package/$( PKG_NAME) /Default)
TITLE:= DDNS extension using Bind nsupdate
DEPENDS:= $( PKG_NAME) +bind-client
e n d e f
d e f i n e P a c k a g e / $( PKG_NAME ) _ n s u p d a t e / d e s c r i p t i o n
Dynamic DNS Client scripts extension for direct updates using Bind nsupdate
e n d e f
d e f i n e P a c k a g e / $( PKG_NAME ) _ n s u p d a t e / c o n f i g
help
The script directly updates a PowerDNS ( or maybe bind server) via nsupdate
from bind-client package. It requires
"option dns_server" to be set to the server to be used by nsupdate.
"option username" should be set to the key name and
"option password" to the base64 encoded shared secret.
e n d e f
##### **********************************
d e f i n e B u i l d / C o n f i g u r e
e n d e f
d e f i n e B u i l d / C o m p i l e
@ -84,6 +109,7 @@ define Package/$(PKG_NAME)/conffiles
/ e t c / c o n f i g / d d n s
e n d e f
##### **********************************
d e f i n e P a c k a g e / $( PKG_NAME ) / i n s t a l l
$( INSTALL_DIR) $( 1) /etc/hotplug.d/iface
$( INSTALL_BIN) $( PKG_BUILD_DIR) /files/ddns.hotplug $( 1) /etc/hotplug.d/iface/95-ddns
@ -96,16 +122,6 @@ define Package/$(PKG_NAME)/install
$( INSTALL_DATA) $( PKG_BUILD_DIR) /files/services* $( 1) /usr/lib/ddns
$( INSTALL_BIN) $( PKG_BUILD_DIR) /files/dynamic_*.sh $( 1) /usr/lib/ddns
e n d e f
d e f i n e P a c k a g e / $( PKG_NAME ) _ C l o u d F l a r e / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib/ddns
$( INSTALL_BIN) $( PKG_BUILD_DIR) /files/update_CloudFlare.sh $( 1) /usr/lib/ddns
$( INSTALL_DATA) $( PKG_BUILD_DIR) /files/tld_names.dat $( 1) /usr/lib/ddns
e n d e f
d e f i n e P a c k a g e / $( PKG_NAME ) _ N o - I P _ c o m / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib/ddns
$( INSTALL_BIN) $( PKG_BUILD_DIR) /files/update_No-IP.com.sh $( 1) /usr/lib/ddns
e n d e f
d e f i n e P a c k a g e / $( PKG_NAME ) / p o s t i n s t
#!/bin/sh
# if run within buildroot exit
@ -123,17 +139,6 @@ define Package/$(PKG_NAME)/postinst
exit 0
e n d e f
d e f i n e P a c k a g e / $( PKG_NAME ) _ C l o u d F l a r e / p o s t i n s t
#!/bin/sh
echo -e '"CloudFlare"\t"update_CloudFlare.sh"' >> $$ { IPKG_INSTROOT} /usr/lib/ddns/services
echo -e '"CloudFlare"\t"update_CloudFlare.sh"' >> $$ { IPKG_INSTROOT} /usr/lib/ddns/services_ipv6
e n d e f
d e f i n e P a c k a g e / $( PKG_NAME ) _ N o - I P _ c o m / p o s t i n s t
#!/bin/sh
echo -e '"No-IP.com"\t"update_No-IP.com.sh"' >> $$ { IPKG_INSTROOT} /usr/lib/ddns/services
echo -e '"NoIP.com"\t"update_No-IP.com.sh"' >> $$ { IPKG_INSTROOT} /usr/lib/ddns/services
e n d e f
d e f i n e P a c k a g e / $( PKG_NAME ) / p r e r m
#!/bin/sh
# if run within buildroot exit
@ -148,16 +153,57 @@ define Package/$(PKG_NAME)/prerm
exit 0
e n d e f
d e f i n e P a c k a g e / $( PKG_NAME ) _ C l o u d F l a r e / p r e r m
##### **********************************
d e f i n e P a c k a g e / $( PKG_NAME ) _ c l o u d f l a r e / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib/ddns
$( INSTALL_BIN) $( PKG_BUILD_DIR) /files/update_CloudFlare.sh $( 1) /usr/lib/ddns
$( INSTALL_DATA) $( PKG_BUILD_DIR) /files/tld_names.dat $( 1) /usr/lib/ddns
e n d e f
d e f i n e P a c k a g e / $( PKG_NAME ) _ c l o u d f l a r e / p o s t i n s t
#!/bin/sh
echo -e '"CloudFlare"\t"update_CloudFlare.sh"' >> $$ { IPKG_INSTROOT} /usr/lib/ddns/services
echo -e '"CloudFlare"\t"update_CloudFlare.sh"' >> $$ { IPKG_INSTROOT} /usr/lib/ddns/services_ipv6
e n d e f
d e f i n e P a c k a g e / $( PKG_NAME ) _ c l o u d f l a r e / p r e r m
#!/bin/sh
/bin/sed -i '/update_CloudFlare\.sh/ d' $$ { IPKG_INSTROOT} /usr/lib/ddns/services
/bin/sed -i '/update_CloudFlare\.sh/ d' $$ { IPKG_INSTROOT} /usr/lib/ddns/services_ipv6
e n d e f
d e f i n e P a c k a g e / $( PKG_NAME ) _ N o - I P _ c o m / p r e r m
##### **********************************
d e f i n e P a c k a g e / $( PKG_NAME ) _ n o - i p _ c o m / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib/ddns
$( INSTALL_BIN) $( PKG_BUILD_DIR) /files/update_No-IP.com.sh $( 1) /usr/lib/ddns
e n d e f
d e f i n e P a c k a g e / $( PKG_NAME ) _ n o - i p _ c o m / p o s t i n s t
#!/bin/sh
echo -e '"No-IP.com"\t"update_No-IP.com.sh"' >> $$ { IPKG_INSTROOT} /usr/lib/ddns/services
echo -e '"NoIP.com"\t"update_No-IP.com.sh"' >> $$ { IPKG_INSTROOT} /usr/lib/ddns/services
e n d e f
d e f i n e P a c k a g e / $( PKG_NAME ) _ n o - i p _ c o m / p r e r m
#!/bin/sh
/bin/sed -i '/update_No-IP\.com\.sh/ d' $$ { IPKG_INSTROOT} /usr/lib/ddns/services
e n d e f
##### **********************************
d e f i n e P a c k a g e / $( PKG_NAME ) _ n s u p d a t e / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib/ddns
$( INSTALL_BIN) $( PKG_BUILD_DIR) /files/update_nsupdate.sh $( 1) /usr/lib/ddns
e n d e f
d e f i n e P a c k a g e / $( PKG_NAME ) _ n s u p d a t e / p o s t i n s t
#!/bin/sh
echo -e '"Bind-nsupdate"\t"update_nsupdate.sh"' >> $$ { IPKG_INSTROOT} /usr/lib/ddns/services
echo -e '"Bind-nsupdate"\t"update_nsupdate.sh"' >> $$ { IPKG_INSTROOT} /usr/lib/ddns/services_ipv6
e n d e f
d e f i n e P a c k a g e / $( PKG_NAME ) _ n s u p d a t e / p r e r m
#!/bin/sh
/bin/sed -i '/update_nsupdate\.sh/ d' $$ { IPKG_INSTROOT} /usr/lib/ddns/services
/bin/sed -i '/update_nsupdate\.sh/ d' $$ { IPKG_INSTROOT} /usr/lib/ddns/services_ipv6
e n d e f
##### **********************************
$( eval $ ( call BuildPackage ,$ ( PKG_NAME ) ) )
$( eval $ ( call BuildPackage ,$ ( PKG_NAME ) _CloudFlare ) )
$( eval $ ( call BuildPackage ,$ ( PKG_NAME ) _No -IP_com ) )
$( eval $ ( call BuildPackage ,$ ( PKG_NAME ) _cloudflare ) )
$( eval $ ( call BuildPackage ,$ ( PKG_NAME ) _no -ip_com ) )
$( eval $ ( call BuildPackage ,$ ( PKG_NAME ) _nsupdate ) )