@ -12,7 +12,7 @@ PKG_NAME:=ddns-scripts
PKG_VERSION := 2.7.7
# Release == build
# increase on changes of services files or tld_names.dat
PKG_RELEASE := 7
PKG_RELEASE := 8
PKG_LICENSE := GPL-2.0
PKG_MAINTAINER := Christian Schoenebeck <christian.schoenebeck@gmail.com>
@ -66,13 +66,23 @@ endef
###### *************************************************************************
d e f i n e P a c k a g e / d d n s - s c r i p t s _ c l o u d f l a r e . c o m - v 4
$( call Package/ddns-scripts/Default)
TITLE:= CloudFlare.com API v4 ( require cURL)
TITLE:= CloudFlare.com API v4 ( requires cURL)
DEPENDS:= ddns-scripts +curl
e n d e f
d e f i n e P a c k a g e / d d n s - s c r i p t s _ c l o u d f l a r e . c o m - v 4 / d e s c r i p t i o n
Dynamic DNS Client scripts extension for CloudFlare.com API-v4 ( require/install cURL)
e n d e f
###### *************************************************************************
d e f i n e P a c k a g e / d d n s - s c r i p t s _ f r e e d n s _ 4 2 _ p l
$( call Package/ddns-scripts/Default)
TITLE:= DDNS extension for FreeDNS.42.pl ( requires cURL)
DEPENDS:= ddns-scripts +curl
e n d e f
d e f i n e P a c k a g e / d d n s - s c r i p t s _ f r e e d n s _ 4 2 _ p l / d e s c r i p t i o n
Dynamic DNS Client scripts extension for freedns.42.pl
e n d e f
###### *************************************************************************
d e f i n e P a c k a g e / d d n s - s c r i p t s _ g o d a d d y . c o m - v 1
$( call Package/ddns-scripts/Default)
@ -282,6 +292,44 @@ define Package/ddns-scripts_cloudflare.com-v4/prerm
exit 0 # suppress errors
e n d e f
###### *************************************************************************
d e f i n e P a c k a g e / d d n s - s c r i p t s _ f r e e d n s _ 4 2 _ p l / p r e i n s t
#!/bin/sh
# if NOT run buildroot then stop service
[ -z " $$ {IPKG_INSTROOT} " ] && /etc/init.d/ddns stop >/dev/null 2>& 1
exit 0 # suppress errors
e n d e f
d e f i n e P a c k a g e / d d n s - s c r i p t s _ f r e e d n s _ 4 2 _ p l / i n s t a l l
$( INSTALL_DIR) $( 1) /etc/uci-defaults
$( INSTALL_BIN) $( PKG_BUILD_DIR) /files/ddns.defaults $( 1) /etc/uci-defaults/ddns_freedns_42_pl
$( INSTALL_DIR) $( 1) /usr/lib/ddns
$( INSTALL_BIN) $( PKG_BUILD_DIR) /files/update_freedns_42_pl.sh $( 1) /usr/lib/ddns
e n d e f
d e f i n e P a c k a g e / d d n s - s c r i p t s _ f r e e d n s _ 4 2 _ p l / p o s t i n s t
#!/bin/sh
# remove old services file entries
/bin/sed -i '/freedns\.42\.pl/d' $$ { IPKG_INSTROOT} /etc/ddns/services >/dev/null 2>& 1
# and create new
printf "%s\\t%s\\n" '"freedns.42.pl"' '"update_freedns_42_pl.sh"' >> $$ { IPKG_INSTROOT} /etc/ddns/services
# on real system restart service if enabled
[ -z " $$ {IPKG_INSTROOT} " ] && {
[ -x /etc/uci-defaults/ddns_freedns_42_pl ] && \
/etc/uci-defaults/ddns_freedns_42_pl && \
rm -f /etc/uci-defaults/ddns_freedns_42_pl >/dev/null 2>& 1
/etc/init.d/ddns enabled && \
/etc/init.d/ddns start >/dev/null 2>& 1
}
exit 0 # suppress errors
e n d e f
d e f i n e P a c k a g e / d d n s - s c r i p t s _ f r e e d n s _ 4 2 _ p l / p r e r m
#!/bin/sh
# if NOT run buildroot then stop service
[ -z " $$ {IPKG_INSTROOT} " ] && /etc/init.d/ddns stop >/dev/null 2>& 1
# remove services file entries
/bin/sed -i '/freedns\.42\.pl/d' $$ { IPKG_INSTROOT} /etc/ddns/services >/dev/null 2>& 1
exit 0 # suppress errors
e n d e f
###### *************************************************************************
d e f i n e P a c k a g e / d d n s - s c r i p t s _ g o d a d d y . c o m - v 1 / p r e i n s t
#!/bin/sh
@ -447,6 +495,7 @@ endef
$( eval $ ( call BuildPackage ,ddns -scripts ) )
$( eval $ ( call BuildPackage ,ddns -scripts_cloudflare ) )
$( eval $ ( call BuildPackage ,ddns -scripts_cloudflare .com -v 4) )
$( eval $ ( call BuildPackage ,ddns -scripts_freedns_ 42_pl ) )
$( eval $ ( call BuildPackage ,ddns -scripts_godaddy .com -v 1) )
$( eval $ ( call BuildPackage ,ddns -scripts_no -ip_com ) )
$( eval $ ( call BuildPackage ,ddns -scripts_nsupdate ) )