mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-13 03:03:15 +00:00
9f1cce221f
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
40 lines
988 B
Makefile
40 lines
988 B
Makefile
# Created by: Fukang Chen <loader@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= pymailq
|
|
PORTVERSION= 0.5.4
|
|
CATEGORIES= mail python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= loader@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>
|