summaryrefslogtreecommitdiff
path: root/distro/systemd/Makefile.am
blob: 1e3f3eaad8e7dbfaf023e4940f1dd893d5e5fe7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#
#  OpenVPN -- An application to securely tunnel IP networks
#             over a single UDP port, with support for SSL/TLS-based
#             session authentication and key exchange,
#             packet encryption, packet authentication, and
#             packet compression.
#
#  Copyright (C) 2017 OpenVPN Technologies, Inc. <sales@openvpn.net>
#

%.service: %.service.in Makefile
	$(AM_V_GEN)sed -e 's|\@sbindir\@|$(sbindir)|' \
		$< > $@.tmp && mv $@.tmp $@

EXTRA_DIST = \
	tmpfiles-openvpn.conf \
	openvpn-client@.service.in \
	openvpn-server@.service.in

if ENABLE_SYSTEMD
systemdunit_DATA = \
	openvpn-client@.service \
	openvpn-server@.service
tmpfiles_DATA = \
	tmpfiles-openvpn.conf

install-data-hook:
	mv $(DESTDIR)$(tmpfilesdir)/tmpfiles-openvpn.conf $(DESTDIR)$(tmpfilesdir)/openvpn.conf
endif

MAINTAINERCLEANFILES = \
	$(srcdir)/Makefile.in