Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Oct 2020 14:02:07 +0000 (UTC)
From:      Mateusz Piotrowski <0mp@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r551495 - in head/deskutils/notification-daemon: . files
Message-ID:  <202010051402.095E27nv037966@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: 0mp
Date: Mon Oct  5 14:02:07 2020
New Revision: 551495
URL: https://svnweb.freebsd.org/changeset/ports/551495

Log:
  Add a D-Bus service to automatically start the daemon when needed
  
  This patch adds a D-Bus service file, which makes the notification-daemon
  start automatically when a user send a notification (for example, using
  notify-send(1)).

Added:
  head/deskutils/notification-daemon/files/
  head/deskutils/notification-daemon/files/org.freedesktop.Notifications.service.in   (contents, props changed)
Modified:
  head/deskutils/notification-daemon/Makefile
  head/deskutils/notification-daemon/pkg-plist

Modified: head/deskutils/notification-daemon/Makefile
==============================================================================
--- head/deskutils/notification-daemon/Makefile	Mon Oct  5 13:57:04 2020	(r551494)
+++ head/deskutils/notification-daemon/Makefile	Mon Oct  5 14:02:07 2020	(r551495)
@@ -3,6 +3,7 @@
 
 PORTNAME=	notification-daemon
 PORTVERSION=	3.20.0
+PORTERVISION=	1
 CATEGORIES=	deskutils gnome
 MASTER_SITES=	GNOME
 
@@ -22,5 +23,12 @@ USE_XORG=	x11
 GNU_CONFIGURE=	yes
 
 PORTSCOUT=	limitw:1,even
+
+SUB_FILES=	org.freedesktop.Notifications.service
+
+post-install:
+	@${MKDIR} ${STAGEDIR}${PREFIX}/share/dbus-1/services
+	${INSTALL_DATA} ${WRKDIR}/org.freedesktop.Notifications.service \
+		${STAGEDIR}${PREFIX}/share/dbus-1/services
 
 .include <bsd.port.mk>

Added: head/deskutils/notification-daemon/files/org.freedesktop.Notifications.service.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/deskutils/notification-daemon/files/org.freedesktop.Notifications.service.in	Mon Oct  5 14:02:07 2020	(r551495)
@@ -0,0 +1,5 @@
+# $FreeBSD$
+
+[D-BUS Service]
+Name=org.freedesktop.Notifications
+Exec=%%PREFIX%%/libexec/notification-daemon

Modified: head/deskutils/notification-daemon/pkg-plist
==============================================================================
--- head/deskutils/notification-daemon/pkg-plist	Mon Oct  5 13:57:04 2020	(r551494)
+++ head/deskutils/notification-daemon/pkg-plist	Mon Oct  5 14:02:07 2020	(r551495)
@@ -1,5 +1,6 @@
 libexec/notification-daemon
 share/applications/notification-daemon.desktop
+share/dbus-1/services/org.freedesktop.Notifications.service
 share/locale/af/LC_MESSAGES/notification-daemon.mo
 share/locale/an/LC_MESSAGES/notification-daemon.mo
 share/locale/ar/LC_MESSAGES/notification-daemon.mo



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202010051402.095E27nv037966>