From 8c2b5f35b44ab64528607e452d10aeeefffd3404 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Thu, 4 Jul 2024 12:47:17 +0200 Subject: snmp: T6290: add custom package build (cherry picked from commit 56bc5a517c266fe15e9b331852826dfdd6f97b00) --- packages/net-snmp/build.sh | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 packages/net-snmp/build.sh (limited to 'packages/net-snmp/build.sh') 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 -- cgit v1.2.3