diff options
author | Christian Breunig <christian@breunig.cc> | 2024-07-15 08:23:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-15 08:23:36 +0200 |
commit | 8e64f27ec35ee636ebbbf0ac1eb54387ef1eb5f5 (patch) | |
tree | ba2d51e59282889757e6b1d3d56cb6f8d61f2be4 | |
parent | 6a5dab398d8213d825a23d99d0c0b3d3f3f9ab9a (diff) | |
parent | 9aa1a7351a5d686ce80323de5c22df059297718b (diff) | |
download | vyos-build-8e64f27ec35ee636ebbbf0ac1eb54387ef1eb5f5.tar.gz vyos-build-8e64f27ec35ee636ebbbf0ac1eb54387ef1eb5f5.zip |
Merge pull request #696 from vyos/mergify/bp/sagitta/pr-694
ddclient: T5797: switch to Debian SALSA repository (backport #694)
-rw-r--r-- | packages/ddclient/Jenkinsfile | 12 | ||||
-rwxr-xr-x | packages/ddclient/build.sh | 49 |
2 files changed, 4 insertions, 57 deletions
diff --git a/packages/ddclient/Jenkinsfile b/packages/ddclient/Jenkinsfile index 80ec8cc7..5adcec3d 100644 --- a/packages/ddclient/Jenkinsfile +++ b/packages/ddclient/Jenkinsfile @@ -1,4 +1,4 @@ -// Copyright (C) 2023 VyOS maintainers and contributors +// Copyright (C) 2023-2024 VyOS maintainers and contributors // // This program is free software; you can redistribute it and/or modify // in order to easy exprort images built to "external" world @@ -20,14 +20,10 @@ @Library('vyos-build@sagitta')_ def pkgList = [ - ['name': 'ddclient-debian', - 'scmCommit': 'debian/3.10.0-3', + ['name': 'ddclient', + 'scmCommit': '93bd643', 'scmUrl': 'https://salsa.debian.org/debian/ddclient', - 'buildCmd': '/bin/true'], - ['name': 'ddclient-github', - 'scmCommit': 'v3.11.2', - 'scmUrl': 'https://github.com/ddclient/ddclient', - 'buildCmd': 'cd ..; ./build.sh'], + 'buildCmd': 'sudo mk-build-deps --install --tool "apt-get --yes --no-install-recommends"; dpkg-buildpackage -uc -us -tc -b'], ] // Start package build using library function from https://github.com/vyos/vyos-build diff --git a/packages/ddclient/build.sh b/packages/ddclient/build.sh deleted file mode 100755 index 82e9b899..00000000 --- a/packages/ddclient/build.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/bash -CWD=$(pwd) -set -e - -SRC_DEBIAN=ddclient-debian -SRC_GITHUB=ddclient-github - -if [ ! -d ${SRC_DEBIAN} ]; then - echo "${SRC_DEBIAN} directory does not exists, please 'git clone'" - exit 1 -fi - -if [ ! -d ${SRC_GITHUB} ]; then - echo "${SRC_GITHUB} directory does not exists, please 'git clone'" - exit 1 -fi - -echo "I: Copy Debian build instructions" -cp -a ${SRC_DEBIAN}/debian ${SRC_GITHUB} -# Preserve some of the Debian's default patches -cat > ${SRC_GITHUB}/debian/patches/series << EOF -maxinterval.diff -news.diff -EOF -# Remove vestigial documentation -sed -i '/README\.ssl/d' ${SRC_GITHUB}/debian/docs - -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_GITHUB}/debian/patches/ - echo ${patch} >> ${SRC_GITHUB}/debian/patches/series - done -fi - -cd ${SRC_GITHUB} - -echo "I: Ensure Debian build dependencies are met" -sudo mk-build-deps --install --tool "apt-get --yes --no-install-recommends" - -echo "I: Bump Debian Package version" -version="$(git describe --tags)" -dch -v "${version:1}+vyos0" "Patchset for miscellaneous fixes" -dch -a "Forward port to upstream version ${version:1}" - -echo "I: Build Debian Package" -dpkg-buildpackage -uc -us -tc -b |