Cut a new release. Simplify Debian build rules, more similar to govpp-snmp-agentx
This commit is contained in:
1
Makefile
1
Makefile
@ -29,6 +29,7 @@ build: sync-version
|
|||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
@echo "Cleaning build artifacts..."
|
@echo "Cleaning build artifacts..."
|
||||||
|
[ -d debian/go ] && chmod -R +w debian/go || true
|
||||||
rm -rf debian/.debhelper debian/.gocache debian/go debian/$(BINARY_NAME) debian/files debian/*.substvars debian/debhelper-build-stamp
|
rm -rf debian/.debhelper debian/.gocache debian/go debian/$(BINARY_NAME) debian/files debian/*.substvars debian/debhelper-build-stamp
|
||||||
rm -f ../$(BINARY_NAME)_*.deb ../$(BINARY_NAME)_*.changes ../$(BINARY_NAME)_*.buildinfo
|
rm -f ../$(BINARY_NAME)_*.deb ../$(BINARY_NAME)_*.changes ../$(BINARY_NAME)_*.buildinfo
|
||||||
rm -f $(BUILD_DIR)/$(BINARY_NAME)
|
rm -f $(BUILD_DIR)/$(BINARY_NAME)
|
||||||
|
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
|
ipng-router-backup (1.0.2) stable; urgency=low
|
||||||
|
|
||||||
* Add YAML !include directive support for configuration files
|
* Add YAML !include directive support for configuration files
|
||||||
|
12
debian/rules
vendored
12
debian/rules
vendored
@ -1,23 +1,31 @@
|
|||||||
#!/usr/bin/make -f
|
#!/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 $@
|
dh $@
|
||||||
|
|
||||||
override_dh_auto_build:
|
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:
|
override_dh_auto_install:
|
||||||
mkdir -p debian/ipng-router-backup/usr/bin
|
mkdir -p debian/ipng-router-backup/usr/bin
|
||||||
mkdir -p debian/ipng-router-backup/etc/ipng-router-backup
|
mkdir -p debian/ipng-router-backup/etc/ipng-router-backup
|
||||||
mkdir -p debian/ipng-router-backup/usr/share/man/man1
|
mkdir -p debian/ipng-router-backup/usr/share/man/man1
|
||||||
cp ipng-router-backup debian/ipng-router-backup/usr/bin/
|
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 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
|
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
|
gzip debian/ipng-router-backup/usr/share/man/man1/ipng-router-backup.1
|
||||||
|
|
||||||
override_dh_auto_clean:
|
override_dh_auto_clean:
|
||||||
rm -f ipng-router-backup
|
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:
|
override_dh_auto_test:
|
||||||
# Skip tests for now
|
# Skip tests for now
|
||||||
|
@ -10,7 +10,7 @@ import (
|
|||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
const Version = "1.0.2"
|
const Version = "1.1.0"
|
||||||
|
|
||||||
// Config and SSH types are now in separate packages
|
// Config and SSH types are now in separate packages
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user