mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 06:59:33 +00:00
* First sketch of fuzzing * Add m4 script The script is used in the fuzzing build * Add stub sources in the makefile * [Fuzz] Add RedisStub * Add gitignore for fuzz dir * Remove definition of non-implemented method * [Fuzz] Refactoring code * [Fuzz] Separate the protobuf support in the makefile * Clean fuzzing related object files * [Fuzz] Fix makefile * Change gitignore * [Fuzz] Separate headers * [Fuzz] Add README.md * [Fuzz] Change make target * [Fuzz] Update README.md * Add compatibilty with autoconf < 2.71 * Optionally disable hiredis integration * Include hiredis only for production build * [Fuzz] Disable period activities * Remove unused dependencies for librrd * Optionally use static linking for zmq library * Add debug output regarding the linking of libzmq * [Fuzz] Do not run on empty input * Optionally use static linking for libjson-c * Optionally use static linking for libmaxminddb * Make mysqlclient dependency as optional * Change gitignore * [Fuzz] Add corpus for fuzz_dissect_packet * [Fuzz] Refactor fuzz_dissect_packet * Change gitignore * [Fuzz] Use correct naming for corpus * [Fuzz] Add dictionary * [Fuzz] Fix declaration of LLVMFuzzerInitialize * [Fuzz] Refactor onefile * [Fuzz] Fix the initialization memory leaks * [Fuzz] Fix invocation of LLVMFuzzerInitialize * Remove double githooks folder * [Fuzz] Set interface pcap_data_link * Change gitignore * Use pkg-config for detecting protobuf libraries * Add license * Improve error message
86 lines
2.1 KiB
Bash
Executable file
86 lines
2.1 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
|
|
AUTOCONF=$(command -v autoconf)
|
|
AUTOMAKE=$(command -v automake)
|
|
LIBTOOL=$(command -v libtool)
|
|
LIBTOOLIZE=$(command -v libtoolize)
|
|
AUTORECONF=$(command -v autoreconf)
|
|
PKG_CONFIG=$(command -v pkg-config)
|
|
|
|
if test -z $AUTOCONF; then
|
|
echo "autoconf is missing: please install it and try again"
|
|
exit
|
|
fi
|
|
|
|
if test -z $AUTOMAKE; then
|
|
echo "automake is missing: please install it and try again"
|
|
exit
|
|
fi
|
|
|
|
if test -z $LIBTOOL && test -z $LIBTOOLIZE ; then
|
|
echo "libtool and libtoolize is missing: please install it and try again"
|
|
exit
|
|
fi
|
|
|
|
if test -z $AUTORECONF; then
|
|
echo "autoreconf is missing: please install it and try again"
|
|
exit
|
|
fi
|
|
|
|
if test -z $PKG_CONFIG; then
|
|
echo "pkg-config is missing: please install it (apt-get install pkg-config) and try again"
|
|
exit
|
|
fi
|
|
|
|
##########################################
|
|
|
|
TODAY=`date +%y%m%d`
|
|
MAJOR_RELEASE="5"
|
|
MINOR_RELEASE="7"
|
|
SHORT_VERSION="$MAJOR_RELEASE.$MINOR_RELEASE"
|
|
VERSION="$SHORT_VERSION.$TODAY"
|
|
|
|
if test -d ".git"; then
|
|
GIT_TAG=`git rev-parse HEAD`
|
|
GIT_DATE=`date +%Y%m%d`
|
|
GIT_RELEASE="$GIT_TAG:$GIT_DATE"
|
|
GIT_BRANCH=`git rev-parse --abbrev-ref HEAD | sed "s/heads\///g"`
|
|
else
|
|
GIT_RELEASE="$VERSION"
|
|
GIT_DATE=`date`
|
|
GIT_BRANCH=""
|
|
fi
|
|
|
|
if test -d "pro"; then
|
|
PRO_GIT_RELEASE=`cd pro; git log --pretty=oneline | wc -l`
|
|
PRO_GIT_RELEASE=${PRO_GIT_RELEASE//[[:blank:]]/}
|
|
PRO_GIT_DATE=`cd pro; git log --pretty=medium -1 | grep "^Date:" | cut -d " " -f 4-`
|
|
else
|
|
PRO_GIT_RELEASE=""
|
|
PRO_GIT_DATE=""
|
|
fi
|
|
|
|
cat configure.ac.in | sed \
|
|
-e "s/@VERSION@/$VERSION/g" \
|
|
-e "s/@SHORT_VERSION@/$SHORT_VERSION/g" \
|
|
-e "s/@GIT_TAG@/$GIT_TAG/g" \
|
|
-e "s/@GIT_DATE@/$GIT_DATE/g" \
|
|
-e "s/@TODAY@/$TODAY/g" \
|
|
-e "s/@GIT_RELEASE@/$GIT_RELEASE/g" \
|
|
-e "s/@GIT_BRANCH@/$GIT_BRANCH/g" \
|
|
-e "s/@PRO_GIT_RELEASE@/$PRO_GIT_RELEASE/g" \
|
|
-e "s/@PRO_GIT_DATE@/$PRO_GIT_DATE/g" \
|
|
> configure.ac
|
|
|
|
rm -f config.h config.h.in *~ #*
|
|
|
|
git submodule init
|
|
git submodule update --remote
|
|
|
|
# git submodule update --init --recursive
|
|
|
|
echo "Wait please..."
|
|
autoreconf -if
|
|
echo ""
|
|
echo "Now run ./configure"
|