diff options
author | Christian Breunig <christian@breunig.cc> | 2023-06-05 22:05:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-05 22:05:22 +0200 |
commit | 9731bc6c93e578a83ea56ecd1bf6abb51585ea12 (patch) | |
tree | 199c18e5a734219ebe49b2a7ce684c43552e929d /packages/ddclient/build.sh | |
parent | 650b9362cc3f36ec5318617aa31be490976ca136 (diff) | |
parent | 9f3bed2a167463b18ea1389926a524e4b16e348c (diff) | |
download | vyos-build-9731bc6c93e578a83ea56ecd1bf6abb51585ea12.tar.gz vyos-build-9731bc6c93e578a83ea56ecd1bf6abb51585ea12.zip |
Merge pull request #349 from indrajitr/custom-ddclient-build
dns: T5144: Create VyOS specific ddclient build with upstream fixes
Diffstat (limited to 'packages/ddclient/build.sh')
-rwxr-xr-x | packages/ddclient/build.sh | 26 |
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 |