Add an initial 'make pkg-deb' and debian/ control directory

This commit is contained in:
Pim van Pelt
2025-06-17 00:22:01 +02:00
parent adf033318a
commit 82db92f344
8 changed files with 150 additions and 0 deletions

28
debian/postinst vendored Executable file
View File

@ -0,0 +1,28 @@
#!/bin/bash
set -e
case "$1" in
configure)
# Create agentx directories
mkdir -p /var/agentx/master
chown Debian-snmp:vpp /var/agentx /var/agentx/master
chmod 770 /var/agentx /var/agentx/master
# Enable and start the service
systemctl daemon-reload
systemctl enable govpp-snmp-agentx.service
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
#DEBHELPER#
exit 0