maemo: Create DBUS service file with correct path to charon.
authorTobias Brunner <tobias@strongswan.org>
Tue, 8 Feb 2011 14:13:15 +0000 (15:13 +0100)
committerTobias Brunner <tobias@strongswan.org>
Tue, 8 Feb 2011 14:17:36 +0000 (15:17 +0100)
src/libcharon/plugins/maemo/Makefile.am
src/libcharon/plugins/maemo/org.strongswan.charon.service [deleted file]
src/libcharon/plugins/maemo/org.strongswan.charon.service.in [new file with mode: 0644]

index ed6c76c..0bf7fad 100644 (file)
@@ -19,5 +19,9 @@ libstrongswan_maemo_la_LIBADD  = ${maemo_LIBS}
 
 dbusservice_DATA = org.strongswan.charon.service
 
-EXTRA_DIST = $(dbusservice_DATA)
+org.strongswan.charon.service: $(srcdir)/org.strongswan.charon.service.in
+       sed -e 's|[@]LIBEXECDIR[@]|$(libexecdir)|' $< >$@
+
+EXTRA_DIST = org.strongswan.charon.service.in
+CLEANFILES = $(dbusservice_DATA)
 
diff --git a/src/libcharon/plugins/maemo/org.strongswan.charon.service b/src/libcharon/plugins/maemo/org.strongswan.charon.service
deleted file mode 100644 (file)
index 7dd31ed..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-[D-BUS Service]
-Name=org.strongswan.charon
-Exec=/usr/bin/run-standalone.sh /usr/libexec/ipsec/charon
-User=root
diff --git a/src/libcharon/plugins/maemo/org.strongswan.charon.service.in b/src/libcharon/plugins/maemo/org.strongswan.charon.service.in
new file mode 100644 (file)
index 0000000..8fa83af
--- /dev/null
@@ -0,0 +1,4 @@
+[D-BUS Service]
+Name=org.strongswan.charon
+Exec=/usr/bin/run-standalone.sh @LIBEXECDIR@/ipsec/charon
+User=root