Add Debian package
This commit is contained in:
10
debian/changelog
vendored
Normal file
10
debian/changelog
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
router-backup (1.0.0) stable; urgency=low
|
||||
|
||||
* Initial release
|
||||
* SSH Router Backup Tool with YAML configuration
|
||||
* Support for multiple device types (srlinux, eos)
|
||||
* SSH agent authentication support
|
||||
* Command output concatenation with headers
|
||||
* Go implementation for better performance
|
||||
|
||||
-- Pim van Pelt <pim@ipng.ch> Sat, 05 Jul 2025 23:55:00 +0100
|
13
debian/control
vendored
Normal file
13
debian/control
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
Source: router-backup
|
||||
Section: net
|
||||
Priority: optional
|
||||
Maintainer: Pim van Pelt <pim@ipng.ch>
|
||||
Build-Depends: debhelper-compat (= 12), golang-go
|
||||
Standards-Version: 4.5.0
|
||||
|
||||
Package: router-backup
|
||||
Architecture: amd64
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}, openssh-client
|
||||
Description: SSH Router Backup Tool
|
||||
A tool for backing up router configurations via SSH.
|
||||
Supports multiple device types and YAML configuration.
|
1
debian/debhelper-build-stamp
vendored
Normal file
1
debian/debhelper-build-stamp
vendored
Normal file
@ -0,0 +1 @@
|
||||
router-backup
|
2
debian/files
vendored
Normal file
2
debian/files
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
router-backup_1.0.0_amd64.buildinfo net optional
|
||||
router-backup_1.0.0_amd64.deb net optional
|
3
debian/postinst
vendored
Executable file
3
debian/postinst
vendored
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
echo 'Router Backup installed successfully.'
|
||||
echo 'Example config at /etc/router-backup/config.yaml.example'
|
25
debian/rules
vendored
Executable file
25
debian/rules
vendored
Executable file
@ -0,0 +1,25 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
%:
|
||||
dh $@
|
||||
|
||||
override_dh_auto_build:
|
||||
cd src && go build -o ../router_backup router_backup.go
|
||||
|
||||
override_dh_auto_install:
|
||||
mkdir -p debian/router-backup/usr/bin
|
||||
mkdir -p debian/router-backup/etc/router-backup
|
||||
mkdir -p debian/router-backup/usr/share/man/man1
|
||||
cp router_backup debian/router-backup/usr/bin/
|
||||
cp config.yaml debian/router-backup/etc/router-backup/config.yaml.example
|
||||
cp docs/router_backup.1 debian/router-backup/usr/share/man/man1/
|
||||
gzip debian/router-backup/usr/share/man/man1/router_backup.1
|
||||
|
||||
override_dh_auto_clean:
|
||||
rm -f router_backup
|
||||
|
||||
override_dh_auto_test:
|
||||
# Skip tests for now
|
||||
|
||||
override_dh_dwz:
|
||||
# Skip dwz compression due to Go binary format
|
1
debian/source/format
vendored
Normal file
1
debian/source/format
vendored
Normal file
@ -0,0 +1 @@
|
||||
3.0 (native)
|
Reference in New Issue
Block a user