[Pkg-ossec-devel] [SCM] Git repository for pkg-ossec branch, debian, updated. 80a41f89070c1546065736955b9285e2a0132e8f

Javier Fernandez-Sanguino jfs at debian.org
Fri Jul 29 16:29:47 UTC 2011


The following commit has been merged in the debian branch:
commit e9ae290e9a2d64fe4939d5462492160990b0aa3a
Author: Javier Fernandez-Sanguino <jfs at debian.org>
Date:   Fri Jul 29 18:01:11 2011 +0200

    Prepare for a local build too, not enabled in the build system by default yet

diff --git a/debian/rules b/debian/rules
index 9d18bb8..ae54333 100755
--- a/debian/rules
+++ b/debian/rules
@@ -37,6 +37,13 @@ configure-agent-stamp:
 	echo "CEXTRA=-DDEFAULTDIR=\"/var/ossec\" -DCLIENT" > src/Config.OS
 	touch $@
 
+# Configure for the local build
+configure-local: configure-local-stamp
+configure-local-stamp:
+	dh_testdir
+	echo "CEXTRA=-DDEFAULTDIR=\"/var/ossec\" -DLOCAL" > src/Config.OS
+	touch $@
+
 # Builds all binaries
 build: build-server build-agent
 
@@ -60,6 +67,16 @@ build-agent-stamp:
 	mv bin agent-bin
 	touch $@
 
+# Build the stand-alone version (local)
+# Note: we need to clean the build first
+build-local: clean-sources configure-local build-local-stamp 
+build-local-stamp: 
+# We have to clean and rebuild againt to set -DCLIENT
+	cd src && make all
+	cd src && make build
+	mv bin local-bin
+	touch $@
+
 build-indep: build-indep-stamp
 build-indep-stamp:
 # Nothing to do here, yet
@@ -178,7 +195,7 @@ clean-sources:
 clean: clean-sources
 	dh_testdir
 	dh_testroot
-	-rm -rf bin/ server-bin/ agent-bin/
+	-rm -rf bin/ server-bin/ agent-bin/ local-bin/
 	dh_clean
 
 

-- 
Git repository for pkg-ossec



More information about the Pkg-ossec-devel mailing list