1 include $(TOPDIR
)/rules.mk
7 PKG_MAINTAINER
:=Christian Schoenebeck
<christian.schoenebeck@gmail.com
>
9 PKG_BUILD_DIR
:= $(BUILD_DIR
)/$(PKG_NAME
)
11 include $(INCLUDE_DIR
)/package.mk
13 define Package
/ddns-scripts
16 SUBMENU
:=IP Addresses and Names
17 TITLE
:=Dynamic DNS Scripts
(with IPv6 support
)
21 define Package
/ddns-scripts
/description
22 A highly configurable set of scripts for doing dynamic dns updates.
24 - force communication to IPv4 or IPv6 only
26 - using BIND host if installed
27 - DNS requests via TCP
28 - Proxy server support
36 define Build
/Configure
42 define Package
/ddns-scripts
/conffiles
46 define Package
/ddns-scripts
/install
47 $(INSTALL_DIR
) $(1)/etc
/config
48 $(INSTALL_CONF
) .
/files
/etc
/config
/* $(1)/etc
/config
50 $(INSTALL_DIR
) $(1)/etc
/hotplug.d
/iface
51 $(INSTALL_BIN
) .
/files
/etc
/hotplug.d
/iface
/* $(1)/etc
/hotplug.d
/iface
53 $(INSTALL_DIR
) $(1)/etc
/init.d
54 $(INSTALL_BIN
) .
/files
/etc
/init.d
/* $(1)/etc
/init.d
/
56 $(INSTALL_DIR
) $(1)/usr
/lib
/ddns
57 $(INSTALL_DATA
) .
/files
/usr
/lib
/ddns
/* $(1)/usr
/lib
/ddns
58 $(INSTALL_BIN
) .
/files
/usr
/lib
/ddns
/*.sh
$(1)/usr
/lib
/ddns
61 define Package
/ddns-scripts
/postinst
63 # if run within buildroot exit
64 [ -n
"$${IPKG_INSTROOT}" ] && exit
0
66 # add new section "ddns" "global" if not exists
67 uci
-q
get ddns.global
> /dev
/null || uci
-q set ddns.global
='ddns'
68 uci
-q
get ddns.global.date_format
> /dev
/null || uci
-q set ddns.global.date_format
='%F %R'
69 uci
-q
get ddns.global.log_lines
> /dev
/null || uci
-q set ddns.global.log_lines
='250'
70 uci
-q
get ddns.global.allow_local_ip
> /dev
/null || uci
-q set ddns.global.allow_local_ip
='0'
73 # clear LuCI indexcache
74 rm -f
/tmp
/luci-indexcache
>/dev
/null
2>&1
79 define Package
/ddns-scripts
/prerm
81 # if run within buildroot exit
82 [ -n
"$${IPKG_INSTROOT}" ] && exit
0
84 # stop running scripts
85 /etc
/init.d
/ddns disable
88 # clear LuCI indexcache
89 rm -f
/tmp
/luci-indexcache
>/dev
/null
2>&1
94 $(eval
$(call BuildPackage
,ddns-scripts
))