summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--LICENSE26
-rw-r--r--Makefile75
-rw-r--r--blocklist2nft (renamed from blocklist2nft.py)0
-rw-r--r--debian/changelog5
-rw-r--r--debian/control16
-rw-r--r--debian/copyright8
-rw-r--r--debian/postinst44
-rwxr-xr-xdebian/rules4
-rw-r--r--debian/source/format1
-rw-r--r--debian/source/lintian-overrides0
-rw-r--r--debian/source/local-options0
11 files changed, 179 insertions, 0 deletions
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..12db205
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,26 @@
+Copyright (c) Jason McCormick <jason@mfamily.org>
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+3. Neither the name of the University nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGE.
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..1f1e547
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,75 @@
+#
+# Build variables
+#
+SRCNAME = blocklist2nft
+PKGNAME = $(SRCNAME)
+RELVER = 1
+DEBVER = 1
+RELPLAT ?= deb$(shell lsb_release -rs 2> /dev/null)
+
+#
+# Other variables
+#
+prefix ?= /usr
+bindir ?= $(prefix)/bin
+systemd_enabled_dir ?= /lib/systemd/system
+
+BIN_FILES = \
+ blocklist2nft
+
+SYSTEMD_ENABLED_FILES = \
+ blocklist2nft.service \
+ blocklist2nft.timer
+
+BIN_INSTALLABLES = $(patsubst %, $(DESTDIR)$(bindir)/%, $(BIN_FILES))
+SYSTEMD_ENABLED_INSTALLABLES = $(patsubst %, $(DESTDIR)$(systemd_enabled_dir)/%, $(SYSTEMD_ENABLED_FILES))
+
+INSTALLABLES = \
+ $(BIN_INSTALLABLES) \
+ $(SYSTEMD_ENABLED_INSTALLABLES)
+
+default:
+ @echo This does nothing
+
+install: $(INSTALLABLES)
+
+$(DESTDIR)$(bindir)/%: %
+ install -D -m 0755 $< $@
+
+$(DESTDIR)$(systemd_enabled_dir)/%: %
+ install -D -m 0644 $< $@
+
+deb: debclean debprep
+ debchange --distribution stable --package $(PKGNAME) \
+ --newversion $(EPOCHVER)$(RELVER)-$(DEBVER).$(RELPLAT) \
+ "Autobuild of $(EPOCHVER)$(RELVER)-$(DEBVER) for $(RELPLAT)"
+ dpkg-buildpackage -b --no-sign
+ git checkout debian/changelog
+
+debchange:
+ debchange -v $(RELVER)-$(DEBVER)
+ debchange -r
+
+
+debprep: debclean
+ (cd .. && \
+ rm -f $(PKGNAME)-$(RELVER) && \
+ rm -f $(PKGNAME)-$(RELVER).tar.gz && \
+ rm -f $(PKGNAME)_$(RELVER).orig.tar.gz && \
+ ln -s $(SRCNAME) $(PKGNAME)-$(RELVER) && \
+ tar --exclude=".git" -h -zvcf $(PKGNAME)-$(RELVER).tar.gz $(PKGNAME)-$(RELVER) && \
+ ln -s $(PKGNAME)-$(RELVER).tar.gz $(PKGNAME)_$(RELVER).orig.tar.gz )
+
+debclean:
+ rm -f ../$(PKGNAME)_$(RELVER)*
+ rm -f ../$(PKGNAME)-$(RELVER)*
+ rm -rf debian/$(PKGNAME)
+ rm -f debian/files
+ rm -rf debian/.debhelper/
+ rm -f debian/debhelper-build-stamp
+ rm -f debian/*.substvars
+ rm -rf debian/$(SRCNAME)/ debian/.debhelper/
+ rm -f debian/debhelper-build-stamp debian/files debian/$(SRCNAME).substvars
+ rm -f debian/*.debhelper
+
+
diff --git a/blocklist2nft.py b/blocklist2nft
index fc5fc4a..fc5fc4a 100644
--- a/blocklist2nft.py
+++ b/blocklist2nft
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..02aeb61
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+blocklist2nft (1-1) unstable; urgency=medium
+
+ * initial release
+
+ -- Jason McCormick <jason@mfamily.org> Tue, 20 Jan 2026 19:15:53 -0500
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..d60a0c0
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,16 @@
+Source: asl3-update-nodelist
+Section: Radio
+Priority: optional
+Maintainer: Jason McCormick <jason@mfamily.org>
+Build-Depends: debhelper-compat (= 13), pandoc
+Standards-Version: 4.5.1
+Homepage: https://github.com/AllStarLink/asl3-update-nodelist
+Vcs-Browser: https://github.com/AllStarLink/asl3-update-nodelist
+Vcs-Git: https://github.com/AllStarLink/asl3-update-nodelist
+Rules-Requires-Root: binary-targets
+
+Package: asl3-update-nodelist
+Architecture: all
+Depends: ${misc:Depends}, patch
+Description: Maintain the ASL node database file
+ in /var/lib/asterisk/rpt_extnodes
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..f859a28
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,8 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: blocklist2nft
+Source: https://gitweb.mfamily.org/blocklist2nft
+
+Files: *
+Copyright: Copyright (C) 2026 Jason McCormick
+License: BSD
+ /usr/share/common-licenses/BSD
diff --git a/debian/postinst b/debian/postinst
new file mode 100644
index 0000000..4284a9b
--- /dev/null
+++ b/debian/postinst
@@ -0,0 +1,44 @@
+#!/bin/sh -e
+# postinst script for allmon3
+#
+# see: dh_installdeb(1)
+
+# summary of how this script can be called:
+# * <postinst> `configure' <most-recently-configured-version>
+# * <old-postinst> `abort-upgrade' <new version>
+# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+# <new-version>
+# * <postinst> `abort-remove'
+# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+# <failed-install-package> <version> `removing'
+# <conflicting-package> <version>
+# for details, see https://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+do_configure() {
+ dh_systemd_enable blocklist2nft.timer
+ dh_systemd_start blocklist2nft.timer
+ /usr/bin/blocklist2nft
+}
+
+case "$1" in
+ configure)
+ do_configure
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..2d33f6a
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,4 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/source/lintian-overrides b/debian/source/lintian-overrides
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/debian/source/lintian-overrides
diff --git a/debian/source/local-options b/debian/source/local-options
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/debian/source/local-options