File:  [cvs.NetBSD.org] / pkgsrc / mail / qmqtool / Makefile
Revision 1.6: download - view: text, annotated - select for diffs
Mon Oct 8 12:19:29 2012 UTC (12 years, 2 months ago) by asau
Branches: MAIN
CVS tags: pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4, HEAD
Drop PKG_DESTDIR_SUPPORT setting, "user-destdir" is default these days.

# $NetBSD: Makefile,v 1.6 2012/10/08 12:19:29 asau Exp $
#

DISTNAME=	qmqtool-current
PKGNAME=	${DISTNAME:S/-current/-1.13/}
PKGREVISION=	1
CATEGORIES=	mail
MASTER_SITES=	${HOMEPAGE}
EXTRACT_SUFX=	.tgz

MAINTAINER=	schmonz@NetBSD.org
HOMEPAGE=	http://jeremy.kister.net/code/qmqtool/
COMMENT=	View and safely modify qmail queue

WRKSRC=		${WRKDIR}/${PKGNAME_NOREV}
USE_LANGUAGES=	# none
USE_TOOLS+=	perl:run
NO_BUILD=	yes
REPLACE_PERL=	qmqtool

SUBST_CLASSES+=		paths
SUBST_FILES.paths=	${WRKSRC}/qmqtool
SUBST_SED.paths+=	-e 's,@QMAILDIR@,${QMAILDIR:Q},g'
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=	do-configure

INSTALLATION_DIRS=	sbin share/doc/qmqtool share/examples/qmqtool
BUILD_DEFS+=		QMAILDIR

do-install:
	cd ${WRKSRC}; \
	cp qmqtool ${DESTDIR}${PREFIX}/sbin; \
	cp Artistic ChangeLog FAQ README \
		${DESTDIR}${PREFIX}/share/doc/qmqtool; \
	cp -Rp contrib ${DESTDIR}${PREFIX}/share/examples/qmqtool
	${CHMOD} 0700 ${DESTDIR}${PREFIX}/sbin/qmqtool

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

CVSweb <webmaster@jp.NetBSD.org>