X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=ossec-hids.git;a=blobdiff_plain;f=src%2FMakeall;h=71a11c629eadcdc1fd66a844e8712bfb1f4cfabe;hp=f129cb4bcd6319a4c95efd56987250e73d3e3714;hb=6ef2f786c6c8ead94841b5f93baf9f43421f08c8;hpb=301048b51990573e58a30dc4a5bb4ec285cad554 diff --git a/src/Makeall b/src/Makeall index f129cb4..71a11c6 100755 --- a/src/Makeall +++ b/src/Makeall @@ -40,7 +40,7 @@ LIBS="os_xml os_regex os_net os_crypto" # Shares sources SOURCES="shared config" # Binaries -BINARIES="os_maild os_dbd os_csyslogd agentlessd os_execd analysisd logcollector remoted client-agent addagent util rootcheck syscheckd monitord" +BINARIES="os_maild os_dbd os_csyslogd agentlessd os_execd analysisd logcollector remoted client-agent addagent util rootcheck syscheckd monitord os_auth" ROOTCHECKBIN="rootcheck" DIRECTORIES="" # Directories to make @@ -63,14 +63,21 @@ if [ "X${ARGV}" = "Xall" -o "X${ARGV}" = "Xrootcheck" -o "X${ARGV}" = "Xlibs" ]; ls /usr/include/openssl/opensslconf.h > /dev/null 2>&1 if [ $? = 0 ]; then echo "DEXTRA=-DUSE_OPENSSL" >> Config.OS + echo "OPENSSLCMD=-lssl -lcrypto" >> Config.OS fi # Checking for inotify if [ "X$OS" = "XLinux" ]; then - ls /usr/include/sys/inotify.h > /dev/null 2>&1 - if [ $? = 0 ]; then + #ls /usr/include/sys/inotify.h > /dev/null 2>&1 + #if [ $? = 0 ]; then + # echo "EEXTRA=-DUSEINOTIFY" >> Config.OS + #fi + + if [ -e /usr/include/sys/inotify.h ]; then echo "EEXTRA=-DUSEINOTIFY" >> Config.OS - fi + elif [ -e /usr/include/x86_64-linux-gnu/sys/inotify.h ]; then + echo "EEXTRA=-DUSEINOTIFY" >> Config.OS + fi fi