File: Makefile.am

package info (click to toggle)
openvpn 2.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,388 kB
  • sloc: ansic: 103,617; sh: 6,873; makefile: 1,010; python: 271; perl: 66
file content (38 lines) | stat: -rw-r--r-- 1,052 bytes parent folder | download | duplicates (2)
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
33
34
35
36
37
38
#
#  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-2026 OpenVPN Inc <sales@openvpn.net>
#

%.service: %.service.in Makefile
	$(AM_V_GEN)sed \
		-e 's|\@OPENVPN_VERSION_MAJOR\@|$(OPENVPN_VERSION_MAJOR)|g' \
		-e 's|\@OPENVPN_VERSION_MINOR\@|$(OPENVPN_VERSION_MINOR)|g' \
		-e 's|\@sbindir\@|$(sbindir)|g' \
		$< > $@.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
CLEANFILES = $(systemdunit_DATA)
tmpfiles_DATA = \
	tmpfiles-openvpn.conf
dist_doc_DATA = \
	README.systemd

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

MAINTAINERCLEANFILES = \
	$(srcdir)/Makefile.in