--- zeek-8.2.2.orig/debian/changelog
+++ zeek-8.2.2/debian/changelog
@@ -0,0 +1,5 @@
+zeek (8.2.2-0) stable; urgency=low
+
+  * Zeek builds
+
+ -- Johanna Amann <build@0xxon.net>  Wed, 28 Jan 2015 16:32:06 -0400
--- zeek-8.2.2.orig/debian/compat
+++ zeek-8.2.2/debian/compat
@@ -0,0 +1 @@
+9
--- zeek-8.2.2.orig/debian/control
+++ zeek-8.2.2/debian/control
@@ -0,0 +1,61 @@
+Source: zeek
+Section: Network
+Priority: optional
+Maintainer: Johanna Amann <johanna@icir.org>
+Build-Depends: debhelper (>= 4.1.16), libpcap-dev, cmake, flex, bison, libssl-dev, zlib1g-dev, python3-dev, swig, exim4-daemon-light | mail-transport-agent, libmaxminddb-dev, libfl-dev, libfl2, lsb-base, cron, libzmq3-dev
+
+Package: libbroker-dev
+Section: libs
+Architecture: any
+Depends: ${misc:Depends}
+Description: Development files for Zeek's communication library
+
+Package: zeekctl
+Section: Network
+Architecture: any
+Depends: zeek-core (= ${binary:Version}), python3, ${misc:Depends}
+Recommends: mail-transport-agent
+Description: Zeek's interactive shell for operating Zeek installations.
+
+Package: zeek-core
+Architecture: any
+Depends: libpcap0.8, libmaxminddb0, libzmq5, ${shlibs:Depends}, ${misc:Depends}
+Description: Zeek is a powerful framework for network analysis and security monitoring.
+
+Package: zeek-core-dev
+Architecture: any
+Depends: libbroker-dev (= ${binary:Version}), libpcap-dev, libssl-dev, zlib1g-dev, libmaxminddb-dev, ${misc:Depends}
+Description: Zeek is a powerful framework for network analysis and security monitoring.
+
+Package: zeek-spicy-dev
+Architecture: any
+Depends: libpcap-dev, libssl-dev, zlib1g-dev, ${misc:Depends}
+Description: Spicy development files.
+
+Package: zeek-zkg
+Architecture: all
+Multi-Arch: foreign
+Depends: python3, python3-semantic-version, python3-git, zeek-btest (= ${binary:Version}), zeek-btest-data (= ${binary:Version}), zeek-core (= ${binary:Version}), zeek-core-dev (= ${binary:Version}), zeek-spicy-dev (= ${binary:Version}), ${misc:Depends}
+Description: Zkg is Zeek's package manager.
+
+Package: zeek-btest
+Architecture: all
+Multi-Arch: foreign
+Depends: python3
+Description: The BTest test framework
+
+Package: zeek-btest-data
+Architecture: all
+Multi-Arch: foreign
+Description: Test data for use by the BTest test framework
+
+Package: zeek-client
+Architecture: all
+Multi-Arch: foreign
+Description: The Zeek Cluster Management Client
+Depends: zeek-core (= ${binary:Version})
+
+Package: zeek
+Architecture: any
+Depends: zeek-core (= ${binary:Version}), zeekctl (= ${binary:Version}), zeek-core-dev (= ${binary:Version}), zeek-spicy-dev (= ${binary:Version}), zeek-zkg (= ${binary:Version}), zeek-client (= ${binary:Version}), ${misc:Depends}
+Description: Zeek is a powerful framework for network analysis and security monitoring.
--- zeek-8.2.2.orig/debian/libbroker-dev.dirs
+++ zeek-8.2.2/debian/libbroker-dev.dirs
@@ -0,0 +1,4 @@
+opt/zeek/include
+opt/zeek/lib
+opt/zeek/lib/cmake
+opt/zeek/lib/cmake/Broker
--- zeek-8.2.2.orig/debian/libbroker-dev.install
+++ zeek-8.2.2/debian/libbroker-dev.install
@@ -0,0 +1,6 @@
+opt/zeek/include/broker
+opt/zeek/lib/libbroker.a
+opt/zeek/lib/cmake/Broker/BrokerConfig.cmake
+opt/zeek/lib/cmake/Broker/BrokerConfigVersion.cmake
+opt/zeek/lib/cmake/Broker/BrokerTargets-release.cmake
+opt/zeek/lib/cmake/Broker/BrokerTargets.cmake
--- zeek-8.2.2.orig/debian/rules
+++ zeek-8.2.2/debian/rules
@@ -0,0 +1,112 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+# export DH_VERBOSE=1
+
+# This is the debhelper compatibility version to use.
+# export DH_COMPAT=4
+
+CFLAGS = -g
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+CFLAGS += -O0
+else
+CFLAGS += -O2
+endif
+
+OS := $(shell lsb_release -si)
+CN := $(shell lsb_release -sc)
+ifeq ($(OS),Ubuntu)
+ifeq ($(CN),jammy)
+UBUNTU_22_04_BUILD := 1
+endif
+endif
+
+
+build: build-arch build-indep
+build-arch: build-stamp
+build-indep: build-stamp
+ifdef UBUNTU_22_04_BUILD
+build-stamp:
+	dh_testdir
+
+	# Add here commands to compile the package.
+	CC=/usr/bin/gcc-12 CXX=/usr/bin/g++-12 ./configure --prefix=/opt/zeek --libdir=/opt/zeek/lib --binary-package --enable-static-broker --enable-static-binpac --disable-broker-tests --build-type=Release
+	make
+	# --- end custom part for compiling
+
+	touch build-stamp
+else
+build-stamp:
+	dh_testdir
+
+	# Add here commands to compile the package.
+	./configure --prefix=/opt/zeek --libdir=/opt/zeek/lib --binary-package --enable-static-broker --enable-static-binpac --disable-broker-tests --build-type=Release
+	make
+	# --- end custom part for compiling
+
+	touch build-stamp
+endif
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp
+
+	# Add here commands to clean up after the build process.
+	# make clean || true
+	rm -rf build
+	# --- end custom part for cleaning up
+
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_prep
+	dh_installdirs
+
+	# Add here commands to install the package
+	# The DESTDIR Has To Be Exactly  /usr/src/packages/BUILD/debian/<nameOfPackage>
+	make install DESTDIR=/usr/src/packages/BUILD/debian/tmp
+	# --- end custom part for installing
+
+# 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_installdirs
+	dh_install --sourcedir=/usr/src/packages/BUILD/debian/tmp
+#	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
+	LD_LIBRARY_PATH=/opt/zeek/lib/:$LD_LIBRARY_PATH dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
--- zeek-8.2.2.orig/debian/zeek-btest-data.dirs
+++ zeek-8.2.2/debian/zeek-btest-data.dirs
@@ -0,0 +1,4 @@
+opt/zeek/share
+opt/zeek/share/btest
+opt/zeek/share/btest/data
+opt/zeek/share/zeek
--- zeek-8.2.2.orig/debian/zeek-btest-data.install
+++ zeek-8.2.2/debian/zeek-btest-data.install
@@ -0,0 +1,2 @@
+opt/zeek/share/btest/data
+opt/zeek/share/zeek/tests
--- zeek-8.2.2.orig/debian/zeek-btest.dirs
+++ zeek-8.2.2/debian/zeek-btest.dirs
@@ -0,0 +1,5 @@
+opt/zeek/bin
+opt/zeek/lib/zeek/python
+opt/zeek/share
+opt/zeek/share/btest
+opt/zeek/share/btest/scripts
--- zeek-8.2.2.orig/debian/zeek-btest.install
+++ zeek-8.2.2/debian/zeek-btest.install
@@ -0,0 +1,4 @@
+opt/zeek/bin/btest
+opt/zeek/bin/btest-*
+opt/zeek/lib/zeek/python/btest-*
+opt/zeek/share/btest/scripts
--- zeek-8.2.2.orig/debian/zeek-client.dirs
+++ zeek-8.2.2/debian/zeek-client.dirs
@@ -0,0 +1,5 @@
+opt/zeek/share/man/man1
+opt/zeek/bin
+opt/zeek/lib
+opt/zeek/lib/zeek
+opt/zeek/lib/zeek/python
--- zeek-8.2.2.orig/debian/zeek-client.install
+++ zeek-8.2.2/debian/zeek-client.install
@@ -0,0 +1,3 @@
+opt/zeek/share/man/man1/zeek-client.1
+opt/zeek/lib/zeek/python/zeekclient
+opt/zeek/bin/zeek-client
--- zeek-8.2.2.orig/debian/zeek-core-dev.dirs
+++ zeek-8.2.2/debian/zeek-core-dev.dirs
@@ -0,0 +1,5 @@
+opt/zeek/include
+opt/zeek/lib
+opt/zeek/bin
+opt/zeek/share
+opt/zeek/share/zeek
--- zeek-8.2.2.orig/debian/zeek-core-dev.install
+++ zeek-8.2.2/debian/zeek-core-dev.install
@@ -0,0 +1,8 @@
+opt/zeek/include/zeek
+opt/zeek/include/binpac
+opt/zeek/include/paraglob
+opt/zeek/lib/libbinpac.a
+opt/zeek/lib/libparaglob.a
+opt/zeek/share/zeek/cmake
+opt/zeek/bin/bifcl
+opt/zeek/bin/binpac
--- zeek-8.2.2.orig/debian/zeek-core.conffiles
+++ zeek-8.2.2/debian/zeek-core.conffiles
@@ -0,0 +1,2 @@
+/opt/zeek/share/zeek/site/local.zeek
+/opt/zeek/etc/zeek/zeek.conf
--- zeek-8.2.2.orig/debian/zeek-core.dirs
+++ zeek-8.2.2/debian/zeek-core.dirs
@@ -0,0 +1,7 @@
+opt/zeek/bin
+opt/zeek/share/zeek
+opt/zeek/lib
+opt/zeek/lib/zeek
+opt/zeek/lib/zeek/plugins
+opt/zeek/etc
+opt/zeek/etc/zeek
--- zeek-8.2.2.orig/debian/zeek-core.install
+++ zeek-8.2.2/debian/zeek-core.install
@@ -0,0 +1,17 @@
+opt/zeek/bin/zeek
+opt/zeek/bin/zeek-archiver
+opt/zeek/bin/zeek-cut
+opt/zeek/bin/zeek-config
+opt/zeek/bin/adtrace
+opt/zeek/bin/zeek-cluster-layout-generator
+opt/zeek/bin/zeek-systemd-generator
+opt/zeek/bin/rst
+opt/zeek/bin/paraglob-test
+opt/zeek/etc/zeek/zeek.conf
+opt/zeek/share/zeek/base
+opt/zeek/share/zeek/builtin-plugins
+opt/zeek/share/zeek/zeekygen
+opt/zeek/share/zeek/policy
+opt/zeek/share/zeek/site
+opt/zeek/share/zeek/spicy
+opt/zeek/share/zeek/test-all-policy.zeek
--- zeek-8.2.2.orig/debian/zeek-core.postinst
+++ zeek-8.2.2/debian/zeek-core.postinst
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+/usr/bin/getent group zeek >/dev/null || /usr/sbin/groupadd -r zeek
+
+chgrp zeek /opt/zeek/share/zeek/site
+chgrp zeek /opt/zeek/share/zeek/site/local*.zeek
+chmod 2775 /opt/zeek/share/zeek/site
+chmod 0664 /opt/zeek/share/zeek/site/local*.zeek
--- zeek-8.2.2.orig/debian/zeek-spicy-dev.dirs
+++ zeek-8.2.2/debian/zeek-spicy-dev.dirs
@@ -0,0 +1,4 @@
+opt/zeek/include
+opt/zeek/lib
+opt/zeek/bin
+opt/zeek/share
--- zeek-8.2.2.orig/debian/zeek-spicy-dev.install
+++ zeek-8.2.2/debian/zeek-spicy-dev.install
@@ -0,0 +1,16 @@
+opt/zeek/include/hilti
+opt/zeek/include/spicy
+opt/zeek/lib/zeek/spicy
+opt/zeek/lib/libhilti*
+opt/zeek/lib/libspicy*
+opt/zeek/bin/hilti-config
+opt/zeek/bin/hiltic
+opt/zeek/bin/spicy-build
+opt/zeek/bin/spicy-config
+opt/zeek/bin/spicy-driver
+opt/zeek/bin/spicy-dump
+opt/zeek/bin/spicy-precompile-headers
+opt/zeek/bin/spicyc
+opt/zeek/bin/spicyz
+opt/zeek/share/hilti
+opt/zeek/share/spicy
--- zeek-8.2.2.orig/debian/zeek-zkg.conffiles
+++ zeek-8.2.2/debian/zeek-zkg.conffiles
@@ -0,0 +1 @@
+/opt/zeek/etc/zkg/config
--- zeek-8.2.2.orig/debian/zeek-zkg.dirs
+++ zeek-8.2.2/debian/zeek-zkg.dirs
@@ -0,0 +1,11 @@
+opt/zeek/bin
+opt/zeek/share/zeek
+opt/zeek/share/zeek/site
+opt/zeek/share/man/man1
+opt/zeek/etc
+opt/zeek/lib
+opt/zeek/lib/zeek
+opt/zeek/lib/zeek/plugins
+opt/zeek/lib/zeek/python
+opt/zeek/var
+opt/zeek/var/lib
--- zeek-8.2.2.orig/debian/zeek-zkg.install
+++ zeek-8.2.2/debian/zeek-zkg.install
@@ -0,0 +1,5 @@
+opt/zeek/lib/zeek/python/zeekpkg
+opt/zeek/bin/zkg
+opt/zeek/share/man/man1/zkg.1
+opt/zeek/etc/zkg
+opt/zeek/var/lib/zkg
--- zeek-8.2.2.orig/debian/zeek-zkg.postinst
+++ zeek-8.2.2/debian/zeek-zkg.postinst
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+/usr/bin/getent group zeek >/dev/null || /usr/sbin/groupadd -r zeek
+
+#mkdir -p /opt/zeek/lib/zeek/plugins/packages
+#mkdir -p /opt/zeek/share/zeek/site/packages
+
+chgrp zeek /opt/zeek/etc/zkg
+chgrp zeek /opt/zeek/etc/zkg/config
+#chgrp zeek /opt/zeek/lib/zeek/plugins/packages
+#chgrp zeek /opt/zeek/share/zeek/site/packages
+#chgrp zeek /opt/zeek/var/lib/zkg
+chmod 0664 /opt/zeek/etc/zkg/config
+#chmod 2775 /opt/zeek/lib/zeek/plugins/packages
+#chmod 2775 /opt/zeek/share/zeek/site/packages
+#chmod 2775 /opt/zeek/var/lib/zkg
--- zeek-8.2.2.orig/debian/zeekctl.conffiles
+++ zeek-8.2.2/debian/zeekctl.conffiles
@@ -0,0 +1,3 @@
+/opt/zeek/etc/zeekctl.cfg
+/opt/zeek/etc/networks.cfg
+/opt/zeek/etc/node.cfg
--- zeek-8.2.2.orig/debian/zeekctl.dirs
+++ zeek-8.2.2/debian/zeekctl.dirs
@@ -0,0 +1,8 @@
+opt/zeek/bin
+opt/zeek/etc
+opt/zeek/share
+opt/zeek/share/zeek
+opt/zeek/share/zeek/python
+opt/zeek/lib
+opt/zeek/spool
+opt/zeek/logs
--- zeek-8.2.2.orig/debian/zeekctl.install
+++ zeek-8.2.2/debian/zeekctl.install
@@ -0,0 +1,14 @@
+opt/zeek/bin/zeekctl
+opt/zeek/bin/capstats
+opt/zeek/bin/trace-summary
+opt/zeek/etc/zeekctl.cfg
+opt/zeek/etc/networks.cfg
+opt/zeek/etc/node.cfg
+opt/zeek/share/zeekctl
+opt/zeek/share/zeek/zeekctl
+opt/zeek/lib/zeek/python/zeekctl
+opt/zeek/lib/zeek/python/broker
+opt/zeek/lib/zeek/python/SubnetTree.py
+opt/zeek/lib/zeek/python/_SubnetTree.so
+opt/zeek/spool
+opt/zeek/logs
--- zeek-8.2.2.orig/debian/zeekctl.postinst
+++ zeek-8.2.2/debian/zeekctl.postinst
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+/usr/bin/getent group zeek >/dev/null || /usr/sbin/groupadd -r zeek
+
+chgrp zeek /opt/zeek/spool /opt/zeek/spool/tmp /opt/zeek/logs
+chmod 2770 /opt/zeek/spool /opt/zeek/spool/tmp /opt/zeek/logs
+chgrp zeek /opt/zeek/etc
+chmod 2775 /opt/zeek/etc
+chgrp zeek /opt/zeek/etc/zeekctl.cfg /opt/zeek/etc/networks.cfg /opt/zeek/etc/node.cfg
+chmod 0664 /opt/zeek/etc/zeekctl.cfg /opt/zeek/etc/networks.cfg /opt/zeek/etc/node.cfg
