--- netifyd-3.09.orig/debian/changelog
+++ netifyd-3.09/debian/changelog
@@ -0,0 +1,5 @@
+netifyd (3.09-1) stable; urgency=low
+
+  * Initial Release
+
+ -- Darryl Sokoloski <darryl@egloo.ca>  Sun, 01 Jan 2017 00:00:00 +0100
--- netifyd-3.09.orig/debian/conffiles
+++ netifyd-3.09/debian/conffiles
@@ -0,0 +1,3 @@
+/etc/default/netifyd
+/etc/netifyd.conf
+/etc/netify.d/netify-sink.conf
--- netifyd-3.09.orig/debian/control
+++ netifyd-3.09/debian/control
@@ -0,0 +1,13 @@
+Source: netifyd
+Section: net
+Priority: optional
+Maintainer: Darryl Sokoloski <darryl@egloo.ca>
+Build-Depends: debhelper (>= 9), dh-systemd (>= 1.5), systemd, autoconf, automake, bc, build-essential, libcurl4-openssl-dev, libmnl-dev, libncurses5-dev, libnetfilter-conntrack-dev, libpcap-dev, libtool, zlib1g-dev, libtcmalloc-minimal4
+
+Package: netifyd
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: Netify Agent
+ The Netify (https://www.netify.ai/) Agent is a deep-packet inspection server.  The Agent is built on top of nDPI (http://www.ntop.org/products/deep-packet-inspection/ndpi/) (formerly OpenDPI) to detect network protocols and applications.  These detections can be saved locally, served over a UNIX or TCP socket, and/or "pushed" (via HTTP POSTs) to a remote third-party server.  Flow metadata, network statistics, and detection classifications are stored using JSON encoding.
+ Optionally, the Netify Agent can be coupled with a Netify Cloud (https://www.netify.ai/) subscription for further cloud processing, historical storage, machine-learning analysis, event notifications, device detection/identification, along with the option (on supported platforms) to take an active role in policing/bandwidth-shaping specific network protocols and applications.
+ Report bugs to: https://gitlab.com/netify.ai/public/netify-agent/issues
--- netifyd-3.09.orig/debian/postinst
+++ netifyd-3.09/debian/postinst
@@ -0,0 +1,21 @@
+#!/bin/sh
+# Netify Agent Debian Post-install Script
+# Copyright (C) 2016-2021 eGloo, Incorporated
+#
+# This is free software, licensed under the GNU General Public License v3.
+
+if [ -f "/var/lib/netifyd/agent.uuid" ]; then
+    mv -f "/var/lib/netifyd/agent.uuid" /etc/netify.d/
+fi
+
+if [ -f "/var/lib/netifyd/site.uuid" ]; then
+    mv -f "/var/lib/netifyd/site.uuid" /etc/netify.d/
+fi
+
+if [ -f "/var/lib/netifyd/app-custom-match.conf" ]; then
+    mv -f "/var/lib/netifyd/app-custom-match.conf" /etc/netify.d/netify-sink.conf
+fi
+
+rm -f "/var/lib/netifyd/*.csv"
+
+exit 0
--- netifyd-3.09.orig/debian/rules
+++ netifyd-3.09/debian/rules
@@ -0,0 +1,106 @@
+#!/usr/bin/make -f
+# Netify Agent Debian Makefile Rules
+# Copyright (C) 2016-2021 eGloo, Incorporated
+#
+# This is free software, licensed under the GNU General Public License v3.
+#
+# XXX: Fix tabs when necessary:
+#	$ sed 's/ \+ /\t/g' -i deploy/debian/debian.rules.in
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# Compiler options
+CFLAGS=-g
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+CFLAGS+=-O0
+else
+CFLAGS+=-O2
+endif
+
+# Build destination directory
+export DESTDIR=/usr/src/packages/BUILD/debian/netifyd
+
+build: build-arch build-indep
+build-arch: build-stamp
+build-indep: build-stamp
+build-stamp:
+	dh_testdir
+
+	./autogen.sh
+	dh_auto_configure -- --enable-minimal
+	dh_auto_build
+
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_prep
+	dh_installdirs
+
+	dh_auto_install
+
+	rm -rf $(DESTDIR)/usr/bin
+	rm -rf $(DESTDIR)/usr/include
+	rm -rf $(DESTDIR)/usr/lib/*/*.a
+	rm -rf $(DESTDIR)/usr/lib/*/*.la
+	rm -rf $(DESTDIR)/usr/lib/*/libndpi*
+	rm -rf $(DESTDIR)/usr/lib/*/pkgconfig
+
+	install -d -m 0755 $(DESTDIR)/var/run/netifyd
+	install -d -m 0755 $(DESTDIR)/etc/netify.d
+
+	chmod a+x $(DESTDIR)/usr/share/netifyd/*.sh
+
+	dh_systemd_enable
+
+	install -D -m 0755 deploy/debian/debian.init \
+		$(DESTDIR)/etc/init.d/netifyd
+
+	dh_systemd_start
+
+	install -D -m 0644 deploy/netifyd.default \
+		$(DESTDIR)/etc/default/netifyd
+
+# Build architecture-independent files here.
+binary-indep: build install
+	# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+#	dh_installdebconf
+	dh_installdocs
+	dh_installexamples
+	dh_installmenu
+#	dh_installlogrotate
+#	dh_installemacsen
+#	dh_installpam
+#	dh_installmime
+#	dh_installinit
+	dh_installcron
+	dh_installman
+	dh_installinfo
+#	dh_undocumented
+	dh_installchangelogs
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+#	dh_makeshlibs
+	dh_installdeb
+#	dh_perl
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build binary-indep binary-arch binary install
