From e6739debe8daa0c20208b446ea224bb60ffa17ce Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Thu, 13 Mar 2014 10:17:57 +0000
Subject: [PATCH] create new auditc package

---
 debian/control | 7 ++++++-
 debian/rules   | 8 +++++---
 2 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/debian/control b/debian/control
index e4e9d55..ec20109 100644
--- a/debian/control
+++ b/debian/control
@@ -12,9 +12,14 @@ Depends: ${shlibs:Depends}, ${misc:Depends}, lsb-base, adduser
 Description: Local audit spool daemon.
  Local part of the A/I audit suite.
 
-Package: auditd
+Package: ai-auditd
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}, lsb-base, libleveldb1
 Description: Central audit server.
  Remote part of the A/I audit suite.
 
+Package: auditc
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Audit log client.
+ Queries the central audit server.
diff --git a/debian/rules b/debian/rules
index 4ceff66..7899264 100755
--- a/debian/rules
+++ b/debian/rules
@@ -22,7 +22,8 @@ override_dh_install:
 	# This is crazy, clearly, but it's a temporary workaround for wheezy.
 	# Also, we redefine 'leveldb_free' to 'free' because the LevelDB
 	# version in wheezy does not have that symbol.
-	install -m 755 -o root -g root -d $(DEBDIR)/auditd/usr/sbin
+	install -m 755 -o root -g root -d $(DEBDIR)/auditc/usr/bin
+	install -m 755 -o root -g root -d $(DEBDIR)/ai-auditd/usr/sbin
 	install -m 755 -o root -g root -d $(DEBDIR)/localauditd/usr/sbin
 	(export GOPATH=$(BUILDDIR) GOROOT=$(GOROOT) ; \
 	 mkdir -p $(GOROOT) $(BUILDDIR)/src/$(GOPKG) ; \
@@ -31,6 +32,7 @@ override_dh_install:
 	 cd $(BUILDDIR)/src && \
 	 $(GOROOT)/bin/go get -d -v ./$(GOPKG)/... && \
 	 CGO_CFLAGS=-Dleveldb_free=free $(GOROOT)/bin/go install -v ./$(GOPKG)/... && \
-	 install -m 755 -o root -g root $(BUILDDIR)/bin/auditd $(DEBDIR)/auditd/usr/sbin/auditd && \
-	 install -m 755 -o root -g root $(BUILDDIR)/bin/localauditd $(DEBDIR)/localauditd/usr/sbin/localauditd)
+	 install -m 755 -o root -g root $(BUILDDIR)/bin/auditd $(DEBDIR)/ai-auditd/usr/sbin/auditd && \
+	 install -m 755 -o root -g root $(BUILDDIR)/bin/localauditd $(DEBDIR)/localauditd/usr/sbin/localauditd && \
+	 install -m 755 -o root -g root $(BUILDDIR)/bin/auditc $(DEBDIR)/auditc/usr/bin/auditc)
 
-- 
GitLab