svn commit: r551495 - in head/deskutils/notification-daemon: . files
Mateusz Piotrowski
0mp at FreeBSD.org
Mon Oct 5 14:02:08 UTC 2020
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
More information about the svn-ports-all
mailing list