- Don't share sources (reduces deb size). - Install eBPF modules under /usr/lib/opensnitchd/ebpf/ /etc/is only mean for configuration files, and /usr/lib for object files and libraries. https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch03s07.html#purpose6 https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch04s06.html#purpose22 - Added NEWS file, to inform users about breaking changes and other relevant changes.
19 lines
470 B
Makefile
Executable file
19 lines
470 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
|
|
|
|
override_dh_auto_install:
|
|
dh_auto_install -- --no-source
|
|
|
|
%:
|
|
dh $@ --builddirectory=_build --buildsystem=golang --with=golang
|