opensnitch/debian/rules
Gustavo Iñiguez Goia a936e8755a
Some checks failed
Build status / Build (push) Has been cancelled
deb packages: fixed installing on old distros
debhelper-compat 12 caused on ubuntu 16 errors after installing.
debhelper-compa 11 doesn't fail on ubuntu 16, and works on SysVinit
and systemd based systems.

On ubuntu 16 though, the service is not enabled nor started
automatically.
2022-01-20 23:34:08 +01:00

16 lines
411 B
Makefile
Executable file

#!/usr/bin/make -f
export DH_VERBOSE = 1
export DESTDIR = debian/opensnitch
override_dh_installsystemd:
dh_installsystemd --restart-after-upgrade
execute_before_dh_auto_build:
cd proto; make ../daemon/ui/protocol/ui.pb.go
execute_before_dh_auto_install:
mkdir -p $(DESTDIR)/usr/bin
mv _build/bin/daemon $(DESTDIR)/usr/bin/opensnitchd
%:
dh $@ --builddirectory=_build --buildsystem=golang --with=golang