Imported Upstream version 2.7
[ossec-hids.git] / src / Makeall
index f129cb4..71a11c6 100755 (executable)
@@ -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