--- zeek-lts-8.0.7.orig/debian/changelog
+++ zeek-lts-8.0.7/debian/changelog
@@ -0,0 +1,5 @@
+zeek-lts (8.0.7-0) stable; urgency=low
+
+  * Zeek builds
+
+ -- Johanna Amann <build@0xxon.net>  Wed, 28 Jan 2015 16:32:06 -0400
--- zeek-lts-8.0.7.orig/debian/compat
+++ zeek-lts-8.0.7/debian/compat
@@ -0,0 +1 @@
+9
--- zeek-lts-8.0.7.orig/debian/control
+++ zeek-lts-8.0.7/debian/control
@@ -0,0 +1,72 @@
+Source: zeek-lts
+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
+Conflicts: zeek, libbroker-dev, zeek-libcaf-dev, zeekctl, zeek-core, zeek-core-dev, zeek-zkg, zeek-btest
+
+Package: libbroker-lts-dev
+Section: libs
+Architecture: any
+Depends: ${misc:Depends}
+Description: Development files for Zeek's communication library
+Conflicts: zeek, libbroker-dev, zeek-libcaf-dev, zeekctl, zeek-core, zeek-core-dev, zeek-zkg, zeek-btest
+
+Package: zeekctl-lts
+Section: Network
+Architecture: any
+Depends: zeek-lts-core (= ${binary:Version}), python3, ${misc:Depends}
+Recommends: mail-transport-agent
+Description: Zeek's interactive shell for operating Zeek installations.
+Conflicts: zeek, libbroker-dev, zeek-libcaf-dev, zeekctl, zeek-core, zeek-core-dev, zeek-zkg, zeek-btest
+
+Package: zeek-lts-core
+Architecture: any
+Depends: libpcap0.8, libmaxminddb0, libzmq5, ${shlibs:Depends}, ${misc:Depends}
+Description: Zeek is a powerful framework for network analysis and security monitoring.
+Conflicts: zeek, libbroker-dev, zeek-libcaf-dev, zeekctl, zeek-core, zeek-core-dev, zeek-zkg, zeek-btest
+
+Package: zeek-lts-core-dev
+Architecture: any
+Depends: libbroker-lts-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.
+Conflicts: zeek, libbroker-dev, zeek-libcaf-dev, zeekctl, zeek-core, zeek-core-dev, zeek-zkg, zeek-btest
+
+Package: zeek-lts-spicy-dev
+Architecture: any
+Depends: libpcap-dev, libssl-dev, zlib1g-dev, ${misc:Depends}
+Description: Spicy development files.
+Conflicts: zeek, libbroker-dev, zeek-libcaf-dev, zeekctl, zeek-core, zeek-core-dev, zeek-zkg, zeek-btest
+
+Package: zeek-lts-zkg
+Architecture: all
+Multi-Arch: foreign
+Depends: python3, python3-semantic-version, python3-git, zeek-lts-btest (= ${binary:Version}), zeek-lts-btest-data (= ${binary:Version}), zeek-lts-core (= ${binary:Version}), zeek-lts-core-dev (= ${binary:Version}), zeek-lts-spicy-dev (= ${binary:Version}), ${misc:Depends}
+Description: Zkg is Zeek's package manager.
+Conflicts: zeek, libbroker-dev, zeek-libcaf-dev, zeekctl, zeek-core, zeek-core-dev, zeek-zkg, zeek-btest
+
+Package: zeek-lts-btest
+Architecture: all
+Multi-Arch: foreign
+Depends: python3
+Description: The BTest test framework
+Conflicts: zeek, libbroker-dev, zeek-libcaf-dev, zeekctl, zeek-core, zeek-core-dev, zeek-zkg, zeek-btest
+
+Package: zeek-lts-btest-data
+Architecture: all
+Multi-Arch: foreign
+Description: Test data for use by the BTest test framework
+Conflicts: zeek, libbroker-dev, zeek-libcaf-dev, zeekctl, zeek-core, zeek-core-dev, zeek-zkg, zeek-btest
+
+Package: zeek-lts-client
+Architecture: all
+Multi-Arch: foreign
+Description: The Zeek Cluster Management Client
+Depends: zeek-lts-core (= ${binary:Version})
+Conflicts: zeek, libbroker-dev, zeek-libcaf-dev, zeekctl, zeek-core, zeek-core-dev, zeek-zkg, zeek-btest
+
+Package: zeek-lts
+Architecture: any
+Depends: zeek-lts-core (= ${binary:Version}), zeekctl-lts (= ${binary:Version}), zeek-lts-core-dev (= ${binary:Version}), zeek-lts-spicy-dev (= ${binary:Version}), zeek-lts-zkg (= ${binary:Version}), zeek-lts-client (= ${binary:Version}), ${misc:Depends}
+Description: Zeek is a powerful framework for network analysis and security monitoring.
+Conflicts: zeek, libbroker-dev, zeek-libcaf-dev, zeekctl, zeek-core, zeek-core-dev, zeek-zkg, zeek-btest
--- zeek-lts-8.0.7.orig/debian/libbroker-lts-dev.dirs
+++ zeek-lts-8.0.7/debian/libbroker-lts-dev.dirs
@@ -0,0 +1,4 @@
+opt/zeek/include
+opt/zeek/lib
+opt/zeek/lib/cmake
+opt/zeek/lib/cmake/Broker
--- zeek-lts-8.0.7.orig/debian/libbroker-lts-dev.install
+++ zeek-lts-8.0.7/debian/libbroker-lts-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-lts-8.0.7.orig/debian/rules
+++ zeek-lts-8.0.7/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),Debian)
+ifeq ($(CN),stretch)
+DEBIAN_9_BUILD := 1
+endif
+endif
+
+
+build: build-arch build-indep
+build-arch: build-stamp
+build-indep: build-stamp
+ifdef DEBIAN_9_BUILD
+build-stamp:
+	dh_testdir
+
+	# Add here commands to compile the package.
+	CC=/usr/bin/clang-7 CXX=/usr/bin/clang++-7 CXXFLAGS=-stdlib=libc++ ./configure --prefix=/opt/zeek --libdir=/opt/zeek/lib --binary-package --enable-static-broker --enable-static-binpac --disable-broker-tests
+	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-lts-8.0.7.orig/debian/zeek-lts-btest-data.dirs
+++ zeek-lts-8.0.7/debian/zeek-lts-btest-data.dirs
@@ -0,0 +1,4 @@
+opt/zeek/share
+opt/zeek/share/btest
+opt/zeek/share/btest/data
+opt/zeek/share/zeek
--- zeek-lts-8.0.7.orig/debian/zeek-lts-btest-data.install
+++ zeek-lts-8.0.7/debian/zeek-lts-btest-data.install
@@ -0,0 +1,2 @@
+opt/zeek/share/btest/data
+opt/zeek/share/zeek/tests
--- zeek-lts-8.0.7.orig/debian/zeek-lts-btest.dirs
+++ zeek-lts-8.0.7/debian/zeek-lts-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-lts-8.0.7.orig/debian/zeek-lts-btest.install
+++ zeek-lts-8.0.7/debian/zeek-lts-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-lts-8.0.7.orig/debian/zeek-lts-client.dirs
+++ zeek-lts-8.0.7/debian/zeek-lts-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-lts-8.0.7.orig/debian/zeek-lts-client.install
+++ zeek-lts-8.0.7/debian/zeek-lts-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-lts-8.0.7.orig/debian/zeek-lts-core-dev.dirs
+++ zeek-lts-8.0.7/debian/zeek-lts-core-dev.dirs
@@ -0,0 +1,5 @@
+opt/zeek/include
+opt/zeek/lib
+opt/zeek/bin
+opt/zeek/share
+opt/zeek/share/zeek
--- zeek-lts-8.0.7.orig/debian/zeek-lts-core-dev.install
+++ zeek-lts-8.0.7/debian/zeek-lts-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-lts-8.0.7.orig/debian/zeek-lts-core.conffiles
+++ zeek-lts-8.0.7/debian/zeek-lts-core.conffiles
@@ -0,0 +1 @@
+/opt/zeek/share/zeek/site/local.zeek
--- zeek-lts-8.0.7.orig/debian/zeek-lts-core.dirs
+++ zeek-lts-8.0.7/debian/zeek-lts-core.dirs
@@ -0,0 +1,5 @@
+opt/zeek/bin
+opt/zeek/share/zeek
+opt/zeek/lib
+opt/zeek/lib/zeek
+opt/zeek/lib/zeek/plugins
--- zeek-lts-8.0.7.orig/debian/zeek-lts-core.install
+++ zeek-lts-8.0.7/debian/zeek-lts-core.install
@@ -0,0 +1,15 @@
+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/rst
+opt/zeek/bin/gen-zam
+opt/zeek/bin/paraglob-test
+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-lts-8.0.7.orig/debian/zeek-lts-core.postinst
+++ zeek-lts-8.0.7/debian/zeek-lts-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-lts-8.0.7.orig/debian/zeek-lts-spicy-dev.dirs
+++ zeek-lts-8.0.7/debian/zeek-lts-spicy-dev.dirs
@@ -0,0 +1,4 @@
+opt/zeek/include
+opt/zeek/lib
+opt/zeek/bin
+opt/zeek/share
--- zeek-lts-8.0.7.orig/debian/zeek-lts-spicy-dev.install
+++ zeek-lts-8.0.7/debian/zeek-lts-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-lts-8.0.7.orig/debian/zeek-lts-zkg.conffiles
+++ zeek-lts-8.0.7/debian/zeek-lts-zkg.conffiles
@@ -0,0 +1 @@
+/opt/zeek/etc/zkg/config
--- zeek-lts-8.0.7.orig/debian/zeek-lts-zkg.dirs
+++ zeek-lts-8.0.7/debian/zeek-lts-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-lts-8.0.7.orig/debian/zeek-lts-zkg.install
+++ zeek-lts-8.0.7/debian/zeek-lts-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-lts-8.0.7.orig/debian/zeek-lts-zkg.postinst
+++ zeek-lts-8.0.7/debian/zeek-lts-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-lts-8.0.7.orig/debian/zeekctl-lts.conffiles
+++ zeek-lts-8.0.7/debian/zeekctl-lts.conffiles
@@ -0,0 +1,3 @@
+/opt/zeek/etc/zeekctl.cfg
+/opt/zeek/etc/networks.cfg
+/opt/zeek/etc/node.cfg
--- zeek-lts-8.0.7.orig/debian/zeekctl-lts.dirs
+++ zeek-lts-8.0.7/debian/zeekctl-lts.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-lts-8.0.7.orig/debian/zeekctl-lts.install
+++ zeek-lts-8.0.7/debian/zeekctl-lts.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-lts-8.0.7.orig/debian/zeekctl-lts.postinst
+++ zeek-lts-8.0.7/debian/zeekctl-lts.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
