summaryrefslogtreecommitdiff
path: root/mail/gld/Makefile
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2004-11-25 05:42:40 +0000
committerxtraeme <xtraeme@pkgsrc.org>2004-11-25 05:42:40 +0000
commit46ae16ea0bb615976b3abae65846135cacee5ce9 (patch)
tree2db7caad7f2b03705ff42c22e4e0a90b4d56ee97 /mail/gld/Makefile
parent2b9c1b7e0f9dcbe02233ba5699737e9381f326ad (diff)
downloadpkgsrc-46ae16ea0bb615976b3abae65846135cacee5ce9.tar.gz
Initial import of gld-1.4 into the NetBSD packages collection.
Gld is a standalone greylisting server for Postfix SMTP, it listens on a TCP port and use MySQL for storing data. The server supports whitelists based on sender,sender_domain and client_ip, it supports also light greylisting and DNS white lists.
Diffstat (limited to 'mail/gld/Makefile')
-rw-r--r--mail/gld/Makefile40
1 files changed, 40 insertions, 0 deletions
diff --git a/mail/gld/Makefile b/mail/gld/Makefile
new file mode 100644
index 00000000000..fa456441b9e
--- /dev/null
+++ b/mail/gld/Makefile
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/11/25 05:42:40 xtraeme Exp $
+#
+
+DISTNAME= gld-1.4
+CATEGORIES= mail
+MASTER_SITES= http://www.gasmi.net/down/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= xtraeme@NetBSD.org
+HOMEPAGE= http://www.gasmi.net/
+COMMENT= Standalone greylisting server for Postfix
+
+USE_BUILDLINK3= yes
+USE_PKGINSTALL= yes
+GNU_CONFIGURE= yes
+
+CONFIGURE_ARGS+= --with-mysql=${BUILDLINK_PREFIX.mysql-client}
+
+EGDIR= ${PREFIX}/share/examples/${PKGBASE}
+CONF_FILES= ${EGDIR}/gld.conf ${PKG_SYSCONFDIR}/gld.conf
+
+RCD_SCRIPTS= gld
+GLD_USER?= gld
+GLD_GROUP?= gld
+PKG_GROUPS= ${GLD_GROUP}
+PKG_USERS= ${GLD_USER}:${GLD_GROUP}::Greylisting\\ Daemon\\ user
+
+SUBST_CLASSES+= gld users
+SUBST_STAGE.gld= post-patch
+SUBST_FILES.gld= gld.h
+SUBST_SED.gld= -e "s,/etc,${PKG_SYSCONFDIR},"
+SUBST_MESSAGE.gld= "Fixing harcoded paths."
+SUBST_STAGE.users= post-patch
+SUBST_FILES.users= gld.conf
+SUBST_SED.users+= -e "s|\#USER=nobody|USER=${GLD_USER}|"
+SUBST_SED.users+= -e "s|\#GROUP=nobody|GROUP=${GLD_GROUP}|"
+SUBST_MESSAGE.users= "Adjusting user/group in configuration file."
+
+.include "../../mk/mysql.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"