d2ca14a3f1
a) refer 'perl' in their Makefile, or b) have a directory name of p5-*, or c) have any dependency on any p5-* package Like last time, where this caused no complaints.
63 lines
1.8 KiB
Makefile
63 lines
1.8 KiB
Makefile
# $NetBSD: Makefile,v 1.7 2013/05/31 12:41:21 wiz Exp $
|
|
|
|
DISTNAME= sqlgrey-1.6.8
|
|
PKGREVISION= 4
|
|
CATEGORIES= mail
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=sqlgrey/}
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://sqlgrey.sourceforge.net/
|
|
COMMENT= Postfix greylisting policy daemon
|
|
|
|
USE_TOOLS+= perl:run
|
|
|
|
DEPENDS+= p5-Net-Server>=0.87:../../net/p5-Net-Server
|
|
DEPENDS+= p5-IO-Multiplex>=1:../../devel/p5-IO-Multiplex
|
|
|
|
PKG_SYSCONFSUBDIR= ${PKGBASE}
|
|
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
SQLGREY_USER?= sqlgrey
|
|
SQLGREY_GROUP?= sqlgrey
|
|
|
|
PKG_USERS= ${SQLGREY_USER}:${SQLGREY_GROUP}
|
|
PKG_GROUPS= ${SQLGREY_GROUP}
|
|
|
|
RCD_SCRIPTS= sqlgrey
|
|
|
|
MAKE_ENV+= EGDIR=${EGDIR}
|
|
|
|
CONF_FILES= ${EGDIR}/clients_fqdn_whitelist \
|
|
${PKG_SYSCONFDIR}/clients_fqdn_whitelist
|
|
CONF_FILES+= ${EGDIR}/clients_ip_whitelist \
|
|
${PKG_SYSCONFDIR}/clients_ip_whitelist
|
|
CONF_FILES+= ${EGDIR}/dyn_fqdn.regexp \
|
|
${PKG_SYSCONFDIR}/dyn_fqdn.regexp
|
|
CONF_FILES+= ${EGDIR}/smtp_server.regexp \
|
|
${PKG_SYSCONFDIR}/smtp_server.regexp
|
|
CONF_FILES+= ${EGDIR}/sqlgrey.conf \
|
|
${PKG_SYSCONFDIR}/sqlgrey.conf
|
|
|
|
REPLACE_PERL= sqlgrey-logstats.pl
|
|
REPLACE_PERL+= sqlgrey
|
|
REPLACE_SH= update_sqlgrey_config
|
|
|
|
SUBST_CLASSES+= sysconfdir
|
|
SUBST_STAGE.sysconfdir= pre-configure
|
|
SUBST_FILES.sysconfdir= sqlgrey update_sqlgrey_config etc/sqlgrey.conf
|
|
SUBST_SED.sysconfdir= -e 's,%%PKG_SYSCONFDIR%%,${PKG_SYSCONFDIR},g'
|
|
SUBST_SED.sysconfdir+= -e 's,%%VARBASE%%,${VARBASE},g'
|
|
SUBST_SED.sysconfdir+= -e 's,%%SQLGREY_USER%%,${SQLGREY_USER},g'
|
|
SUBST_SED.sysconfdir+= -e 's,%%SQLGREY_GROUP%%,${SQLGREY_GROUP},g'
|
|
|
|
BUILD_DEFS+= VARBASE
|
|
BUILD_DEFS+= SQLGREY_USER SQLGREY_GROUP
|
|
|
|
PKG_USERS_VARS= SQLGREY_USER
|
|
PKG_GROUPS_VARS= SQLGREY_GROUP
|
|
|
|
.include "../../databases/p5-DBI/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|