From owner-svn-ports-all@freebsd.org Sat Feb 6 12:06:00 2021 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 2033B547369; Sat, 6 Feb 2021 12:06:00 +0000 (UTC) (envelope-from tagattie@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DXrbX0MD1z4WvR; Sat, 6 Feb 2021 12:06:00 +0000 (UTC) (envelope-from tagattie@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 E8BED1148D; Sat, 6 Feb 2021 12:05:59 +0000 (UTC) (envelope-from tagattie@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 116C5xhB099287; Sat, 6 Feb 2021 12:05:59 GMT (envelope-from tagattie@FreeBSD.org) Received: (from tagattie@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 116C5waH099281; Sat, 6 Feb 2021 12:05:58 GMT (envelope-from tagattie@FreeBSD.org) Message-Id: <202102061205.116C5waH099281@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tagattie set sender to tagattie@FreeBSD.org using -f From: Hiroki Tagato Date: Sat, 6 Feb 2021 12:05:58 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r564219 - in head/mail: . py-mailnag py-mailnag/files X-SVN-Group: ports-head X-SVN-Commit-Author: tagattie X-SVN-Commit-Paths: in head/mail: . py-mailnag py-mailnag/files X-SVN-Commit-Revision: 564219 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.34 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: Sat, 06 Feb 2021 12:06:00 -0000 Author: tagattie Date: Sat Feb 6 12:05:58 2021 New Revision: 564219 URL: https://svnweb.freebsd.org/changeset/ports/564219 Log: Add a new port mail/py-mailnag Mailnag is a daemon program that checks POP3 and IMAP servers for new mail. On mail arrival it performs various actions provided by plugins. Mailnag comes with a set of desktop-independent default plugins for visual/sound notifications, script execution etc. and can be extended with additional plugins easily. WWW: https://github.com/pulb/mailnag Added: head/mail/py-mailnag/ head/mail/py-mailnag/Makefile (contents, props changed) head/mail/py-mailnag/distinfo (contents, props changed) head/mail/py-mailnag/files/ head/mail/py-mailnag/files/patch-mailnag (contents, props changed) head/mail/py-mailnag/files/patch-mailnag-config (contents, props changed) head/mail/py-mailnag/pkg-descr (contents, props changed) Modified: head/mail/Makefile Modified: head/mail/Makefile ============================================================================== --- head/mail/Makefile Sat Feb 6 11:50:32 2021 (r564218) +++ head/mail/Makefile Sat Feb 6 12:05:58 2021 (r564219) @@ -497,6 +497,7 @@ SUBDIR += py-fuglu SUBDIR += py-mail-parser SUBDIR += py-mailmanclient + SUBDIR += py-mailnag SUBDIR += py-managesieve3 SUBDIR += py-milter SUBDIR += py-notmuch Added: head/mail/py-mailnag/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/py-mailnag/Makefile Sat Feb 6 12:05:58 2021 (r564219) @@ -0,0 +1,48 @@ +# $FreeBSD$ + +PORTNAME= mailnag +DISTVERSIONPREFIX= v +DISTVERSION= 2.1.0 +CATEGORIES= mail python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= tagattie@FreeBSD.org +COMMENT= Extensible mail notification daemon + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libnotify.so:devel/libnotify \ + libsecret-1.so:security/libsecret +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dbus>0:devel/py-dbus@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setproctitle>0:devel/py-setproctitle@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}xdg>0:devel/py-xdg@${PY_FLAVOR} + +USES= desktop-file-utils gettext-tools gnome python:3.5+ shebangfix + +USE_GITHUB= yes +GH_ACCOUNT= pulb + +USE_GNOME= gdkpixbuf2 glib20 gtk30 pygobject3 +USE_GSTREAMER1= yes +USE_PYTHON= autoplist distutils + +SHEBANG_FILES= mailnag mailnag-config +SHEBANG_GLOB= *.py + +NO_ARCH= yes + +PORTDOCS= AUTHORS NEWS README.md + +OPTIONS_DEFINE= DOCS + +post-patch: + ${REINPLACE_CMD} -e 's|/usr/bin|${PREFIX}/bin|' \ + ${WRKSRC}/data/mailnag-config.desktop \ + ${WRKSRC}/data/mailnag.desktop + +post-install-DOCS-on: + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} + +.include Added: head/mail/py-mailnag/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/py-mailnag/distinfo Sat Feb 6 12:05:58 2021 (r564219) @@ -0,0 +1,3 @@ +TIMESTAMP = 1611988656 +SHA256 (pulb-mailnag-v2.1.0_GH0.tar.gz) = ceba2fa7486b3d63915fcf20a29351fcf88ed6678ebe9fbe3be964921de2ecfd +SIZE (pulb-mailnag-v2.1.0_GH0.tar.gz) = 178552 Added: head/mail/py-mailnag/files/patch-mailnag ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/py-mailnag/files/patch-mailnag Sat Feb 6 12:05:58 2021 (r564219) @@ -0,0 +1,19 @@ +--- mailnag.orig 2021-01-30 10:40:37 UTC ++++ mailnag +@@ -30,6 +30,7 @@ import argparse + import logging + import os + import signal ++from setproctitle import setproctitle + + from Mailnag.common.utils import fix_cwd + +@@ -86,7 +87,7 @@ def main(): + mainloop = GLib.MainLoop() + daemon = None + +- set_procname(PROGNAME) ++ setproctitle(PROGNAME) + + DBusGMainLoop(set_as_default = True) + GLib.unix_signal_add(GLib.PRIORITY_HIGH, signal.SIGTERM, Added: head/mail/py-mailnag/files/patch-mailnag-config ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/py-mailnag/files/patch-mailnag-config Sat Feb 6 12:05:58 2021 (r564219) @@ -0,0 +1,19 @@ +--- mailnag-config.orig 2020-12-30 17:29:49 UTC ++++ mailnag-config +@@ -25,6 +25,7 @@ import os + import subprocess + import logging + from gi.repository import Gtk ++from setproctitle import setproctitle + + from Mailnag.common.utils import fix_cwd, init_logging + +@@ -80,7 +81,7 @@ class App(Gtk.Application): + + + def main(): +- set_procname("mailnag-config") ++ setproctitle("mailnag-config") + init_logging(enable_stdout = True, enable_syslog = False, log_level = LOG_LEVEL) + app = App() + app.run(None) Added: head/mail/py-mailnag/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/py-mailnag/pkg-descr Sat Feb 6 12:05:58 2021 (r564219) @@ -0,0 +1,7 @@ +Mailnag is a daemon program that checks POP3 and IMAP servers for new +mail. On mail arrival it performs various actions provided by +plugins. Mailnag comes with a set of desktop-independent default +plugins for visual/sound notifications, script execution etc. and can +be extended with additional plugins easily. + +WWW: https://github.com/pulb/mailnag