Skip to content
Snippets Groups Projects
Commit e6739deb authored by ale's avatar ale
Browse files

create new auditc package

parent b6fe097f
No related branches found
No related tags found
No related merge requests found
...@@ -12,9 +12,14 @@ Depends: ${shlibs:Depends}, ${misc:Depends}, lsb-base, adduser ...@@ -12,9 +12,14 @@ Depends: ${shlibs:Depends}, ${misc:Depends}, lsb-base, adduser
Description: Local audit spool daemon. Description: Local audit spool daemon.
Local part of the A/I audit suite. Local part of the A/I audit suite.
Package: auditd Package: ai-auditd
Architecture: any Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, lsb-base, libleveldb1 Depends: ${shlibs:Depends}, ${misc:Depends}, lsb-base, libleveldb1
Description: Central audit server. Description: Central audit server.
Remote part of the A/I audit suite. 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.
...@@ -22,7 +22,8 @@ override_dh_install: ...@@ -22,7 +22,8 @@ override_dh_install:
# This is crazy, clearly, but it's a temporary workaround for wheezy. # This is crazy, clearly, but it's a temporary workaround for wheezy.
# Also, we redefine 'leveldb_free' to 'free' because the LevelDB # Also, we redefine 'leveldb_free' to 'free' because the LevelDB
# version in wheezy does not have that symbol. # 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 install -m 755 -o root -g root -d $(DEBDIR)/localauditd/usr/sbin
(export GOPATH=$(BUILDDIR) GOROOT=$(GOROOT) ; \ (export GOPATH=$(BUILDDIR) GOROOT=$(GOROOT) ; \
mkdir -p $(GOROOT) $(BUILDDIR)/src/$(GOPKG) ; \ mkdir -p $(GOROOT) $(BUILDDIR)/src/$(GOPKG) ; \
...@@ -31,6 +32,7 @@ override_dh_install: ...@@ -31,6 +32,7 @@ override_dh_install:
cd $(BUILDDIR)/src && \ cd $(BUILDDIR)/src && \
$(GOROOT)/bin/go get -d -v ./$(GOPKG)/... && \ $(GOROOT)/bin/go get -d -v ./$(GOPKG)/... && \
CGO_CFLAGS=-Dleveldb_free=free $(GOROOT)/bin/go install -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/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/localauditd $(DEBDIR)/localauditd/usr/sbin/localauditd && \
install -m 755 -o root -g root $(BUILDDIR)/bin/auditc $(DEBDIR)/auditc/usr/bin/auditc)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment