X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/b1d2923efeb89a7a3e6321d459f0582993fdb470..9447011b1029f3fcd82f05632673d3a85a4ae5d4:/projects/stargazer/build diff --git a/projects/stargazer/build b/projects/stargazer/build index d8ed3092..770401bb 100755 --- a/projects/stargazer/build +++ b/projects/stargazer/build @@ -66,9 +66,7 @@ then 5) OS=bsd5;; 6) OS=bsd5;; 7) OS=bsd7;; - 8) OS=bsd7;; - 9) OS=bsd7;; - *) OS=unknown;; + *) OS=bsd7;; esac ETC_DIR="./inst/freebsd/etc/stargazer" MAKE="gmake" @@ -82,7 +80,7 @@ then fi if [ "$OS" = "unknown" ] -then +then printf "#############################################################################\n" printf "# Sorry, but stargazer currently supported by Linux, FreeBSD 4.x, 5.x, 6.x #\n" printf "#############################################################################\n" @@ -93,14 +91,14 @@ printf "######################################################################## printf " Building STG 2.4 for $sys $release\n" printf "#############################################################################\n" -STG_LIBS="logger.lib +STG_LIBS="logger.lib locker.lib - crypto.lib - common.lib - scriptexecuter.lib - conffiles.lib - pinger.lib - dotconfpp.lib + crypto.lib + common.lib + scriptexecuter.lib + conffiles.lib + pinger.lib + dotconfpp.lib smux.lib" PLUGINS="authorization/ao @@ -344,6 +342,18 @@ else fi fi +printf "Checking for -lpcap... " +$CC $CFLAGS $LDFLAGS build_check.c -lpcap -o fake > /dev/null 2> /dev/null +if [ $? != 0 ] +then + CHECK_PCAP=no + printf "no\n" +else + CHECK_PCAP=yes + printf "yes\n" +fi +rm -f fake + if [ "$OS" = "linux" ] then printf "Checking for linux/netfilter_ipv4/ip_queue.h... " @@ -399,6 +409,12 @@ then configuration/rpcconfig" fi +if [ "$CHECK_PCAP" = "yes" ] +then + PLUGINS="$PLUGINS + capture/pcap" +fi + printf "OS=$OS\n" > $CONFFILE printf "STG_TIME=yes\n" >> $CONFFILE printf "DEBUG=$DEBUG\n" >> $CONFFILE @@ -414,6 +430,7 @@ printf "CHECK_FBCLIENT=$CHECK_FBCLIENT\n" >> $CONFFILE printf "CHECK_MYSQLCLIENT=$CHECK_MYSQLCLIENT\n" >> $CONFFILE printf "CHECK_PQ=$CHECK_PQ\n" >> $CONFFILE printf "CHECK_XMLRPC=$CHECK_XMLRPC\n" >> $CONFFILE +printf "CHECK_PCAP=$CHECK_PCAP\n" >> $CONFFILE printf "DEFS=$DEFS\n" >> $CONFFILE printf "STG_LIBS=" >> $CONFFILE for lib in $STG_LIBS