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

# $NetBSD: Makefile,v 1.8 2012/10/08 12:19:27 asau Exp $

DISTNAME=		policyd-1.82
PKGREVISION=		3
CATEGORIES=		mail
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=policyd/}

MAINTAINER=		ghen@NetBSD.org
HOMEPAGE=		http://www.policyd.org/
COMMENT=		Policy daemon for Postfix with greylisting and throttling

USE_TOOLS+=		gmake
USE_LANGUAGES=		c c++

BUILD_TARGET=		build

BUILD_DEFS+=		VARBASE

BINDIR=			${PREFIX}/libexec/policyd
DOCDIR=			${PREFIX}/share/doc/policyd
EGDIR=			${PREFIX}/share/examples/policyd
INSTALLATION_DIRS=	${BINDIR} ${DOCDIR} ${EGDIR}

CONF_FILES=		${EGDIR}/policyd.conf ${PKG_SYSCONFDIR}/policyd.conf

RCD_SCRIPTS=		policyd

SUBST_CLASSES+=		config
SUBST_STAGE.config=	post-build
SUBST_FILES.config=	policyd.conf
SUBST_SED.config=	-e 's,%%VARBASE%%,${VARBASE},'

SUBST_CLASSES+=		dbtype
SUBST_STAGE.dbtype=	post-build
SUBST_FILES.dbtype=	DATABASE.mysql
SUBST_SED.dbtype=	-e 's,TYPE=,ENGINE=,'

FILES_SUBST+=		BINDIR=${BINDIR}
MESSAGE_SUBST+=		BINDIR=${BINDIR}
MESSAGE_SUBST+=		EGDIR=${EGDIR}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/policyd ${DESTDIR}${BINDIR}
	${INSTALL_PROGRAM} ${WRKSRC}/cleanup ${DESTDIR}${BINDIR}
	${INSTALL_PROGRAM} ${WRKSRC}/stats ${DESTDIR}${BINDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${DOCDIR}
	${INSTALL_DATA} ${WRKSRC}/policyd.conf ${DESTDIR}${EGDIR}
	${INSTALL_DATA} ${WRKSRC}/doc/blacklist_helo.sql ${DESTDIR}${EGDIR}
	${INSTALL_DATA} ${WRKSRC}/doc/whitelist.sql ${DESTDIR}${EGDIR}
	${INSTALL_DATA} ${WRKSRC}/DATABASE.mysql ${DESTDIR}${EGDIR}

.include "../../mk/mysql.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>