diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2013-06-19 00:29:55 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2013-06-19 00:29:55 -0500 |
commit | f566ca0df0de10f82601d7fad7fd438c8f6963e3 (patch) | |
tree | 0ccfb3ad46eb1b40eb9c3e1ed4b42f1c4e5b798d | |
parent | 1b56362cd709b620188fda0d1fa80743f7f9d8d9 (diff) | |
download | ayatana-indicator-power-f566ca0df0de10f82601d7fad7fd438c8f6963e3.tar.gz ayatana-indicator-power-f566ca0df0de10f82601d7fad7fd438c8f6963e3.tar.bz2 ayatana-indicator-power-f566ca0df0de10f82601d7fad7fd438c8f6963e3.zip |
add a dbus service file for indicator-power...
-rw-r--r-- | configure.ac | 9 | ||||
-rw-r--r-- | data/Makefile.am | 20 | ||||
-rw-r--r-- | data/indicator-power.service.in | 3 |
3 files changed, 30 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 20462fa..84e9423 100644 --- a/configure.ac +++ b/configure.ac @@ -89,6 +89,15 @@ AC_ARG_ENABLE([localinstall], [with_localinstall=$enableval], [with_localinstall=no]) +########################### +# DBus Service Info +########################### + +AS_IF([test "x$with_localinstall" = "xyes"], + [DBUSSERVICEDIR="${datadir}/dbus-1/services/"], + [DBUSSERVICEDIR=`$PKG_CONFIG --variable=session_bus_services_dir dbus-1`]) +AC_SUBST(DBUSSERVICEDIR) + ############################## # Custom Junk ############################## diff --git a/data/Makefile.am b/data/Makefile.am index 3143881..c2ce65d 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -1,10 +1,26 @@ +BUILT_SOURCES= +CLEANFILES= +EXTRA_DIST= # # the indicator bus file # indicatorsdir = $(prefix)/share/unity/indicators -indicators_DATA = com.canonical.indicator.power +dist_indicators_DATA = com.canonical.indicator.power + +# +# the dbus service file +# + +dbus_servicesdir = $(DBUSSERVICEDIR) +dbus_services_DATA = indicator-power.service +dbus_services_in = $(dbus_services_DATA:.service=.service.in) +$(dbus_services_DATA): $(dbus_services_in) + $(AM_V_GEN) $(SED) -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@ +BUILT_SOURCES += $(dbus_services_DATA) +CLEANFILES += $(dbus_services_DATA) +EXTRA_DIST += $(dbus_services_in) # # the gettings @@ -22,7 +38,7 @@ dist_noinst_DATA = \ com.canonical.indicator.power.gschema.xml \ $(gsettings_in_file) -CLEANFILES = \ +CLEANFILES += \ $(gsettings_SCHEMAS) MAINTAINERCLEANFILES = \ diff --git a/data/indicator-power.service.in b/data/indicator-power.service.in new file mode 100644 index 0000000..c59c69e --- /dev/null +++ b/data/indicator-power.service.in @@ -0,0 +1,3 @@ +[D-BUS Service] +Name=com.canonical.indicator.power +Exec=@libexecdir@/indicator-power-service |