mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

- Move binary packaging scripts out of source root into pkg/ subdir - A consistent CMake version (2.8.4) is now enforced for binary packaging - Added a 'bindist' target to top Makefile as a convenience - The 'dist' target has been rewritten to depend on standard system command/utils rather than CMake and the full dependency chain of Bro, addressing #398 (but the CMake 'package_source' target is still available in the generated build/Makefile and can be used if desired)
47 lines
1.3 KiB
Bash
Executable file
47 lines
1.3 KiB
Bash
Executable file
#!/bin/sh
|
|
|
|
# This script generates binary DEB packages.
|
|
# They can be found in ../build/ after running.
|
|
|
|
./check-cmake || { exit 1; }
|
|
|
|
# The DEB CPack generator depends on `dpkg-shlibdeps` to automatically
|
|
# determine what dependencies to set for the packages
|
|
type dpkg-shlibdeps > /dev/null 2>&1 || {
|
|
echo "\
|
|
Creating DEB packages requires the "dpkg-shlibs" command, usually provided by
|
|
the 'dpkg-dev' package, please install it first.
|
|
" >&2;
|
|
exit 1;
|
|
}
|
|
|
|
prefix=/opt/bro
|
|
|
|
# During the packaging process, `dpkg-shlibs` will fail if used on a library
|
|
# that links to other internal/project libraries unless an RPATH is used or
|
|
# we set LD_LIBRARY_PATH such that it can find the internal/project library
|
|
# in the temporary packaging tree.
|
|
export LD_LIBRARY_PATH=./${prefix}/lib
|
|
|
|
cd ..
|
|
|
|
# Minimum Bro
|
|
./configure --prefix=${prefix} --disable-broccoli --disable-broctl \
|
|
--pkg-name-prefix=Bro --binary-package
|
|
( cd build && make package )
|
|
|
|
# Full Bro package
|
|
./configure --prefix=${prefix} --pkg-name-prefix=Bro-all --binary-package
|
|
( cd build && make package )
|
|
|
|
# Broccoli
|
|
cd aux/broccoli
|
|
./configure --prefix=${prefix} --binary-package
|
|
( cd build && make package && mv Broccoli*.deb ../../../build/ )
|
|
cd ../..
|
|
|
|
# Broctl
|
|
cd aux/broctl
|
|
./configure --prefix=${prefix} --binary-package
|
|
( cd build && make package && mv Broctl*.deb ../../../build/ )
|
|
cd ../..
|