From a5248e18af471e444753c4424da7cf7c381f47e6 Mon Sep 17 00:00:00 2001 From: Giles Knap Date: Wed, 2 Oct 2024 14:39:48 +0000 Subject: [PATCH] add terminalserer and snmp --- snmp/install.sh | 31 +++++++++++++++++++++++++++++++ terminalserver/install.sh | 28 ++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100755 snmp/install.sh create mode 100755 terminalserver/install.sh diff --git a/snmp/install.sh b/snmp/install.sh new file mode 100755 index 0000000..ff0fd73 --- /dev/null +++ b/snmp/install.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +# ARGUMENTS: +# $1 VERSION to install (must match repo tag) +VERSION=${1} +NAME=snmp +FOLDER=$(dirname $(readlink -f $0)) + +# log output and abort on failure +set -xe + +ibek support apt-install libsnmp-dev +ibek support add-runtime-packages libsnmp40 + +# get the source and fix up the configure/RELEASE files +ibek support git-clone ${NAME} ${VERSION} --org https://github.com/DiamondLightSource/ +ibek support register ${NAME} + +# declare the libs and DBDs that are required in ioc/iocApp/src/Makefile +ibek support add-libs devSnmp +ibek support add-dbds devSnmp.dbd + +# global config settings +${FOLDER}/../_global/install.sh + +# compile the support module +ibek support compile ${NAME} +# prepare *.bob, *.pvi, *.ibek.support.yaml for access outside the container. +ibek support generate-links ${FOLDER} + + diff --git a/terminalserver/install.sh b/terminalserver/install.sh new file mode 100755 index 0000000..bbaed79 --- /dev/null +++ b/terminalserver/install.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +# ARGUMENTS: +# $1 VERSION to install (must match repo tag) +VERSION=${1} +NAME=terminalserver +FOLDER=$(dirname $(readlink -f $0)) + +# log output and abort on failure +set -xe + +# get the source and fix up the configure/RELEASE files +ibek support git-clone ${NAME} ${VERSION} --org https://github.com/DiamondLightSource/ +ibek support register ${NAME} + +# declare the libs and DBDs that are required in ioc/iocApp/src/Makefile +ibek support add-libs terminalServer +ibek support add-dbds terminalServer.dbd + +# global config settings +${FOLDER}/../_global/install.sh + +# compile the support module +ibek support compile ${NAME} +# prepare *.bob, *.pvi, *.ibek.support.yaml for access outside the container. +ibek support generate-links ${FOLDER} + +