[pan2/dbusservice] Install dbus service file



commit f88082670d7886c323c034b9946b96f9cadaafb5
Author: Petr Kovar <pknbe volny cz>
Date:   Fri Dec 29 18:18:02 2017 +0100

    Install dbus service file

 Makefile.am |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 0509259..11143fd 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -16,11 +16,21 @@ pan.appdata.xml: pan.appdata.xml.in
 appdatadir = $(datadir)/appdata
 appdata_DATA = pan.appdata.xml
 
+dbusservicedir = $(datadir)/dbus-1/services
+dbusservice_DATA = news.pan.NZB.service
+
+news.pan.NZB.service: Makefile
+       $(AM_V_GEN) (echo '[D-BUS Service]'; \
+               echo 'Name=news.pan.NZB'; \
+               echo 'Exec=${bindir}/pan') > $@.tmp && \
+               mv $@.tmp $@
+
 man_MANS = pan.1
 
 CLEANFILES = \
  $(appdata_DATA) \
- $(desktop_DATA)
+ $(desktop_DATA) \
+ $(dbusservice_DATA)
 
 DISTCLEANFILES = \
  README.windows \
@@ -43,6 +53,7 @@ EXTRA_DIST = \
  COPYING-DOCS \
  README \
  README.windows \
+ news.pan.NZB.service \
  pan.appdata.xml.in \
  pan.desktop.in \
  pan-git.version \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]