Cut a new release. Simplify Debian build rules, more similar to govpp-snmp-agentx
This commit is contained in:
10
debian/changelog
vendored
10
debian/changelog
vendored
@ -1,3 +1,13 @@
|
||||
ipng-router-backup (1.1.0) stable; urgency=low
|
||||
|
||||
* Replace --config flag with --yaml flag supporting multiple files
|
||||
* Switch from !include to mergo-based configuration merging
|
||||
* Add SSH config integration for legacy device compatibility
|
||||
* Refactor SSH functionality into separate module
|
||||
* Add comprehensive test coverage
|
||||
|
||||
-- Pim van Pelt <pim@ipng.ch> Sun, 07 Jul 2025 15:30:00 +0100
|
||||
|
||||
ipng-router-backup (1.0.2) stable; urgency=low
|
||||
|
||||
* Add YAML !include directive support for configuration files
|
||||
|
12
debian/rules
vendored
12
debian/rules
vendored
@ -1,23 +1,31 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
export GO111MODULE = on
|
||||
export GOPROXY = https://proxy.golang.org,direct
|
||||
export GOCACHE = $(CURDIR)/debian/.gocache
|
||||
export GOPATH = $(CURDIR)/debian/go
|
||||
|
||||
%:
|
||||
dh $@
|
||||
|
||||
override_dh_auto_build:
|
||||
cd src && go build -o ../ipng-router-backup main.go
|
||||
mkdir -p $(GOCACHE) $(GOPATH)
|
||||
cd src && go build -o ../ipng-router-backup .
|
||||
|
||||
override_dh_auto_install:
|
||||
mkdir -p debian/ipng-router-backup/usr/bin
|
||||
mkdir -p debian/ipng-router-backup/etc/ipng-router-backup
|
||||
mkdir -p debian/ipng-router-backup/usr/share/man/man1
|
||||
cp ipng-router-backup debian/ipng-router-backup/usr/bin/
|
||||
cp docs/config.yaml.example debian/ipng-router-backup/etc/ipng-router-backup/config.yaml.example
|
||||
cp etc/* debian/ipng-router-backup/etc/ipng-router-backup/
|
||||
cp docs/router_backup.1 debian/ipng-router-backup/usr/share/man/man1/ipng-router-backup.1
|
||||
gzip debian/ipng-router-backup/usr/share/man/man1/ipng-router-backup.1
|
||||
|
||||
override_dh_auto_clean:
|
||||
rm -f ipng-router-backup
|
||||
[ -d debian/go ] && chmod -R +w debian/go || true
|
||||
for dir in obj-*; do [ -d "$$dir" ] && chmod -R +w "$$dir" || true; done
|
||||
rm -rf debian/.gocache debian/go obj-*
|
||||
|
||||
override_dh_auto_test:
|
||||
# Skip tests for now
|
||||
|
Reference in New Issue
Block a user