summaryrefslogtreecommitdiff
path: root/mail/qmHandle/Makefile
blob: 6c8db50c26d31c0d7b7bd56dad503ac6044b7a6b (plain)
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
# $NetBSD: Makefile,v 1.24 2015/06/12 10:50:26 wiz Exp $
#

DISTNAME=		qmhandle-1.3.2
PKGNAME=		${DISTNAME:S/h/H/}
PKGREVISION=		4
CATEGORIES=		mail
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=qmhandle/}

MAINTAINER=		schmonz@NetBSD.org
HOMEPAGE=		http://qmhandle.sourceforge.net/
COMMENT=		Tool to view and manage the qmail message queue
LICENSE=		gnu-gpl-v2

USE_TOOLS+=		perl:run
REPLACE_PERL=		qmHandle
NO_BUILD=		YES

SUBST_CLASSES+=		config
SUBST_STAGE.config=	do-configure
SUBST_FILES.config=	qmHandle
SUBST_SED.config=	-e 's|/var/qmail/queue/|${QMAIL_QUEUE_DIR}/|g'
SUBST_SED.config+=	-e 's|/etc/init.d/qmail|${RCD_SCRIPTS_DIR}/qmail|g'
.if exists(/usr/bin/pgrep)
SUBST_SED.config+=	-e 's|pidof|/usr/bin/pgrep|g'
.endif

INSTALLATION_DIRS=	bin share/doc/qmHandle
BUILD_DEFS+=		QMAIL_QUEUE_DIR RCD_SCRIPTS_DIR

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/qmHandle ${DESTDIR}${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/qmHandle

.include "../../mk/bsd.pkg.mk"