nm: Fix comment in service file in /etc/NetworkManager/VPN
[strongswan.git] / src / frontends / gnome / Makefile.am
1 AUTOMAKE_OPTIONS = foreign
2
3 SUBDIRS = properties auth-dialog po
4
5 nmvpnservicedir = $(prefix)/lib/NetworkManager/VPN
6 nmvpnservice_DATA = nm-strongswan-service.name
7
8 @INTLTOOL_DESKTOP_RULE@
9
10 appdatadir = $(datadir)/appdata
11 appdata_DATA = $(appdata_in_files:.xml.in=.xml)
12 appdata_in_files = NetworkManager-strongswan.appdata.xml.in
13 @INTLTOOL_XML_RULE@
14
15 # Install a file with full path to plugins for an old gnome-shell
16 # https://bugzilla.gnome.org/show_bug.cgi?id=693590
17 install-data-hook:
18         mkdir -p $(DESTDIR)$(sysconfdir)/NetworkManager/VPN
19         sed -e "1s|^|# This file is obsoleted by a file in $(nmvpnservicedir)\n\n|" \
20             -e 's|[@]NM_LIBEXECDIR[@]|$(nm_libexecdir)|g' \
21             -e 's|[@]NM_PLUGINDIR[@]|$(nm_plugindir)|g' \
22             -e 's|[@]NM_PLUGINDIR_ABS[@]|$(nm_plugindir)|g' \
23             -e 's|[@]CHARON[@]|$(charon)|' \
24             <$(srcdir)/nm-strongswan-service.name.in \
25             >$(DESTDIR)$(sysconfdir)/NetworkManager/VPN/nm-strongswan-service.name
26
27 uninstall-hook:
28          rm -f $(DESTDIR)$(sysconfdir)/NetworkManager/VPN/nm-strongswan-service.name
29
30 nm-strongswan-service.name: $(srcdir)/nm-strongswan-service.name.in
31         $(AM_V_GEN) \
32         sed -e 's|[@]NM_LIBEXECDIR[@]|$(nm_libexecdir)|' \
33             -e 's|[@]NM_PLUGINDIR[@]|$(nm_plugindir)|g' \
34             -e 's|[@]NM_PLUGINDIR_ABS[@]/|$(nm_plugindir_abs)|g' \
35             -e 's|[@]CHARON[@]|$(charon)|' $< >$@
36
37 EXTRA_DIST = \
38     nm-strongswan-service.name.in  \
39     $(appdata_in_files)  \
40     intltool-extract.in  \
41     intltool-merge.in    \
42     intltool-update.in
43
44 CLEANFILES = $(nmvpnservice_DATA) $(appdata_DATA) *~
45 DISTCLEANFILES = intltool-extract intltool-merge intltool-update
46
47 ACLOCAL_AMFLAGS = -I m4