--- re6st-node-0.657+slapos1.g30e7680bc.orig/debian/changelog
+++ re6st-node-0.657+slapos1.g30e7680bc/debian/changelog
@@ -0,0 +1,9 @@
+re6st-node (0.657+slapos1.g30e7680bc-1) nexedi; urgency=low
+
+  * version number update by debtransform
+
+ -- debtransform <build@opensuse.org>  Fri, 25 Apr 2025 15:12:38 +0000
+
+re6st-node (0.657+slapos1.g30e7680bc) nexedi; urgency=low
+
+ -- Julien Muchembled <jm@nexedi.com>  Wed, 23 Apr 2025 16:24:04 +0200
--- re6st-node-0.657+slapos1.g30e7680bc.orig/debian/common.mk
+++ re6st-node-0.657+slapos1.g30e7680bc/debian/common.mk
@@ -0,0 +1,18 @@
+PACKAGE = $(shell dh_listpackages)
+TMP = $(CURDIR)/debian/$(PACKAGE)
+
+ifdef VERSION
+define CHANGELOG
+$(PACKAGE) ($(VERSION)) nexedi; urgency=low
+
+ -- $(shell git log -1 --pretty='%cN <%cE>  %cD')
+endef
+export CHANGELOG
+
+.PHONY: debian/changelog
+
+debian/changelog:
+	echo "$$CHANGELOG" >$@
+endif
+
+override_dh_auto_test:
--- re6st-node-0.657+slapos1.g30e7680bc.orig/debian/compat
+++ re6st-node-0.657+slapos1.g30e7680bc/debian/compat
@@ -0,0 +1 @@
+10
--- re6st-node-0.657+slapos1.g30e7680bc.orig/debian/control
+++ re6st-node-0.657+slapos1.g30e7680bc/debian/control
@@ -0,0 +1,21 @@
+Source: re6st-node
+Maintainer: Julien Muchembled <jm@nexedi.com>
+Section: net
+Priority: optional
+Build-Depends: debhelper (>= 10), iproute2,
+  python3 (>= 3.10) | python3-distutils (>= 3.7) | libbz2-dev,
+  python3 (>= 3.10) | python3-distutils (>= 3.7) | libffi-dev,
+  python3 (>= 3.10) | python3-distutils (>= 3.7) | liblzma-dev,
+  python3 (>= 3.10) | python3-distutils (>= 3.7) | libssl-dev,
+  python3 (>= 3.10) | python3-distutils (>= 3.7) | zlib1g-dev
+Standards-Version: 4.7.0
+
+Package: re6st-node
+Architecture: any
+Depends: ${shlibs:Depends}, iproute2
+Recommends: ${python3:Recommends}, logrotate
+Suggests: ${python3:Suggests}, ndisc6
+Conflicts: re6stnet
+Replaces: re6stnet
+Description: resilient, scalable, IPv6 network application
+Provides: re6stnet
--- re6st-node-0.657+slapos1.g30e7680bc.orig/debian/copyright
+++ re6st-node-0.657+slapos1.g30e7680bc/debian/copyright
@@ -0,0 +1,20 @@
+Format: http://dep.debian.net/deps/dep5
+
+Files: *
+Copyright: 2012 Nexedi SA and Contributors
+License: GPL-2+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
--- re6st-node-0.657+slapos1.g30e7680bc.orig/debian/examples
+++ re6st-node-0.657+slapos1.g30e7680bc/debian/examples
@@ -0,0 +1 @@
+examples/*
--- re6st-node-0.657+slapos1.g30e7680bc.orig/debian/maintscript
+++ re6st-node-0.657+slapos1.g30e7680bc/debian/maintscript
@@ -0,0 +1,3 @@
+rm_conffile /etc/NetworkManager/dispatcher.d/50re6stnet
+rm_conffile /etc/network/if-down.d/re6stnet
+rm_conffile /etc/network/if-up.d/re6stnet
--- re6st-node-0.657+slapos1.g30e7680bc.orig/debian/postinst
+++ re6st-node-0.657+slapos1.g30e7680bc/debian/postinst
@@ -0,0 +1,10 @@
+#!/bin/sh
+set -e
+
+# https://lists.debian.org/debian-mentors/2015/12/msg00367.html
+x=/var/lib/dpkg/info/re6stnet.postrm
+if [ "$1" = "configure" ] && grep -q DPKG_MAINTSCRIPT_PACKAGE $x 2>/dev/null
+then sed -ri '1s,^(#!/bin/)sh,\1true\n\0,' $x
+fi
+
+#DEBHELPER#
--- re6st-node-0.657+slapos1.g30e7680bc.orig/debian/postrm
+++ re6st-node-0.657+slapos1.g30e7680bc/debian/postrm
@@ -0,0 +1,13 @@
+#!/bin/sh
+set -e
+
+if [ "$1" = purge ]; then
+  # https://lists.debian.org/debian-mentors/2015/12/msg00367.html
+  [ -x /usr/sbin/re6stnet ] && exit
+  for d in lib log; do
+    d=/var/$d/re6stnet
+    [ ! -d "$d" ] || rm -r "$d" || :
+  done
+fi
+
+#DEBHELPER#
--- re6st-node-0.657+slapos1.g30e7680bc.orig/debian/preinst
+++ re6st-node-0.657+slapos1.g30e7680bc/debian/preinst
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -e
+
+# BBB: service renamed from 're6st-node' to 're6stnet'
+dpkg-maintscript-helper rm_conffile /etc/init.d/re6st-node -- "$@"
+
+#DEBHELPER#
--- re6st-node-0.657+slapos1.g30e7680bc.orig/debian/prerm
+++ re6st-node-0.657+slapos1.g30e7680bc/debian/prerm
@@ -0,0 +1,13 @@
+#!/bin/sh
+set -e
+
+pyclean() {
+  local IFS='
+'
+  find `dpkg -L $1 |sed -n 's,[^/]*\.py$,__pycache__,p' |
+    sort -u` -delete 2>/dev/null || true
+}
+
+pyclean $DPKG_MAINTSCRIPT_PACKAGE
+
+#DEBHELPER#
--- re6st-node-0.657+slapos1.g30e7680bc.orig/debian/rules
+++ re6st-node-0.657+slapos1.g30e7680bc/debian/rules
@@ -0,0 +1,24 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+#export DH_VERBOSE=1
+
+# WKRD: gettext
+export DEB_BUILD_MAINT_OPTIONS = hardening=-format
+
+include debian/common.mk
+
+override_dh_auto_install:
+# BBB: override UNITDIR for Debian 12 and older
+	make DESTDIR=$(TMP) UNITDIR=/lib/systemd/system PREFIX=/usr install
+
+override_dh_link:
+
+override_dh_makeshlibs:
+	dh_makeshlibs -n
+
+override_dh_shlibdeps:
+	dh_shlibdeps -- -x$(PACKAGE)
+	rm $(TMP)/DEBIAN/shlibs
+
+%:
+	dh $@ --with systemd
