6 Commits

Author SHA1 Message Date
Pim van Pelt b17396b1e5 Rework build system; cut release 1.3.1-1
Replace the dpkg-buildpackage / debhelper rig with the same pattern
used in vpp-maglev: a Makefile that cross-compiles CGO-free static
binaries for amd64 and arm64, plus a debian/build-deb.sh that stages
the .deb directly with dpkg-deb. The two arch packages drop into
build/ and run on any glibc/musl Linux of the matching arch.

VERSION is parsed once from debian/changelog and injected at link
time via -ldflags "-X 'main.Version=...' -X 'main.Commit=...' -X
'main.Date=...'", so 'govpp-snmp-agentx --version' is the source of
truth for which build is running. main.go's Version constant becomes
a var to make this work; the old sync-version make target is gone.

Removes the now-unused debian/{control,rules,postinst,prerm,*.debhelper}
files and adds build/ to .gitignore.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-06 18:42:58 +02:00
Pim van Pelt 82db92f344 Add an initial 'make pkg-deb' and debian/ control directory 2025-06-17 00:22:01 +02:00
Pim van Pelt 478168584d Rename from govpp-snmp-exmaple to govpp-snmp-agentx; Also rename the binary + README 2025-06-10 13:41:14 +02:00
Pim van Pelt 458168e308 Add -vppcfg flag to set ifAlias from the 'description' fields in vppcfg.yaml 2025-06-09 19:12:05 +02:00
Pim van Pelt b6cdcd16ba Move flags to their own modules 2025-06-09 18:18:38 +02:00
Pim van Pelt a96b853d06 Remove spurious logline. Add .gitignore 2025-06-09 17:55:18 +02:00