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