[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / mail / dnsbl-milter

File: [cvs.NetBSD.org] / pkgsrc / mail / dnsbl-milter / Makefile (download)

Revision 1.6, Mon Jun 24 10:59:41 2019 UTC (3 months, 3 weeks ago) by nia
Branch: MAIN
CVS Tags: pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, HEAD
Changes since 1.5: +2 -2 lines

More http -> https.

Reviewed by hand.

# $NetBSD: Makefile,v 1.6 2019/06/24 10:59:41 nia Exp $
#

VERSION=	6.45
PKGNAME=	dnsbl-milter-${VERSION}
DISTNAME=	dnsbl-${VERSION}
CATEGORIES=	mail
MASTER_SITES=	http://www.five-ten-sg.com/dnsbl/packages/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://www.five-ten-sg.com/dnsbl/
COMMENT=	DNSBL Sendmail milter
LICENSE=	gnu-gpl-v3

GNU_CONFIGURE=	yes
PKG_SYSCONFSUBDIR?=	dnsbl-milter
CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR}/${PKG_SYSCONFSUBDIR}
CONFIGURE_ARGS+=	ac_cv_path_BASH=${SH}

USE_LANGUAGES=	c c++03

RCD_SCRIPTS=		dnsbl-milter

SUBST_CLASSES+=		conf
SUBST_STAGE.conf=	pre-configure
SUBST_FILES.conf=	src/dnsbl.cpp
SUBST_FILES.conf+=	src/tokenizer.cpp
SUBST_FILES.conf+=	src/context.cpp
SUBST_SED.conf+=	-e "s|@CONFDIR@|${PKG_SYSCONFDIR}|g"
SUBST_MESSAGE.conf=	Fixing paths for configuration

EGDIR=		share/examples/dnsbl-milter

CONFS=		dnsbl.conf hosts-ignore.conf tld.conf html-tags.conf
.for f in ${CONFS}
CONF_FILES+=		${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f}
.endfor

INSTALLATION_DIRS=	${EGDIR} ${PKGMANDIR}/man1 ${PKGMANDIR}/man5
INSTALL_DIRS=	src man

post-install:
	cd ${WRKSRC} && ${INSTALL_DATA} ${CONFS} ${DESTDIR}${PREFIX}/${EGDIR}

.include "../../mail/libmilter/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"