1#
2#  OpenVPN -- An application to securely tunnel IP networks
3#             over a single UDP port, with support for SSL/TLS-based
4#             session authentication and key exchange,
5#             packet encryption, packet authentication, and
6#             packet compression.
7#
8#  Copyright (C) 2017-2018 OpenVPN Inc <sales@openvpn.net>
9#
10
11%.service: %.service.in Makefile
12	$(AM_V_GEN)sed -e 's|\@sbindir\@|$(sbindir)|' \
13		$< > $@.tmp && mv $@.tmp $@
14
15EXTRA_DIST = \
16	tmpfiles-openvpn.conf \
17	openvpn-client@.service.in \
18	openvpn-server@.service.in
19
20if ENABLE_SYSTEMD
21systemdunit_DATA = \
22	openvpn-client@.service \
23	openvpn-server@.service
24tmpfiles_DATA = \
25	tmpfiles-openvpn.conf
26dist_doc_DATA = \
27	README.systemd
28
29install-data-hook:
30	mv $(DESTDIR)$(tmpfilesdir)/tmpfiles-openvpn.conf $(DESTDIR)$(tmpfilesdir)/openvpn.conf
31endif
32
33MAINTAINERCLEANFILES = \
34	$(srcdir)/Makefile.in
35