@ -12,7 +12,7 @@ PKG_NAME:=ddns-scripts
PKG_VERSION := 2.7.6
PKG_VERSION := 2.7.6
# Release == build
# Release == build
# increase on changes of services files or tld_names.dat
# increase on changes of services files or tld_names.dat
PKG_RELEASE := 8
PKG_RELEASE := 9
PKG_LICENSE := GPL-2.0
PKG_LICENSE := GPL-2.0
PKG_MAINTAINER := Christian Schoenebeck <christian.schoenebeck@gmail.com>
PKG_MAINTAINER := Christian Schoenebeck <christian.schoenebeck@gmail.com>
@ -117,21 +117,19 @@ define Build/Configure
e n d e f
e n d e f
d e f i n e B u i l d / C o m p i l e
d e f i n e B u i l d / C o m p i l e
$( CP) ./files $( PKG_BUILD_DIR)
$( CP) ./files $( PKG_BUILD_DIR)
for FILE in ` find $( PKG_BUILD_DIR) /files -type f` ; do \
$( SED) 's/^\s*#/#/' \
-e '/^#\s\|^#$$$$/d' \
-e 's/\s#\s.*$$$$//' \
-e 's/\s*$$$$//' \
-e '/^\/\/\s/d' \
-e '/^\s*$$$$/d' $$ $$ FILE; \
done
# ensure that VERSION inside dynamic_dns_functions.sh reflect PKG_VERSION of Makefile
# ensure that VERSION inside dynamic_dns_functions.sh reflect PKG_VERSION of Makefile
$( SED) '/^VERSION=*/s/.*/VERSION="$(PKG_VERSION)-$(PKG_RELEASE)"/' $( PKG_BUILD_DIR) /files/dynamic_dns_functions.sh
$( SED) '/^VERSION=*/s/.*/VERSION="$(PKG_VERSION)-$(PKG_RELEASE)"/' $( PKG_BUILD_DIR) /files/dynamic_dns_functions.sh
$( CP) ./tools $( PKG_BUILD_DIR)
chmod 755 $( PKG_BUILD_DIR) /tools/*
$( PKG_BUILD_DIR) /tools/public_suffix_list.sh
mv -f $( PKG_BUILD_DIR) /tools/public_suffix_list.dat.gz \
$( PKG_BUILD_DIR) /files/public_suffix_list.dat.gz
# remove comments, white spaces and empty lines
for FILE in ` find $( PKG_BUILD_DIR) /files -type f` ; do \
$( SED) 's/^[[:space:]]*//' \
-e '/^#[[:space:]]\|^#$$$$/d' \
-e 's/[[:space:]]#[[:space:]].*$$$$//' \
-e 's/[[:space:]]*$$$$//' \
-e '/^\/\/[[:space:]]/d' \
-e '/^[[:space:]]*$$$$/d' $$ $$ FILE; \
done
# compress public_suffix_list.dat
gzip -f9 $( PKG_BUILD_DIR) /files/public_suffix_list.dat
e n d e f
e n d e f
d e f i n e P a c k a g e / $( PKG_NAME ) / c o n f f i l e s
d e f i n e P a c k a g e / $( PKG_NAME ) / c o n f f i l e s