2012-10-05 14:41:45 +02:00
|
|
|
# Created by: petef
|
2001-08-24 20:29:56 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2007-08-13 15:50:54 +02:00
|
|
|
PORTNAME= qmhandle
|
2007-12-11 20:19:00 +01:00
|
|
|
PORTVERSION= 1.3.2
|
2008-08-27 16:24:45 +02:00
|
|
|
PORTREVISION= 2
|
2001-08-24 20:29:56 +02:00
|
|
|
CATEGORIES= mail
|
2009-08-22 02:28:34 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-1.3/${PORTNAME}-${PORTVERSION}
|
2001-08-24 20:29:56 +02:00
|
|
|
|
2012-12-18 14:56:17 +01:00
|
|
|
MAINTAINER= bdrewery@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Tool to view and manage a qmail queue
|
2001-08-24 20:29:56 +02:00
|
|
|
|
2013-07-05 14:46:45 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2012-08-03 17:34:45 +02:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2014-07-29 20:41:15 +02:00
|
|
|
USES= qmail:run perl5 tar:bzip2
|
2001-08-24 20:29:56 +02:00
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
2006-07-23 16:32:36 +02:00
|
|
|
PORTDOCS= HISTORY README
|
|
|
|
|
2014-02-09 04:25:02 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2012-08-03 17:34:45 +02:00
|
|
|
|
2001-08-24 20:29:56 +02:00
|
|
|
post-patch:
|
2008-08-27 16:24:45 +02:00
|
|
|
@${REINPLACE_CMD} -e 's,^#!/usr/bin/perl,#!${PERL},g' \
|
|
|
|
-e 's,%%LOCALBASE%%,${LOCALBASE},g' \
|
|
|
|
-e '/^##* *USER *CONFIGURATION *BEGIN *##*$$/,/^##* *USER *CONFIGURATION *END *##*$$/s/^\(#*\)my/\1our/g' \
|
|
|
|
${WRKSRC}/qmHandle
|
|
|
|
@${SED} -e 's,%%LOCALBASE%%,${LOCALBASE},g' ${FILESDIR}/qmHandle.conf.in > \
|
|
|
|
${WRKSRC}/qmHandle.conf.sample
|
2001-08-24 20:29:56 +02:00
|
|
|
|
|
|
|
do-install:
|
2014-02-09 04:25:02 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/qmHandle ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/qmHandle.conf.sample ${STAGEDIR}${PREFIX}/etc
|
2012-08-03 17:34:45 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2014-02-09 04:25:02 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2006-07-23 16:32:36 +02:00
|
|
|
.for file in ${PORTDOCS}
|
2014-02-09 04:25:02 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
|
2001-08-24 20:29:56 +02:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2014-02-09 04:25:02 +01:00
|
|
|
.include <bsd.port.mk>
|