Indrajit Raychaudhuri 9f3bed2a16 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)
2023-06-04 04:36:19 -05:00

27 lines
580 B
Bash
Executable File

#!/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