[Pkg-ossec-devel] [SCM] Git repository for pkg-ossec branch, master, updated. a8b48b85d4a8b630eff01c610d0e439dc79057e9

Jose Antonio Quevedo joseantonio.quevedo at gmail.com
Wed Jul 20 16:16:59 UTC 2011


The following commit has been merged in the master branch:
commit a8b48b85d4a8b630eff01c610d0e439dc79057e9
Author: Jose Antonio Quevedo <joseantonio.quevedo at gmail.com>
Date:   Wed Jul 20 18:16:51 2011 +0200

    Added pre() function, which contains the brute code that have to be executed before building or installing.

diff --git a/install.sh b/install.sh
index 22d6dc3..954c63f 100755
--- a/install.sh
+++ b/install.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+!/bin/sh
 # Installation script for the OSSEC
 # Author: Daniel B. Cid <daniel.cid at gmail.com>
 # Last modification: Mar 02, 2006
@@ -844,10 +844,11 @@ AddPFTable()
 }
 
 ##########
-# main()
+# pre()
 ##########
-main()
+pre()
 {
+ 
     LG="en"
     LANGUAGE="en"
     . ./src/init/shared.sh
@@ -1085,6 +1086,14 @@ main()
         fi
     fi    
 
+}
+
+##########
+# main()
+##########
+main()
+{
+
     # Installing (calls the respective script 
     # -- InstallAgent.sh or InstallServer.sh
     Install
@@ -1187,6 +1196,8 @@ build()
 USER_LANGUAGE="en"
 USER_INSTALL_TYPE="server"
 
+pre
+
 if [$1="build"]; then build
 elif [$1=install]
   ### Calling main function where installation happens

-- 
Git repository for pkg-ossec



More information about the Pkg-ossec-devel mailing list