1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00
freebsd-ports/mail/queue-repair/Makefile
Bryan Drewery b2c34b3987 - Rename and add missing description for QMAIL_PORT
This is kept mostly for backwards compatibility. Our
  mail/qmail uses 'qnofiles' group instead of qmail's default
  'nofiles'. Using QMAIL_PORT means you want to use the
  ports version of qmail and not a custom install
2013-03-18 00:20:56 +00:00

45 lines
998 B
Makefile

# Created by: Sergei Kolobov <sergei@kolobov.com>
# $FreeBSD$
PORTNAME= queue-repair
PORTVERSION= 0.9.0
PORTREVISION= 1
CATEGORIES= mail python
MASTER_SITES= http://pyropus.ca/software/${PORTNAME}/
MAINTAINER= bdrewery@FreeBSD.org
COMMENT= Qmail queue diagnostic and repair tool
USE_PYTHON= yes
OPTIONS_DEFINE= DOCS QMAIL_PORT
OPTIONS_DEFAULT= QMAIL_PORT
QMAIL_PORT_DESC= Depend on qmail port
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MQMAIL_PORT}
USES= qmail:run
.endif
PLIST_FILES= bin/queue-repair
PORTDOCS= BLURB CHANGELOG TODO
do-build:
${REINPLACE_CMD} -e 's,^#!/usr/bin/python,#!${PYTHON_CMD},' \
${WRKSRC}/queue_repair.py
.if ${PORT_OPTIONS:MQMAIL_PORT}
${REINPLACE_CMD} -e 's,nofiles,qnofiles,' ${WRKSRC}/queue_repair.py
.endif
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/queue_repair.py ${PREFIX}/bin/queue-repair
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
. for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
. endfor
.endif
.include <bsd.port.mk>