2006-03-30 11:06:16 +02:00
|
|
|
# $NetBSD: Makefile,v 1.14 2006/03/30 09:06:16 is Exp $
|
2004-12-22 16:51:38 +01:00
|
|
|
#
|
|
|
|
|
2006-03-30 11:06:16 +02:00
|
|
|
DISTNAME= postgrey-1.24
|
2004-12-22 16:51:38 +01:00
|
|
|
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
|
|
|
|
|
2005-04-17 18:32:10 +02:00
|
|
|
NO_CONFIGURE= yes
|
2005-07-16 03:19:06 +02:00
|
|
|
USE_TOOLS+= perl:run
|
2004-12-22 16:51:38 +01:00
|
|
|
|
|
|
|
.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}
|
2005-08-23 13:48:47 +02:00
|
|
|
PKG_USERS= ${POSTGREY_USER}:${POSTGREY_GROUP}::Postgrey\ Daemon
|
2004-12-22 16:51:38 +01:00
|
|
|
|
|
|
|
.for i in postgrey_whitelist_clients postgrey_whitelist_recipients
|
2005-04-17 18:08:39 +02:00
|
|
|
CONF_FILES+= ${PREFIX}/${EGDIR}/${i} \
|
|
|
|
${PKG_SYSCONFDIR}/${i}
|
2004-12-22 16:51:38 +01:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
OWN_DIRS_PERMS+= ${POSTGREY_DBDIR} \
|
|
|
|
${POSTGREY_USER} ${POSTGREY_GROUP} 0775
|
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
FILES_SUBST+= PERL=${PERL5:Q}
|
2004-12-22 16:51:38 +01:00
|
|
|
|
|
|
|
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'
|
|
|
|
#
|
2006-02-19 02:01:39 +01:00
|
|
|
SUBST_MESSAGE.postgrey= Fixing defaults.
|
2004-12-22 16:51:38 +01:00
|
|
|
|
2005-06-16 08:57:37 +02:00
|
|
|
INSTALLATION_DIRS= sbin
|
|
|
|
|
2004-12-22 16:51:38 +01:00
|
|
|
do-build:
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/postgrey ${PREFIX}/sbin/postgrey
|
2006-02-19 02:01:39 +01:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/${DOCDIR}
|
2004-12-22 16:51:38 +01:00
|
|
|
.for i in COPYING Changes README
|
2005-04-17 18:08:39 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/${DOCDIR}/${i}
|
2004-12-22 16:51:38 +01:00
|
|
|
.endfor
|
2006-02-19 02:01:39 +01:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/${EGDIR}
|
2004-12-22 16:51:38 +01:00
|
|
|
.for i in postgrey_whitelist_clients postgrey_whitelist_recipients
|
2005-04-17 18:08:39 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/${EGDIR}/${i}
|
2004-12-22 16:51:38 +01:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include "../../databases/db4/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|