From owner-svn-ports-all@freebsd.org Mon Oct 5 14:02:08 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A29C842576B; Mon, 5 Oct 2020 14:02:08 +0000 (UTC) (envelope-from 0mp@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4C4j2m3PhTz3gkH; Mon, 5 Oct 2020 14:02:08 +0000 (UTC) (envelope-from 0mp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 594D416A75; Mon, 5 Oct 2020 14:02:08 +0000 (UTC) (envelope-from 0mp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 095E28x6037970; Mon, 5 Oct 2020 14:02:08 GMT (envelope-from 0mp@FreeBSD.org) Received: (from 0mp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 095E27nv037966; Mon, 5 Oct 2020 14:02:07 GMT (envelope-from 0mp@FreeBSD.org) Message-Id: <202010051402.095E27nv037966@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: 0mp set sender to 0mp@FreeBSD.org using -f From: Mateusz Piotrowski <0mp@FreeBSD.org> Date: Mon, 5 Oct 2020 14:02:07 +0000 (UTC) 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 X-SVN-Group: ports-head X-SVN-Commit-Author: 0mp X-SVN-Commit-Paths: in head/deskutils/notification-daemon: . files X-SVN-Commit-Revision: 551495 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Oct 2020 14:02:08 -0000 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 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