pkgsrc/mail/postgrey/Makefile
martti e2a5273e17 Updated mail/postgrey to 1.30
* 2007-08-02: version 1.30

- implemented --listen-queue-size option (you usually don't need to set it
  except for big sites).
- small fix to the 'native' syslogging implemented in 1.29

* 2007-07-23: version 1.29

- workaround for a possible crash with Sys::Syslog < 0.15 when syslog
  messages were generated during syslog file rotation
- use the 'native' logging socket with Sys::Syslog >= 0.15 (Philipp Koller)

* 2007-06-21: version 1.28

- improved logging (postgrey is now more verbose, use the new --quiet
  option if that bothers you)
- improved Exim support (see Debian bug #380257)
- workaround for a bug in Exchange dealing with temporary failures
  (use DSN code 4.2.0 instead of the default 4.7.1)
- added 'policy-test' script for testing postgrey's performance or pre-seeding
  the database
- fix logging of delayed, unresolveable clients in syslog (Andreas Metzler)
- more descriptive error message on DB failure (Adrian von Bidder)
- updated whitelist
- new homepage: http://postgrey.schweikert.ch/
2007-08-31 09:21:02 +00:00

85 lines
2.4 KiB
Makefile

# $NetBSD: Makefile,v 1.21 2007/08/31 09:21:02 martti Exp $
#
DISTNAME= postgrey-1.30
#PKGREVISION= 1
CATEGORIES= mail
MASTER_SITES= http://isg.ee.ethz.ch/tools/postgrey/pub/ \
http://isg.ee.ethz.ch/tools/postgrey/pub/old/
MAINTAINER= kim@tac.nyc.ny.us
HOMEPAGE= http://isg.ee.ethz.ch/tools/postgrey/
COMMENT= Postfix Greylist Policy Server
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
NO_CONFIGURE= yes
USE_TOOLS+= perl:run
.include "../../mk/bsd.prefs.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}
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 ${PREFIX}/sbin/postgrey
.for i in COPYING Changes README
${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/${DOCDIR}/${i}
.endfor
.for i in postgrey_whitelist_clients postgrey_whitelist_recipients
${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/${EGDIR}/${i}
.endfor
.include "../../databases/db4/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"