--- zeek-nightly-9.0.0.orig/debian/changelog
+++ zeek-nightly-9.0.0/debian/changelog
@@ -0,0 +1,5 @@
+zeek-nightly (9.0.0-154) stable; urgency=low
+
+  * Zeek builds
+
+ -- Johanna Amann <build@0xxon.net>  Wed, 28 Jan 2015 16:32:06 -0400
--- zeek-nightly-9.0.0.orig/debian/compat
+++ zeek-nightly-9.0.0/debian/compat
@@ -0,0 +1 @@
+9
--- zeek-nightly-9.0.0.orig/debian/control
+++ zeek-nightly-9.0.0/debian/control
@@ -0,0 +1,61 @@
+Source: zeek-nightly
+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-nightly-dev
+Section: libs
+Architecture: any
+Depends: ${misc:Depends}
+Description: Development files for Zeek's communication library
+
+Package: zeekctl-nightly
+Section: Network
+Architecture: any
+Depends: zeek-nightly-core (= ${binary:Version}), python3, ${misc:Depends}
+Recommends: mail-transport-agent
+Description: Zeek's interactive shell for operating Zeek installations.
+
+Package: zeek-nightly-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-nightly-core-dev
+Architecture: any
+Depends: libbroker-nightly-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-nightly-spicy-dev
+Architecture: any
+Depends: libpcap-dev, libssl-dev, zlib1g-dev, ${misc:Depends}
+Description: Spicy development files.
+
+Package: zeek-nightly-zkg
+Architecture: all
+Multi-Arch: foreign
+Depends: python3, python3-semantic-version, python3-git, zeek-nightly-btest (= ${binary:Version}), zeek-nightly-btest-data (= ${binary:Version}), zeek-nightly-core (= ${binary:Version}), zeek-nightly-core-dev (= ${binary:Version}), zeek-nightly-spicy-dev (= ${binary:Version}), ${misc:Depends}
+Description: Zkg is Zeek's package manager.
+
+Package: zeek-nightly-btest
+Architecture: all
+Multi-Arch: foreign
+Depends: python3
+Description: The BTest test framework
+
+Package: zeek-nightly-btest-data
+Architecture: all
+Multi-Arch: foreign
+Description: Test data for use by the BTest test framework
+
+Package: zeek-nightly-client
+Architecture: all
+Multi-Arch: foreign
+Description: The Zeek Cluster Management Client
+Depends: zeek-nightly-core (= ${binary:Version})
+
+Package: zeek-nightly
+Architecture: any
+Depends: zeek-nightly-core (= ${binary:Version}), zeekctl-nightly (= ${binary:Version}), zeek-nightly-core-dev (= ${binary:Version}), zeek-nightly-spicy-dev (= ${binary:Version}), zeek-nightly-zkg (= ${binary:Version}), zeek-nightly-client (= ${binary:Version}), ${misc:Depends}
+Description: Zeek is a powerful framework for network analysis and security monitoring.
--- zeek-nightly-9.0.0.orig/debian/libbroker-nightly-dev.dirs
+++ zeek-nightly-9.0.0/debian/libbroker-nightly-dev.dirs
@@ -0,0 +1,4 @@
+opt/zeek-nightly/include
+opt/zeek-nightly/lib
+opt/zeek-nightly/lib/cmake
+opt/zeek-nightly/lib/cmake/Broker
--- zeek-nightly-9.0.0.orig/debian/libbroker-nightly-dev.install
+++ zeek-nightly-9.0.0/debian/libbroker-nightly-dev.install
@@ -0,0 +1,6 @@
+opt/zeek-nightly/include/broker
+opt/zeek-nightly/lib/libbroker.a
+opt/zeek-nightly/lib/cmake/Broker/BrokerConfig.cmake
+opt/zeek-nightly/lib/cmake/Broker/BrokerConfigVersion.cmake
+opt/zeek-nightly/lib/cmake/Broker/BrokerTargets-release.cmake
+opt/zeek-nightly/lib/cmake/Broker/BrokerTargets.cmake
--- zeek-nightly-9.0.0.orig/debian/rules
+++ zeek-nightly-9.0.0/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-nightly --libdir=/opt/zeek-nightly/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-nightly --libdir=/opt/zeek-nightly/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-nightly/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-nightly-9.0.0.orig/debian/zeek-nightly-btest-data.dirs
+++ zeek-nightly-9.0.0/debian/zeek-nightly-btest-data.dirs
@@ -0,0 +1,4 @@
+opt/zeek-nightly/share
+opt/zeek-nightly/share/btest
+opt/zeek-nightly/share/btest/data
+opt/zeek-nightly/share/zeek
--- zeek-nightly-9.0.0.orig/debian/zeek-nightly-btest-data.install
+++ zeek-nightly-9.0.0/debian/zeek-nightly-btest-data.install
@@ -0,0 +1,2 @@
+opt/zeek-nightly/share/btest/data
+opt/zeek-nightly/share/zeek/tests
--- zeek-nightly-9.0.0.orig/debian/zeek-nightly-btest.dirs
+++ zeek-nightly-9.0.0/debian/zeek-nightly-btest.dirs
@@ -0,0 +1,5 @@
+opt/zeek-nightly/bin
+opt/zeek-nightly/lib/zeek/python
+opt/zeek-nightly/share
+opt/zeek-nightly/share/btest
+opt/zeek-nightly/share/btest/scripts
--- zeek-nightly-9.0.0.orig/debian/zeek-nightly-btest.install
+++ zeek-nightly-9.0.0/debian/zeek-nightly-btest.install
@@ -0,0 +1,4 @@
+opt/zeek-nightly/bin/btest
+opt/zeek-nightly/bin/btest-*
+opt/zeek-nightly/lib/zeek/python/btest-*
+opt/zeek-nightly/share/btest/scripts
--- zeek-nightly-9.0.0.orig/debian/zeek-nightly-client.dirs
+++ zeek-nightly-9.0.0/debian/zeek-nightly-client.dirs
@@ -0,0 +1,5 @@
+opt/zeek-nightly/share/man/man1
+opt/zeek-nightly/bin
+opt/zeek-nightly/lib
+opt/zeek-nightly/lib/zeek
+opt/zeek-nightly/lib/zeek/python
--- zeek-nightly-9.0.0.orig/debian/zeek-nightly-client.install
+++ zeek-nightly-9.0.0/debian/zeek-nightly-client.install
@@ -0,0 +1,3 @@
+opt/zeek-nightly/share/man/man1/zeek-client.1
+opt/zeek-nightly/lib/zeek/python/zeekclient
+opt/zeek-nightly/bin/zeek-client
--- zeek-nightly-9.0.0.orig/debian/zeek-nightly-core-dev.dirs
+++ zeek-nightly-9.0.0/debian/zeek-nightly-core-dev.dirs
@@ -0,0 +1,5 @@
+opt/zeek-nightly/include
+opt/zeek-nightly/lib
+opt/zeek-nightly/bin
+opt/zeek-nightly/share
+opt/zeek-nightly/share/zeek
--- zeek-nightly-9.0.0.orig/debian/zeek-nightly-core-dev.install
+++ zeek-nightly-9.0.0/debian/zeek-nightly-core-dev.install
@@ -0,0 +1,8 @@
+opt/zeek-nightly/include/zeek
+opt/zeek-nightly/include/binpac
+opt/zeek-nightly/include/paraglob
+opt/zeek-nightly/lib/libbinpac.a
+opt/zeek-nightly/lib/libparaglob.a
+opt/zeek-nightly/share/zeek/cmake
+opt/zeek-nightly/bin/bifcl
+opt/zeek-nightly/bin/binpac
--- zeek-nightly-9.0.0.orig/debian/zeek-nightly-core.conffiles
+++ zeek-nightly-9.0.0/debian/zeek-nightly-core.conffiles
@@ -0,0 +1,2 @@
+/opt/zeek-nightly/share/zeek/site/local.zeek
+/opt/zeek-nightly/etc/zeek/zeek.conf
--- zeek-nightly-9.0.0.orig/debian/zeek-nightly-core.dirs
+++ zeek-nightly-9.0.0/debian/zeek-nightly-core.dirs
@@ -0,0 +1,7 @@
+opt/zeek-nightly/bin
+opt/zeek-nightly/share/zeek
+opt/zeek-nightly/lib
+opt/zeek-nightly/lib/zeek
+opt/zeek-nightly/lib/zeek/plugins
+opt/zeek-nightly/etc
+opt/zeek-nightly/etc/zeek
--- zeek-nightly-9.0.0.orig/debian/zeek-nightly-core.install
+++ zeek-nightly-9.0.0/debian/zeek-nightly-core.install
@@ -0,0 +1,17 @@
+opt/zeek-nightly/bin/zeek
+opt/zeek-nightly/bin/zeek-archiver
+opt/zeek-nightly/bin/zeek-cut
+opt/zeek-nightly/bin/zeek-config
+opt/zeek-nightly/bin/adtrace
+opt/zeek-nightly/bin/zeek-cluster-layout-generator
+opt/zeek-nightly/bin/zeek-systemd-generator
+opt/zeek-nightly/bin/rst
+opt/zeek-nightly/bin/paraglob-test
+opt/zeek-nightly/etc/zeek/zeek.conf
+opt/zeek-nightly/share/zeek/base
+opt/zeek-nightly/share/zeek/builtin-plugins
+opt/zeek-nightly/share/zeek/zeekygen
+opt/zeek-nightly/share/zeek/policy
+opt/zeek-nightly/share/zeek/site
+opt/zeek-nightly/share/zeek/spicy
+opt/zeek-nightly/share/zeek/test-all-policy.zeek
--- zeek-nightly-9.0.0.orig/debian/zeek-nightly-core.postinst
+++ zeek-nightly-9.0.0/debian/zeek-nightly-core.postinst
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+/usr/bin/getent group zeek >/dev/null || /usr/sbin/groupadd -r zeek
+
+chgrp zeek /opt/zeek-nightly/share/zeek/site
+chgrp zeek /opt/zeek-nightly/share/zeek/site/local*.zeek
+chmod 2775 /opt/zeek-nightly/share/zeek/site
+chmod 0664 /opt/zeek-nightly/share/zeek/site/local*.zeek
--- zeek-nightly-9.0.0.orig/debian/zeek-nightly-spicy-dev.dirs
+++ zeek-nightly-9.0.0/debian/zeek-nightly-spicy-dev.dirs
@@ -0,0 +1,4 @@
+opt/zeek-nightly/include
+opt/zeek-nightly/lib
+opt/zeek-nightly/bin
+opt/zeek-nightly/share
--- zeek-nightly-9.0.0.orig/debian/zeek-nightly-spicy-dev.install
+++ zeek-nightly-9.0.0/debian/zeek-nightly-spicy-dev.install
@@ -0,0 +1,16 @@
+opt/zeek-nightly/include/hilti
+opt/zeek-nightly/include/spicy
+opt/zeek-nightly/lib/zeek/spicy
+opt/zeek-nightly/lib/libhilti*
+opt/zeek-nightly/lib/libspicy*
+opt/zeek-nightly/bin/hilti-config
+opt/zeek-nightly/bin/hiltic
+opt/zeek-nightly/bin/spicy-build
+opt/zeek-nightly/bin/spicy-config
+opt/zeek-nightly/bin/spicy-driver
+opt/zeek-nightly/bin/spicy-dump
+opt/zeek-nightly/bin/spicy-precompile-headers
+opt/zeek-nightly/bin/spicyc
+opt/zeek-nightly/bin/spicyz
+opt/zeek-nightly/share/hilti
+opt/zeek-nightly/share/spicy
--- zeek-nightly-9.0.0.orig/debian/zeek-nightly-zkg.conffiles
+++ zeek-nightly-9.0.0/debian/zeek-nightly-zkg.conffiles
@@ -0,0 +1 @@
+/opt/zeek-nightly/etc/zkg/config
--- zeek-nightly-9.0.0.orig/debian/zeek-nightly-zkg.dirs
+++ zeek-nightly-9.0.0/debian/zeek-nightly-zkg.dirs
@@ -0,0 +1,11 @@
+opt/zeek-nightly/bin
+opt/zeek-nightly/share/zeek
+opt/zeek-nightly/share/zeek/site
+opt/zeek-nightly/share/man/man1
+opt/zeek-nightly/etc
+opt/zeek-nightly/lib
+opt/zeek-nightly/lib/zeek
+opt/zeek-nightly/lib/zeek/plugins
+opt/zeek-nightly/lib/zeek/python
+opt/zeek-nightly/var
+opt/zeek-nightly/var/lib
--- zeek-nightly-9.0.0.orig/debian/zeek-nightly-zkg.install
+++ zeek-nightly-9.0.0/debian/zeek-nightly-zkg.install
@@ -0,0 +1,5 @@
+opt/zeek-nightly/lib/zeek/python/zeekpkg
+opt/zeek-nightly/bin/zkg
+opt/zeek-nightly/share/man/man1/zkg.1
+opt/zeek-nightly/etc/zkg
+opt/zeek-nightly/var/lib/zkg
--- zeek-nightly-9.0.0.orig/debian/zeek-nightly-zkg.postinst
+++ zeek-nightly-9.0.0/debian/zeek-nightly-zkg.postinst
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+/usr/bin/getent group zeek >/dev/null || /usr/sbin/groupadd -r zeek
+
+#mkdir -p /opt/zeek-nightly/lib/zeek/plugins/packages
+#mkdir -p /opt/zeek-nightly/share/zeek/site/packages
+
+chgrp zeek /opt/zeek-nightly/etc/zkg
+chgrp zeek /opt/zeek-nightly/etc/zkg/config
+#chgrp zeek /opt/zeek-nightly/lib/zeek/plugins/packages
+#chgrp zeek /opt/zeek-nightly/share/zeek/site/packages
+#chgrp zeek /opt/zeek-nightly/var/lib/zkg
+chmod 0664 /opt/zeek-nightly/etc/zkg/config
+#chmod 2775 /opt/zeek-nightly/lib/zeek/plugins/packages
+#chmod 2775 /opt/zeek-nightly/share/zeek/site/packages
+#chmod 2775 /opt/zeek-nightly/var/lib/zkg
--- zeek-nightly-9.0.0.orig/debian/zeekctl-nightly.conffiles
+++ zeek-nightly-9.0.0/debian/zeekctl-nightly.conffiles
@@ -0,0 +1,3 @@
+/opt/zeek-nightly/etc/zeekctl.cfg
+/opt/zeek-nightly/etc/networks.cfg
+/opt/zeek-nightly/etc/node.cfg
--- zeek-nightly-9.0.0.orig/debian/zeekctl-nightly.dirs
+++ zeek-nightly-9.0.0/debian/zeekctl-nightly.dirs
@@ -0,0 +1,8 @@
+opt/zeek-nightly/bin
+opt/zeek-nightly/etc
+opt/zeek-nightly/share
+opt/zeek-nightly/share/zeek
+opt/zeek-nightly/share/zeek/python
+opt/zeek-nightly/lib
+opt/zeek-nightly/spool
+opt/zeek-nightly/logs
--- zeek-nightly-9.0.0.orig/debian/zeekctl-nightly.install
+++ zeek-nightly-9.0.0/debian/zeekctl-nightly.install
@@ -0,0 +1,14 @@
+opt/zeek-nightly/bin/zeekctl
+opt/zeek-nightly/bin/capstats
+opt/zeek-nightly/bin/trace-summary
+opt/zeek-nightly/etc/zeekctl.cfg
+opt/zeek-nightly/etc/networks.cfg
+opt/zeek-nightly/etc/node.cfg
+opt/zeek-nightly/share/zeekctl
+opt/zeek-nightly/share/zeek/zeekctl
+opt/zeek-nightly/lib/zeek/python/zeekctl
+opt/zeek-nightly/lib/zeek/python/broker
+opt/zeek-nightly/lib/zeek/python/SubnetTree.py
+opt/zeek-nightly/lib/zeek/python/_SubnetTree.so
+opt/zeek-nightly/spool
+opt/zeek-nightly/logs
--- zeek-nightly-9.0.0.orig/debian/zeekctl-nightly.postinst
+++ zeek-nightly-9.0.0/debian/zeekctl-nightly.postinst
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+/usr/bin/getent group zeek >/dev/null || /usr/sbin/groupadd -r zeek
+
+chgrp zeek /opt/zeek-nightly/spool /opt/zeek-nightly/spool/tmp /opt/zeek-nightly/logs
+chmod 2770 /opt/zeek-nightly/spool /opt/zeek-nightly/spool/tmp /opt/zeek-nightly/logs
+chgrp zeek /opt/zeek-nightly/etc
+chmod 2775 /opt/zeek-nightly/etc
+chgrp zeek /opt/zeek-nightly/etc/zeekctl.cfg /opt/zeek-nightly/etc/networks.cfg /opt/zeek-nightly/etc/node.cfg
+chmod 0664 /opt/zeek-nightly/etc/zeekctl.cfg /opt/zeek-nightly/etc/networks.cfg /opt/zeek-nightly/etc/node.cfg
