aboutsummaryrefslogtreecommitdiffstats
path: root/mail/queue-repair/Makefile
blob: 1cfd1cbc690dce6a8a9b0e9a001aebbe00227ef2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# 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

LICENSE=    GPLv2

NO_STAGE=   yes
USE_PYTHON= yes

OPTIONS_DEFINE=     DOCS QMAIL_PORT
OPTIONS_DEFAULT=    QMAIL_PORT
QMAIL_PORT_DESC=    Depend on qmail port

QMAIL_PORT_USES=    qmail:run

.include <bsd.port.options.mk>

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>