summaryrefslogtreecommitdiff
path: root/packages/ddclient/build.sh
diff options
context:
space:
mode:
authorIndrajit Raychaudhuri <irc@indrajit.com>2023-05-10 01:22:58 -0500
committerIndrajit Raychaudhuri <irc@indrajit.com>2023-06-04 04:36:19 -0500
commit9f3bed2a167463b18ea1389926a524e4b16e348c (patch)
tree9f6d26ffc21c7c60db9122017409ecda75ecfdd2 /packages/ddclient/build.sh
parentd8188353f627eb8a4b928b1df25b98c4e2e8467a (diff)
downloadvyos-build-9f3bed2a167463b18ea1389926a524e4b16e348c.tar.gz
vyos-build-9f3bed2a167463b18ea1389926a524e4b16e348c.zip
dns: T5144: Create VyOS specific ddclient build with upstream fixes
This is VyOS specific build based on current Debian 3.10.0-3 with the following patches: - z1_perhost-variable-new-style.patch (see ddclient/ddclient#505) - z2_dyndns2-ipv4-ipv6.patch (see ddclient/ddclient#502) - z3_duckdns-reply-fix.patch (see ddclient/ddclient#506) - z4_dyndns2-multiline-multihost-fix.patch (see ddclient/ddclient#542)
Diffstat (limited to 'packages/ddclient/build.sh')
-rwxr-xr-xpackages/ddclient/build.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/packages/ddclient/build.sh b/packages/ddclient/build.sh
new file mode 100755
index 00000000..76a03815
--- /dev/null
+++ b/packages/ddclient/build.sh
@@ -0,0 +1,26 @@
+#!/bin/sh
+CWD=$(pwd)
+set -e
+
+SRC=ddclient
+if [ ! -d ${SRC} ]; then
+ echo "Source directory does not exists, please 'git clone'"
+ exit 1
+fi
+
+PATCH_DIR=${CWD}/patches
+if [ -d $PATCH_DIR ]; then
+ for patch in $(ls ${PATCH_DIR})
+ do
+ echo "I: Apply patch: ${patch} to main repository"
+ cp ${PATCH_DIR}/${patch} ${SRC}/debian/patches/
+ echo ${patch} >> ${SRC}/debian/patches/series
+ done
+fi
+
+cd ${SRC}
+echo "I: bump version"
+dch -v "3.10.0-3+vyos0" "Patchset for miscellaneous fixes"
+
+echo "I: Build Debian Package"
+dpkg-buildpackage -uc -us -tc -b