svn commit: r564219 - in head/mail: . py-mailnag py-mailnag/files
Hiroki Tagato
tagattie at FreeBSD.org
Sat Feb 6 12:06:00 UTC 2021
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 at 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 <bsd.port.mk>
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
More information about the svn-ports-head
mailing list