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)
40 lines
1,001 B
Bash
Executable file
40 lines
1,001 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# This script generates binary RPM packages.
|
|
# They can be found in ../build/ after running.
|
|
|
|
./check-cmake || { exit 1; }
|
|
|
|
# The RPM CPack generator depends on `rpmbuild` to create packages
|
|
type rpmbuild > /dev/null 2>&1 || {
|
|
echo "\
|
|
Creating RPM packages requires the "rpmbuild" command, usually provided by
|
|
the 'rpm-build' package, please install it first.
|
|
" >&2;
|
|
exit 1;
|
|
}
|
|
|
|
prefix=/opt/bro
|
|
|
|
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*.rpm ../../../build/ )
|
|
cd ../..
|
|
|
|
# Broctl
|
|
cd aux/broctl
|
|
./configure --prefix=${prefix} --binary-package
|
|
( cd build && make package && mv Broctl*.rpm ../../../build/ )
|
|
cd ../..
|