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

File: [cvs.NetBSD.org] / pkgsrc / mail / postgrey / Makefile (download)

Revision 1.52, Sun Jan 26 17:31:36 2020 UTC (7 months, 3 weeks ago) by rillig
Branch: MAIN
CVS Tags: pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1
Changes since 1.51: +2 -2 lines

all: migrate homepages from http to https

pkglint -r --network --only "migrate"

As a side-effect of migrating the homepages, pkglint also fixed a few
indentations in unrelated lines. These and the new homepages have been
checked manually.

# $NetBSD: Makefile,v 1.52 2020/01/26 17:31:36 rillig Exp $

DISTNAME=	postgrey-1.36
PKGREVISION=	6
CATEGORIES=	mail
MASTER_SITES=	http://postgrey.schweikert.ch/pub/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://postgrey.schweikert.ch/
COMMENT=	Postfix Greylist Policy Server
LICENSE=	gnu-gpl-v2

DEPENDS+=	p5-BerkeleyDB-[0-9]*:../../databases/p5-BerkeleyDB
DEPENDS+=	p5-IO-Multiplex-[0-9]*:../../devel/p5-IO-Multiplex
DEPENDS+=	p5-Net-Server-[0-9]*:../../net/p5-Net-Server
DEPENDS+=	p5-NetAddr-IP-[0-9]*:../../net/p5-NetAddr-IP

BDB_ACCEPTED=		db4 db5
NO_CONFIGURE=		yes
USE_TOOLS+=		perl:run

.include "../../mk/bsd.prefs.mk"
.include "options.mk"

POSTGREY_USER?=		postgrey
POSTGREY_GROUP?=	postgrey
POSTGREY_DBDIR?=	${VARBASE}/db/${PKGBASE}

PKG_SYSCONFSUBDIR=	postfix

DOCDIR=			share/doc/${PKGBASE}
EGDIR=			share/examples/${PKGBASE}

RCD_SCRIPTS=		postgrey
PKG_GROUPS=		${POSTGREY_GROUP}
PKG_USERS=		${POSTGREY_USER}:${POSTGREY_GROUP}
PKG_GROUPS_VARS+=	POSTGREY_GROUP
PKG_USERS_VARS+=	POSTGREY_USER

PKG_GECOS.${POSTGREY_USER}=	Postgrey Daemon User

BUILD_DEFS+=		POSTGREY_DBDIR VARBASE

.for i in postgrey_whitelist_clients postgrey_whitelist_recipients
CONF_FILES+=		${PREFIX}/${EGDIR}/${i} \
			${PKG_SYSCONFDIR}/${i}
.endfor

OWN_DIRS_PERMS+=	${POSTGREY_DBDIR} \
			${POSTGREY_USER} ${POSTGREY_GROUP} 0775

FILES_SUBST+=		PERL=${PERL5:Q}
FILES_SUBST+=		POSTGREY_USER=${POSTGREY_USER}
FILES_SUBST+=		POSTGREY_GROUP=${POSTGREY_GROUP}
FILES_SUBST+=		POSTGREY_DBDIR=${POSTGREY_DBDIR}

SUBST_CLASSES+=		postgrey
SUBST_STAGE.postgrey=	pre-build
SUBST_FILES.postgrey=	postgrey
# Perl
SUBST_SED.postgrey=	-e 's,/usr/bin/perl,${PERL5},g'
# User
SUBST_SED.postgrey+=	-e "s,|| 'postgrey',|| '${POSTGREY_USER}',g"
SUBST_SED.postgrey+=	-e "s,default: postgrey,default: ${POSTGREY_USER},g"
SUBST_SED.postgrey+=	-e "s,C<postgrey>,C<${POSTGREY_USER}>,g"
# Group
SUBST_SED.postgrey+=	-e "s,|| 'nogroup',|| '${POSTGREY_GROUP}',g"
SUBST_SED.postgrey+=	-e "s,default: nogroup,default: ${POSTGREY_GROUP},g"
# Database
SUBST_SED.postgrey+=	-e 's,/var/spool/postfix/postgrey,${POSTGREY_DBDIR},g'
# Config
SUBST_SED.postgrey+=	-e 's,/etc/postfix,${PKG_SYSCONFDIR},g'
#
SUBST_MESSAGE.postgrey=	Fixing defaults.

INSTALLATION_DIRS+=	sbin ${DOCDIR} ${EGDIR}

do-build:

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/postgrey ${DESTDIR}${PREFIX}/sbin/postgrey
.for i in COPYING Changes README
	${INSTALL_DATA} ${WRKSRC}/${i} ${DESTDIR}${PREFIX}/${DOCDIR}/${i}
.endfor
.for i in postgrey_whitelist_clients postgrey_whitelist_recipients
	${INSTALL_DATA} ${WRKSRC}/${i} ${DESTDIR}${PREFIX}/${EGDIR}/${i}
.endfor

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