aboutsummaryrefslogtreecommitdiffstats
path: root/build.sh
diff options
context:
space:
mode:
authorAshlee Young <ashlee@wildernessvoice.com>2015-12-01 05:49:27 -0800
committerAshlee Young <ashlee@wildernessvoice.com>2015-12-01 05:49:27 -0800
commite63291850fd0795c5700e25e67e5dee89ba54c5f (patch)
tree9707289536ad95bb739c9856761ad43275e07d8c /build.sh
parent671823e12bc13be9a8b87a5d7de33da1bb7a44e8 (diff)
onos commit hash c2999f30c69e50df905a9d175ef80b3f23a98514
Change-Id: I2bb8562c4942b6d6a6d60b663db2e17540477b81 Signed-off-by: Ashlee Young <ashlee@wildernessvoice.com>
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh31
1 files changed, 30 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index fc234b5e..42c6940a 100755
--- a/build.sh
+++ b/build.sh
@@ -20,7 +20,7 @@
##### Settings #####
VERSION=1.0.7
AUTHOR="Ashlee Young"
-MODIFIED="November 23, 2015"
+MODIFIED="November 30, 2015"
GERRITURL="git clone ssh://im2bz2pee@gerrit.opnfv.org:29418/onosfw"
ONOSURL="https://github.com/opennetworkinglab/onos"
SURICATAURL="https://github.com/inliniac/suricata"
@@ -29,6 +29,7 @@ JAVA_VERSION=1.8
ANT_VERSION=1.9.6
MAVEN_VERSION=3.3.3
KARAF_VERSION=4.0.2
+LIBCAP-NG_VERSION=0.7.7
MODE=$1
##### End Settings #####
@@ -447,6 +448,32 @@ checkforlibpcap() # Checks whether RPMBUILD is installed
}
##### End Check for libpcap #####
+##### Check for libhtp #####
+checkforlibhtp() # Checks whether RPMBUILD is installed
+{
+ if [ ! -f "$SURICATAROOT/libhtp" ]; then
+ cd $SURICATAROOT
+ git clone https://github.com/ironbee/libhtp
+ fi
+}
+##### End Check for libhtp #####
+
+##### Check for libcap-ng #####
+checkforlibcap-ng() # Checks whether RPMBUILD is installed
+{
+ if [ ! -f "$SURICATAROOT/libcap-ng-$LIBCAP-NG_VERSION" ]; then
+ cd $SURICATAROOT
+ wget http://people.redhat.com/sgrubb/libcap-ng/libcap-ng-$LIBCAP-NG_VERSION.tar.gz
+ tar xzvf libcap-ng-$LIBCAP-NG_VERSION.tar.gz
+ rm libcap-ng-$LIBCAP-NG_VERSION.tar.gz
+ cd libcap-ng-$LIBCAP-NG_VERSION
+ ./autogen.sh
+ ./configure --without-python3
+ make
+ fi
+}
+##### End Check for libcap-ng #####
+
##### Build Suricata #####
buildSuricata()
{
@@ -477,6 +504,7 @@ buildSuricata()
fi
fi
cd $SURICATAROOT
+ checkforlibhtp
./autogen.sh
./configure
make
@@ -501,6 +529,7 @@ buildSuricata()
fi
fi
cd $SURICATAROOT
+ checkforlibhtp
./autogen.sh
./configure
make