summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-03-09 19:17:17 +0000
committerng0 <ng0@n0.is>2019-03-09 19:17:17 +0000
commitfb80cce9f8898ffd1838de1df636414ffd3065e2 (patch)
tree564929f93b50da2094f56b01f5da5b822e8f0fde /contrib
parente1328a2a749b32ba053f9bc0a5083e6bdbbada2f (diff)
contrib: install initd files
Diffstat (limited to 'contrib')
-rw-r--r--contrib/Makefile.am14
1 files changed, 11 insertions, 3 deletions
diff --git a/contrib/Makefile.am b/contrib/Makefile.am
index 1167fb671..49aa36dfd 100644
--- a/contrib/Makefile.am
+++ b/contrib/Makefile.am
@@ -35,6 +35,10 @@ tap64_DATA = \
3rdparty/Windows/openvpn-tap32/tapw64/OemWin2k.inf
endif
+INITD_FILES = \
+ services/openrc/gnunet.initd \
+ services/systemd/gnunet.service
+
EXTRA_DIST = \
conf/colorit/colorit.conf \
conf/editors/eclipse/gnunet_codingstyle.xml \
@@ -52,8 +56,6 @@ EXTRA_DIST = \
scripts/pydiffer.py.in \
packages/nix/default.nix \
packages/nix/gnunet-dev.nix \
- services/openrc/gnunet.initd \
- services/systemd/gnunet.service \
3rdparty/Windows/openvpn-tap32/tapw32/tap0901.sys \
3rdparty/Windows/openvpn-tap32/tapw32/tap0901.cat \
3rdparty/Windows/openvpn-tap32/tapw32/OemWin2k.inf \
@@ -62,7 +64,8 @@ EXTRA_DIST = \
3rdparty/Windows/openvpn-tap32/tapw64/OemWin2k.inf \
3rdparty/Windows/openvpn-tap32/INSTALL \
3rdparty/Windows/openvpn-tap32/tap32-signed-i386-2.1.zip \
- 3rdparty/Windows/openvpn-tap32/tap32-source-2.1.zip
+ 3rdparty/Windows/openvpn-tap32/tap32-source-2.1.zip \
+ $(INITD_FILES)
CLEANFILES = \
$(noinst_SCRIPTS)
@@ -106,6 +109,7 @@ test_gnunet_prefix_LDADD = \
$(LIBLTDL) -lunistring $(XLIB)
pkghellodir= $(pkgdatadir)/hellos
+pkginitddir= $(pkgdatadir)/services
install-data-local:
$(mkinstalldirs) $(DESTDIR)$(pkghellodir)
@@ -116,6 +120,10 @@ install-data-local:
fi \
done
install scripts/gnunet-bugreport $(DESTDIR)$(bindir)/gnunet-bugreport
+ mkdir -p $(DESTDIR)$(pkgdatadir)/services/openrc
+ mkdir -p $(DESTDIR)$(pkgdatadir)/services/systemd
+ install services/openrc/gnunet.initd $(DESTDIR)$(pkginitddir)/openrc/
+ install services/systemd/gnunet.service $(DESTDIR)$(pkginitddir)/systemd/
dist-hook:
if test -d $(srcdir)/hellos; then \