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

pass "go install" exit status to make

parent c61f3abe
Branches
No related tags found
No related merge requests found
...@@ -10,6 +10,7 @@ export DH_OPTIONS ...@@ -10,6 +10,7 @@ export DH_OPTIONS
GOPKG = git.autistici.org/ai/audit GOPKG = git.autistici.org/ai/audit
DEBDIR = $(CURDIR)/debian DEBDIR = $(CURDIR)/debian
BUILDDIR = $(CURDIR)/debian/build
SVCDIR = $(DESTDIR)/etc/svc SVCDIR = $(DESTDIR)/etc/svc
%: %:
...@@ -19,13 +20,14 @@ override_dh_install: ...@@ -19,13 +20,14 @@ override_dh_install:
# Build the sources # Build the sources
install -m 755 -o root -g root -d $(DEBDIR)/auditd/usr/sbin install -m 755 -o root -g root -d $(DEBDIR)/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
(tmpdir=$$(mktemp -d) ; \ (tmpdir=`mktemp -d` ; \
tmpdir=`cd $$tmpdir && pwd` ; \
export GOPATH=$$tmpdir ; unset GOBIN ; \ export GOPATH=$$tmpdir ; unset GOBIN ; \
mkdir -p $$tmpdir/src/$(dir $(GOPKG)) ; \ mkdir -p $$tmpdir/src/$(dir $(GOPKG)) ; \
ln -s $(CURDIR) $$tmpdir/src/$(GOPKG) ; \ ln -s $(CURDIR) $$tmpdir/src/$(GOPKG) ; \
cd $$tmpdir/src && \ cd $$tmpdir/src && \
go get -d -v ./$(GOPKG)/... && go install -v ./$(GOPKG)/... && \ go get -d -v ./$(GOPKG)/... && go install -v ./$(GOPKG)/... && \
install -m 755 -o root -g root $$tmpdir/bin/auditd $(DEBDIR)/auditd/usr/sbin/auditd && \ install -m 755 -o root -g root $$tmpdir/bin/auditd $(DEBDIR)/auditd/usr/sbin/auditd && \
install -m 755 -o root -g root $$tmpdir/bin/localauditd $(DEBDIR)/localauditd/usr/sbin/localauditd ; \ install -m 755 -o root -g root $$tmpdir/bin/localauditd $(DEBDIR)/localauditd/usr/sbin/localauditd && \
rm -fr $$tmpdir) rm -fr $$tmpdir)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment