Skip to content

Commit

Permalink
deb,rpm: minor changes to ease packing
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavo-iniguez-goya committed May 16, 2021
1 parent 0502926 commit 423dbd6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions daemon/opensnitch.spec
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ rm -rf %{buildroot}
mkdir -p go/src/github.com/evilsocket
ln -s $(pwd) go/src/github.com/evilsocket/opensnitch
export GOPATH=$(pwd)/go
cd go/src/github.com/evilsocket/opensnitch/
make protocol
cd go/src/github.com/evilsocket/opensnitch/daemon/
go mod vendor
go build -o opensnitchd .

%install
Expand All @@ -56,6 +59,8 @@ if [ -f /etc/opensnitchd/system-fw.json ]; then
fi
install -m 644 -b $B daemon/system-fw.json %{buildroot}/etc/opensnitchd/system-fw.json

install -m 644 ebpf_prog/opensnitch.o %{buildroot}/etc/opensnitchd/opensnitch.o

# upgrade, uninstall
%preun
systemctl stop opensnitch.service || true
Expand Down Expand Up @@ -88,4 +93,5 @@ rm -rf %{buildroot}
/usr/lib/systemd/system/opensnitch.service
%{_sysconfdir}/opensnitchd/default-config.json
%{_sysconfdir}/opensnitchd/system-fw.json
%{_sysconfdir}/opensnitchd/opensnitch.o
%{_sysconfdir}/logrotate.d/opensnitch
1 change: 1 addition & 0 deletions debian/opensnitch.install
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
daemon/default-config.json etc/opensnitchd/
daemon/system-fw.json etc/opensnitchd/
ebpf_prog/opensnitch.o etc/opensnitchd/

0 comments on commit 423dbd6

Please sign in to comment.