diff options
author | Christian Breunig <christian@breunig.cc> | 2024-07-04 17:42:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-04 17:42:39 +0200 |
commit | be50ff0a1f810dfe95a3a1851c2e7d80e5efb968 (patch) | |
tree | ed7026ae8ed117372318f4a1de9d1ac84137171b /packages/net-snmp/build.sh | |
parent | 13471dc0b2f142792121671283a57758f126ab93 (diff) | |
parent | 7c09644a5b51c6ead31a9fb657a21bccbe42216f (diff) | |
download | vyos-build-be50ff0a1f810dfe95a3a1851c2e7d80e5efb968.tar.gz vyos-build-be50ff0a1f810dfe95a3a1851c2e7d80e5efb968.zip |
Merge pull request #687 from vyos/mergify/bp/sagitta/pr-686
snmp: T6290: add custom package build (backport #686)
Diffstat (limited to 'packages/net-snmp/build.sh')
-rwxr-xr-x | packages/net-snmp/build.sh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/packages/net-snmp/build.sh b/packages/net-snmp/build.sh new file mode 100755 index 00000000..ebaeb6eb --- /dev/null +++ b/packages/net-snmp/build.sh @@ -0,0 +1,30 @@ +#!/bin/sh +CWD=$(pwd) +set -e + +SRC=net-snmp + +if [ ! -d ${SRC} ]; then + echo "Source directory does not exists, please 'git clone'" + exit 1 +fi + +cd ${SRC} + +PATCH_DIR=${CWD}/patches +if [ -d $PATCH_DIR ]; then + echo "I: Apply SNMP patches not in main repository:" + for patch in $(ls ${PATCH_DIR}) + do + cp ${PATCH_DIR}/${patch} debian/patches + echo ${patch} >> debian/patches/series + done +fi + +echo "I: Build Debian net-snmp Package" +# We need "|| true" to fix an issue wioth the make system +#make[2]: Leaving directory '/vyos/vyos-build/packages/net-snmp/net-snmp/snmplib' +#making clean in /vyos/vyos-build/packages/net-snmp/net-snmp/agent +#make[2]: Entering directory '/vyos/vyos-build/packages/net-snmp/net-snmp/agent' +#make[2]: *** No rule to make target 'clean'. Stop. +dpkg-buildpackage -us -uc -tc -b || true |