Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jul 2004 11:13:08 +0200 (CEST)
From:      Blaz Zupan <blaz@medinet.si>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/69089: NEW-PORT: mail/gld
Message-ID:  <20040715091308.0E2FE5547B@titanic.medinet.si>
Resent-Message-ID: <200407150920.i6F9KHcA021049@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         69089
>Category:       ports
>Synopsis:       NEW-PORT: mail/gld
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 15 09:20:17 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Blaz Zupan
>Release:        FreeBSD 4.10-RELEASE i386
>Organization:
>Environment:
System: FreeBSD titanic.medinet.si 4.10-RELEASE FreeBSD 4.10-RELEASE #1: Sun Jun 27 16:39:26 CEST 2004 root@bigbrother.amis.net:/usr/obj/usr/src/sys/TITANIC i386


	
>Description:

Gld is a standalone greylisting server for Postfix.

Greylisting is a new weapon to use against spam. For more information on
this technique, see http://www.greylisting.org.

This implementation listens on a TCP port and uses MySQL for storing data.
The server supports whitelists based on sender, sender domain and client IP.
It also supports light greylisting.

WWW: http://www.gasmi.net/gld.html

>How-To-Repeat:
	
>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	gld
#	gld/files
#	gld/files/gld.sh.tmpl
#	gld/files/MESSAGE.tmpl
#	gld/pkg-descr
#	gld/pkg-plist
#	gld/Makefile
#	gld/distinfo
#
echo c - gld
mkdir -p gld > /dev/null 2>&1
echo c - gld/files
mkdir -p gld/files > /dev/null 2>&1
echo x - gld/files/gld.sh.tmpl
sed 's/^X//' >gld/files/gld.sh.tmpl << 'END-of-gld/files/gld.sh.tmpl'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X
X# PROVIDE: gld
X# REQUIRE: LOGIN
X# BEFORE: mail
X# KEYWORD: FreeBSD shutdown
X
X#
X# Add the following lines to /etc/rc.conf to enable amavisd:
X#
X#gld_enable="YES"
X#
X
X. %%RC_SUBR%%
X
Xname=gld
Xrcvar=`set_rcvar`
X
Xcommand=%%PREFIX%%/sbin/gld
X
Xrequired_files=%%PREFIX%%/etc/gld.conf
X
X# set defaults
X
Xgld_enable=${amavisd_enable:-"NO"}
X
Xload_rc_config $name
Xrun_rc_command "$1"
END-of-gld/files/gld.sh.tmpl
echo x - gld/files/MESSAGE.tmpl
sed 's/^X//' >gld/files/MESSAGE.tmpl << 'END-of-gld/files/MESSAGE.tmpl'
X
X*******************************************************************
X  Enable gld in /etc/rc.conf with the following line:
X  
X      gld_enable="YES"
X
X To complete the installation, you need to create the neccesary
X database and tables. An example configuration file is available in
X %%PREFIX%%/etc/gld.conf-dist. For more information see the
X documentation in %%DOCSDIR%%/share/doc/gld.
X*******************************************************************
X
END-of-gld/files/MESSAGE.tmpl
echo x - gld/pkg-descr
sed 's/^X//' >gld/pkg-descr << 'END-of-gld/pkg-descr'
XGld is a standalone greylisting server for Postfix.
X
XGreylisting is a new weapon to use against spam. For more information on
Xthis technique, see http://www.greylisting.org.
X
XThis implementation listens on a TCP port and uses MySQL for storing data.
XThe server supports whitelists based on sender, sender domain and client IP.
XIt also supports light greylisting.
X
XWWW: http://www.gasmi.net/gld.html
END-of-gld/pkg-descr
echo x - gld/pkg-plist
sed 's/^X//' >gld/pkg-plist << 'END-of-gld/pkg-plist'
X%%PORTDOCS%%%%DOCSDIR%%/HISTORY
X%%PORTDOCS%%%%DOCSDIR%%/LICENCE
X%%PORTDOCS%%%%DOCSDIR%%/README
X%%PORTDOCS%%%%DOCSDIR%%/tables.sql
Xetc/gld.conf-dist
Xetc/rc.d/gld.sh
Xsbin/gld
END-of-gld/pkg-plist
echo x - gld/Makefile
sed 's/^X//' >gld/Makefile << 'END-of-gld/Makefile'
X# New ports collection makefile for:	gld
X# Date created:				15 Jul 2004
X# Whom:					Blaz Zupan <blaz@si.FreeBSD.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	gld
XPORTVERSION=	1.2
XCATEGORIES=	mail
XMASTER_SITES=	http://www.gasmi.net/down/
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	blaz@si.FreeBSD.org
XCOMMENT=	Greylisting daemon for Postfix
X
XUSE_MYSQL=	yes
XUSE_REINPLACE=	yes
XUSE_RC_SUBR=	yes
XHAS_CONFIGURE=	yes
X
XCONFIGURE_ARGS+=	--with-mysql=${PREFIX}
X
XPKGMESSAGE=     ${WRKDIR}/MESSAGE
X
XSED_SCRIPT=	-e 's,%%DOCSDIR%%,${DOCSDIR},g' \
X		-e 's,%%PREFIX%%,${PREFIX},g' \
X		-e 's,%%RC_SUBR%%,${RC_SUBR},g'
X
Xpre-build:
X	${REINPLACE_CMD} -e 's,"/etc/gld.conf","${PREFIX}/etc/gld.conf",' ${WRKSRC}/gld.h
X	for f in gld.sh MESSAGE; do \
X		${SED} ${SED_SCRIPT} < ${FILESDIR}/$${f}.tmpl >> ${WRKDIR}/$${f}; \
X	done
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/gld ${PREFIX}/sbin
X	${INSTALL_DATA} ${WRKSRC}/gld.conf ${PREFIX}/etc/gld.conf-dist
X	${INSTALL_SCRIPT} ${WRKDIR}/gld.sh ${PREFIX}/etc/rc.d
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X.for FILE in HISTORY LICENCE README tables.sql
X	${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
X.endfor
X.endif
X
Xpost-install:
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-gld/Makefile
echo x - gld/distinfo
sed 's/^X//' >gld/distinfo << 'END-of-gld/distinfo'
XMD5 (gld-1.2.tgz) = 46c694a9796dd7dd114888489f19060c
XSIZE (gld-1.2.tgz) = 30924
END-of-gld/distinfo
exit

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040715091308.0E2FE5547B>