WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 9891d10

Browse files
init services moved to data/init/
1 parent fbc72bb commit 9891d10

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

daemon/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ install:
99
@mkdir -p $(DESTDIR)/etc/opensnitchd/tasks
1010
@install -Dm755 opensnitchd \
1111
-t $(DESTDIR)$(PREFIX)/bin/
12-
@install -Dm644 opensnitchd.service \
12+
@install -Dm644 data/init/opensnitchd.service \
1313
-t $(DESTDIR)/etc/systemd/system/
14-
@install -Dm644 default-config.json \
14+
@install -Dm644 data/default-config.json \
1515
-t $(DESTDIR)/etc/opensnitchd/
16-
@install -Dm644 system-fw.json \
16+
@install -Dm644 data/system-fw.json \
1717
-t $(DESTDIR)/etc/opensnitchd/
18-
@install -Dm644 network_aliases.json \
18+
@install -Dm644 data/network_aliases.json \
1919
-t $(DESTDIR)/etc/opensnitchd/
2020
@install -Dm600 data/rules/* $(DESTDIR)/etc/opensnitchd/rules/
2121
@install -Dm600 data/tasks/tasks.json $(DESTDIR)/etc/opensnitchd/tasks/
File renamed without changes.
File renamed without changes.
File renamed without changes.

utils/packaging/daemon/rpm/opensnitch.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ go build -o opensnitchd .
4444
mkdir -p %{buildroot}/usr/bin/ %{buildroot}/usr/lib/opensnitchd/ebpf/ %{buildroot}/usr/lib/systemd/system/ %{buildroot}/etc/opensnitchd/rules %{buildroot}/etc/opensnitchd/tasks %{buildroot}/etc/logrotate.d
4545
sed -i 's/\/usr\/local/\/usr/' daemon/opensnitchd.service
4646
install -m 755 daemon/opensnitchd %{buildroot}/usr/bin/opensnitchd
47-
install -m 644 daemon/opensnitchd.service %{buildroot}/usr/lib/systemd/system/opensnitch.service
47+
install -m 644 daemon/data/init/opensnitchd.service %{buildroot}/usr/lib/systemd/system/opensnitch.service
4848
install -m 644 utils/packaging/daemon/deb/debian/opensnitch.logrotate %{buildroot}/etc/logrotate.d/opensnitch
4949

5050
B=""

0 commit comments

Comments
 (0)