freebsd-ports/mail/qmHandle/Makefile
2003-04-06 19:51:37 +00:00

44 lines
905 B
Makefile

# New ports collection makefile for: qmHandle
# Date created: 17 August 2001
# Whom: petef
#
# $FreeBSD$
#
PORTNAME= qmHandle
PORTVERSION= 1.0.0
PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= qmhandle
MAINTAINER= petef@FreeBSD.org
COMMENT= Tool to view and manage a qmail queue
RUN_DEPENDS= ${QMAIL_DIR}/bin/qmail-qstat:${PORTSDIR}/mail/qmail
NO_WRKSUBDIR= yes
NO_BUILD= yes
USE_PERL5= yes
.if exists(${LOCALBASE}/qmail/bin/qmail-qstat)
QMAIL_DIR?= ${LOCALBASE}/qmail
.else
QMAIL_DIR?= /var/qmail
.endif
post-patch:
@${PERL} -pi -e 's,^#!/usr/bin/perl,#!${PERL},; \
s,%%LOCALBASE%%,${LOCALBASE},g' ${WRKSRC}/qmHandle
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/qmHandle ${PREFIX}/bin
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in HISTORY README
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>