blob: 81ad97d0acdc94452c87dfafcec30a533746f25c (
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
36
37
38
39
40
41
42
43
44
|
# $NetBSD: Makefile,v 1.11 2015/06/12 10:50:26 wiz Exp $
#
DISTNAME= qmqtool-1.14
PKGREVISION= 1
CATEGORIES= mail
MASTER_SITES= ${HOMEPAGE}/files/
EXTRACT_SUFX= .tgz
MAINTAINER= schmonz@NetBSD.org
HOMEPAGE= http://jeremy.kister.net/code/qmqtool/
COMMENT= View and safely modify qmail queue
LICENSE= artistic
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
SUBST_CLASSES+= paths
SUBST_FILES.paths= ${WRKSRC}/src/qmqtool
SUBST_SED.paths+= -e 's,@PS@,${PS},g'
SUBST_SED.paths+= -e 's,@GREP@,${GREP},g'
SUBST_SED.paths+= -e 's,@RCD_SCRIPTS_DIR@,${RCD_SCRIPTS_DIR},g'
SUBST_STAGE.paths= pre-configure
INSTALLATION_DIRS= ${PKGMANDIR}/man8 sbin
INSTALLATION_DIRS+= share/doc/qmqtool share/examples/qmqtool
BUILD_DEFS+= QMAILDIR
do-install:
${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
.include "../../mk/bsd.pkg.mk"
|