--- sentinel-proxy-2.1.0.orig/debian/changelog
+++ sentinel-proxy-2.1.0/debian/changelog
@@ -0,0 +1,11 @@
+sentinel-proxy (2.1.0-0+6.179) stable; urgency=low
+
+  * version number update by debtransform
+
+ -- debtransform <build@opensuse.org>  Mon, 03 Jun 2024 04:00:39 +0000
+
+sentinel-proxy (2.1.0-0) stable; urgency=low
+
+  * Fake changelog to get package building
+
+ -- Michal Hrusecky <michal.hrusecky@opensuse.org>  Mon, 25 Dec 2007 10:50:38 +0100
--- sentinel-proxy-2.1.0.orig/debian/compat
+++ sentinel-proxy-2.1.0/debian/compat
@@ -0,0 +1 @@
+10
--- sentinel-proxy-2.1.0.orig/debian/control
+++ sentinel-proxy-2.1.0/debian/control
@@ -0,0 +1,17 @@
+Source: sentinel-proxy
+Section: contrib
+Priority: optional
+Maintainer: Michal Hrusecky <michal.hrusecky@opensuse.org>
+Build-Depends: debhelper (>= 9), libczmq-dev, pkg-config, libmsgpack-dev, dh-autoreconf, autotools-dev, autoconf-archive, liblogc-dev, liblogc-libs-dev, libssl-dev, zlib1g-dev, libconfig-dev, libpaho-mqtt-dev
+
+Package: sentinel-proxy
+Architecture: all
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: Sends messages received over ZMQ to Sentinel server (over MQTT)
+ .
+ See http://sentinel.turris.cz for more details.
+
+Package: sentinel-proxy-dev
+Architecture: any
+Depends:
+    ${misc:Depends}, sentinel-proxy, libczmq-dev, pkg-config, libmsgpack-dev, dh-autoreconf, autotools-dev, libssl-dev, zlib1g-dev, libconfig-dev, libpaho-mqtt-dev
--- sentinel-proxy-2.1.0.orig/debian/postinst
+++ sentinel-proxy-2.1.0/debian/postinst
@@ -0,0 +1,3 @@
+#!/bin/sh
+chown sentinel:sentinel /etc/sentinel
+systemctl daemon-reload
--- sentinel-proxy-2.1.0.orig/debian/preinst
+++ sentinel-proxy-2.1.0/debian/preinst
@@ -0,0 +1,3 @@
+#!/bin/sh
+addgroup --system sentinel
+adduser --system --ingroup sentinel sentinel
--- sentinel-proxy-2.1.0.orig/debian/rules
+++ sentinel-proxy-2.1.0/debian/rules
@@ -0,0 +1,26 @@
+#!/usr/bin/make -f
+# See debhelper(7) (uncomment to enable)
+# output every command that modifies files on the build system.
+# DH_VERBOSE = 1
+
+# see FEATURE AREAS in dpkg-buildflags(1)
+#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+# see ENVIRONMENT in dpkg-buildflags(1)
+# package maintainers to append CFLAGS
+#export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
+# package maintainers to append LDFLAGS
+#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+
+%:
+	dh $@ --with autoreconf
+
+override_dh_auto_install:
+	dh_auto_install
+	install -D -m 0755 ../SOURCES/sentinel-proxy.service debian/sentinel-proxy/usr/lib/systemd/system/sentinel-proxy.service
+	sed -i 's|/usr/lib/sentinel-proxy|/usr/libexec/sentinel-proxy|' debian/sentinel-proxy/usr/lib/systemd/system/sentinel-proxy.service
+	install -D -m 0755 ../SOURCES/device_token.sh debian/sentinel-proxy/usr/libexec/sentinel-proxy/device_token_helper.sh
+	install -D -m 0644 ../SOURCES/ca.pem debian/sentinel-proxy/etc/sentinel/ca.pem
+	cp -r debian/tmp/usr/bin debian/sentinel-proxy/usr
+	cp -r debian/tmp/usr/lib debian/sentinel-proxy/usr && rm -f debian/sentinel-proxy/usr/lib/*/*.so debian/sentinel-proxy/usr/lib/*/*.a debian/sentinel-proxy/usr/lib/*/*.la
+	cp -r debian/tmp/usr/lib debian/sentinel-proxy-dev/usr && rm -f debian/sentinel-proxy-dev/usr/lib/*/*.so.* debian/sentinel-proxy/usr/lib/*/*.a debian/sentinel-proxy/usr/lib/*/*.la
