2021-05-24 21:49:01 +02:00
|
|
|
# $NetBSD: Makefile,v 1.20 2021/05/24 19:52:53 wiz Exp $
|
2007-01-18 07:35:24 +01:00
|
|
|
#
|
|
|
|
|
2017-04-04 10:27:56 +02:00
|
|
|
DISTNAME= qmqtool-1.15
|
2021-05-24 21:49:01 +02:00
|
|
|
PKGREVISION= 5
|
2014-06-02 16:11:43 +02:00
|
|
|
CATEGORIES= mail
|
|
|
|
MASTER_SITES= ${HOMEPAGE}/files/
|
|
|
|
EXTRACT_SUFX= .tgz
|
2007-01-18 07:35:24 +01:00
|
|
|
|
2014-06-02 16:11:43 +02:00
|
|
|
MAINTAINER= schmonz@NetBSD.org
|
2020-01-26 18:30:40 +01:00
|
|
|
HOMEPAGE= https://jeremy.kister.net/code/qmqtool/
|
2014-06-02 16:11:43 +02:00
|
|
|
COMMENT= View and safely modify qmail queue
|
|
|
|
LICENSE= artistic
|
2007-01-18 07:35:24 +01:00
|
|
|
|
2014-06-02 16:11:43 +02:00
|
|
|
USE_LANGUAGES= # none
|
|
|
|
USE_TOOLS+= perl:run
|
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX:Q}
|
|
|
|
CONFIGURE_ARGS+= --mandir=${PREFIX:Q}/${PKGMANDIR:Q}
|
|
|
|
CONFIGURE_ARGS+= --perl=${PERL5:Q}
|
|
|
|
CONFIGURE_ARGS+= --qmaildir=${QMAILDIR:Q}
|
|
|
|
CONFIGURE_ARGS+= --scriptdir=${PREFIX:Q}/sbin
|
|
|
|
BUILD_TARGET= qmqtool
|
2007-01-18 07:35:24 +01:00
|
|
|
|
|
|
|
SUBST_CLASSES+= paths
|
2017-04-04 10:27:56 +02:00
|
|
|
SUBST_STAGE.paths= pre-configure
|
|
|
|
SUBST_FILES.paths= src/qmqtool
|
2019-05-23 21:22:54 +02:00
|
|
|
SUBST_VARS.paths= PS
|
|
|
|
SUBST_VARS.paths+= GREP
|
|
|
|
SUBST_VARS.paths+= RCD_SCRIPTS_DIR
|
2017-04-04 10:27:56 +02:00
|
|
|
|
|
|
|
SUBST_CLASSES+= users
|
|
|
|
SUBST_STAGE.users= pre-configure
|
|
|
|
SUBST_FILES.users= src/qmqtool
|
2019-05-23 21:22:54 +02:00
|
|
|
SUBST_VARS.users= QMAIL_SEND_USER
|
|
|
|
SUBST_VARS.users+= QMAIL_QUEUE_USER
|
2007-01-18 07:35:24 +01:00
|
|
|
|
2014-06-02 16:09:20 +02:00
|
|
|
INSTALLATION_DIRS= ${PKGMANDIR}/man8 sbin
|
|
|
|
INSTALLATION_DIRS+= share/doc/qmqtool share/examples/qmqtool
|
2017-04-04 10:27:56 +02:00
|
|
|
BUILD_DEFS+= QMAILDIR QMAIL_QUEUE_USER QMAIL_SEND_USER
|
2007-01-18 07:35:24 +01:00
|
|
|
|
|
|
|
do-install:
|
2014-06-02 16:09:20 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/qmqtool ${DESTDIR}${PREFIX}/sbin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/qmqtool.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
|
|
|
|
.for i in Artistic ChangeLog FAQ README
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${DESTDIR}${PREFIX}/share/doc/qmqtool/${i}
|
|
|
|
.endfor
|
|
|
|
cp -Rp ${WRKSRC}/contrib ${DESTDIR}${PREFIX}/share/examples/qmqtool
|
2007-01-18 07:35:24 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|