Maemo: Register charon as D-BUS system service.

In order to be able to access this service via libosso, charon is
started with the run-standalone.sh script, which sets up the required
environment.
This commit is contained in:
Tobias Brunner 2010-09-20 16:03:04 +02:00
parent 8411dc6e70
commit 2bce814190
3 changed files with 13 additions and 0 deletions

View File

@ -625,6 +625,11 @@ if test x$android = xtrue; then
AC_SUBST(DLLIB)
fi
if test x$maemo = xtrue; then
dbusservicedir="/usr/share/dbus-1/system-services"
AC_SUBST(dbusservicedir)
fi
if test x$nm = xtrue; then
PKG_CHECK_EXISTS([libnm-glib],
[PKG_CHECK_MODULES(nm, [NetworkManager gthread-2.0 libnm-glib libnm-glib-vpn])],

View File

@ -15,3 +15,7 @@ libstrongswan_maemo_la_SOURCES = \
libstrongswan_maemo_la_LDFLAGS = -module -avoid-version
dbusservice_DATA = org.strongswan.charon.service
EXTRA_DIST = $(dbusservice_DATA)

View File

@ -0,0 +1,4 @@
[D-BUS Service]
Name=org.strongswan.charon
Exec=/usr/bin/run-standalone.sh /usr/libexec/ipsec/charon
User=root