svn commit: r442139 - in head/mail: . py-pymailq py-pymailq/files

Fukang Chen loader at FreeBSD.org
Wed May 31 07:15:22 UTC 2017


Author: loader (doc committer)
Date: Wed May 31 07:15:20 2017
New Revision: 442139
URL: https://svnweb.freebsd.org/changeset/ports/442139

Log:
  [NEW PORT] mail/py-pymailq: Postfix queue control python tool
  
  The pymailq module makes it easy to view and control Postfix mails
  queue. It provide several classes to store, view and interact with
  mail queue using Postfix command line tools. This module is provided
  for automation and monitoring developments.
  
  WWW: https://github.com/outini/pymailq
  
  Reviewed_by: koobs, mat
  Approved by: koobs (ports)
  Differential_Revision: D10976

Added:
  head/mail/py-pymailq/
  head/mail/py-pymailq/Makefile   (contents, props changed)
  head/mail/py-pymailq/distinfo   (contents, props changed)
  head/mail/py-pymailq/files/
  head/mail/py-pymailq/files/patch-setup.py   (contents, props changed)
  head/mail/py-pymailq/pkg-descr   (contents, props changed)
Modified:
  head/mail/Makefile

Modified: head/mail/Makefile
==============================================================================
--- head/mail/Makefile	Wed May 31 06:53:21 2017	(r442138)
+++ head/mail/Makefile	Wed May 31 07:15:20 2017	(r442139)
@@ -543,6 +543,7 @@
     SUBDIR += py-milter
     SUBDIR += py-notmuch
     SUBDIR += py-ppolicy
+    SUBDIR += py-pymailq
     SUBDIR += py-pyspf
     SUBDIR += py-spambayes
     SUBDIR += py-twistedMail

Added: head/mail/py-pymailq/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/mail/py-pymailq/Makefile	Wed May 31 07:15:20 2017	(r442139)
@@ -0,0 +1,39 @@
+# Created by: Fukang Chen <loader at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	pymailq
+PORTVERSION=	0.5.4
+CATEGORIES=	mail python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	loader at FreeBSD.org
+COMMENT=	Postfix queue control python tool
+
+LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	postfix:mail/postfix
+
+NO_ARCH=	yes
+USES=		python:2.7+
+USE_PYTHON=	autoplist distutils concurrent
+
+.include <bsd.port.pre.mk>
+
+PLIST_FILES+=	man/man1/pqshell-${PYTHON_VER}.1.gz
+.if ${PYTHON_VERSION} == ${PYTHON_DEFAULT_VERSION}
+PLIST_FILES+=	man/man1/pqshell.1.gz
+.endif
+
+post-patch:
+	@${REINPLACE_CMD} -e 's|/usr/sbin/postqueue|${LOCALBASE}/sbin/postqueue|' \
+		${WRKSRC}/pymailq/store.py
+
+post-install:
+	${INSTALL_MAN} ${WRKSRC}/man/pqshell.1 ${STAGEDIR}${MANPREFIX}/man/man1/pqshell-${PYTHON_VER}.1
+.if ${PYTHON_VERSION} == ${PYTHON_DEFAULT_VERSION}
+	${LN} -sf pqshell-${PYTHON_VER}.1 ${STAGEDIR}${MANPREFIX}/man/man1/pqshell.1
+.endif
+
+.include <bsd.port.post.mk>

Added: head/mail/py-pymailq/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/mail/py-pymailq/distinfo	Wed May 31 07:15:20 2017	(r442139)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1495872044
+SHA256 (pymailq-0.5.4.tar.gz) = 25e6afc496c5cbd46221ced5c3db2f0bf86acdbe2f0a8753493143b75768b493
+SIZE (pymailq-0.5.4.tar.gz) = 25038

Added: head/mail/py-pymailq/files/patch-setup.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/mail/py-pymailq/files/patch-setup.py	Wed May 31 07:15:20 2017	(r442139)
@@ -0,0 +1,11 @@
+--- setup.py.orig	2017-05-29 11:46:42 UTC
++++ setup.py
+@@ -39,8 +39,6 @@ if __name__ == '__main__':
+         scripts=['bin/pqshell'],
+         packages=['pymailq'],
+         package_dir={'pymailq': 'pymailq'},
+-        data_files=[('share/doc/pymailq', ['README.rst', 'LICENSE']),
+-                      ('share/man/man1/', ['man/pqshell.1'])],
+         keywords=['postfix', 'shell', 'mailq', 'python', 'pqshell', 'postqueue'],
+         classifiers=[
+             'Development Status :: 2 - Pre-Alpha',

Added: head/mail/py-pymailq/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/mail/py-pymailq/pkg-descr	Wed May 31 07:15:20 2017	(r442139)
@@ -0,0 +1,6 @@
+The pymailq module makes it easy to view and control Postfix mails
+queue. It provide several classes to store, view and interact with
+mail queue using Postfix command line tools. This module is provided
+for automation and monitoring developments.
+
+WWW: https://github.com/outini/pymailq


More information about the svn-ports-all mailing list