From 1787feced35c3395b55779678361176a935d8666 Mon Sep 17 00:00:00 2001 From: Bernhard Tittelbach Date: Fri, 16 Jan 2015 00:39:12 +0000 Subject: let systemd create /run dirs and a fix --- etc/tmpfiles.d/anytun.conf | 2 ++ src/Makefile | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 etc/tmpfiles.d/anytun.conf diff --git a/etc/tmpfiles.d/anytun.conf b/etc/tmpfiles.d/anytun.conf new file mode 100644 index 0000000..6ae8af5 --- /dev/null +++ b/etc/tmpfiles.d/anytun.conf @@ -0,0 +1,2 @@ +/run/anytun-controld 0700 anytun anytun - +/run/anytun/ 0700 anytun anytun - diff --git a/src/Makefile b/src/Makefile index b04d76b..f460a72 100644 --- a/src/Makefile +++ b/src/Makefile @@ -313,8 +313,9 @@ install-systemd: $(INSTALL) -d $(DESTDIR)/lib/systemd/system/ @ sed -e 's#/usr/bin/#$(DESTDIR)$(BINDIR)/#' ../usr/lib/systemd/system/anytun@.service > ../usr/lib/systemd/system/anytun@.service.bak @ sed -e 's#/usr/bin/#$(DESTDIR)$(BINDIR)/#' ../usr/lib/systemd/system/anytun-control@.service > ../usr/lib/systemd/system/anytun-control@.service.bak - $(INSTALL) ../usr/lib/systemd/system/anytun@.service.bak $(DESTDIR)/lib/systemd/system/anytun@.service - $(INSTALL) ../usr/lib/systemd/system/anytun-control@.service.bak $(DESTDIR)/anytun-control@.service + $(INSTALL) ../usr/lib/systemd/system/anytun@.service.bak $(DESTDIR)/usr/lib/systemd/system/anytun@.service + $(INSTALL) ../usr/lib/systemd/system/anytun-control@.service.bak $(DESTDIR)/usr/anytun-control@.service + $(INSTALL) ../etc/tmpfiles.d/anytun.conf $(DESTDIR)$(ETCDIR)/tmpfiles.d/anytun.conf install-examples: $(INSTALL) -d $(DESTDIR)$(EXAMPLESDIR)/anytun -- cgit v1.2.3