1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

Add gld 1.2, greylisting daemon for Postfix.

PR:		ports/69089
Submitted by:	Blaz Zupan <blaz@si.FreeBSD.org>
This commit is contained in:
Vanilla I. Shu 2004-07-16 02:44:16 +00:00
parent 64d9c2bb8c
commit b7911e9087
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=113750
7 changed files with 114 additions and 0 deletions

View File

@ -99,6 +99,7 @@
SUBDIR += gkrellmmailwatch2
SUBDIR += glacier
SUBDIR += glbiff
SUBDIR += gld
SUBDIR += gmime
SUBDIR += gmime2
SUBDIR += gnarwl

50
mail/gld/Makefile Normal file
View File

@ -0,0 +1,50 @@
# New ports collection makefile for: gld
# Date created: 15 Jul 2004
# Whom: Blaz Zupan <blaz@si.FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= gld
PORTVERSION= 1.2
CATEGORIES= mail
MASTER_SITES= http://www.gasmi.net/down/
EXTRACT_SUFX= .tgz
MAINTAINER= blaz@si.FreeBSD.org
COMMENT= Greylisting daemon for Postfix
USE_MYSQL= yes
USE_REINPLACE= yes
USE_RC_SUBR= yes
HAS_CONFIGURE= yes
CONFIGURE_ARGS+= --with-mysql=${PREFIX}
PKGMESSAGE= ${WRKDIR}/MESSAGE
SED_SCRIPT= -e 's,%%DOCSDIR%%,${DOCSDIR},g' \
-e 's,%%PREFIX%%,${PREFIX},g' \
-e 's,%%RC_SUBR%%,${RC_SUBR},g'
pre-build:
${REINPLACE_CMD} -e 's,"/etc/gld.conf","${PREFIX}/etc/gld.conf",' ${WRKSRC}/gld.h
for f in gld.sh MESSAGE; do \
${SED} ${SED_SCRIPT} < ${FILESDIR}/$${f}.tmpl >> ${WRKDIR}/$${f}; \
done
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/gld ${PREFIX}/sbin
${INSTALL_DATA} ${WRKSRC}/gld.conf ${PREFIX}/etc/gld.conf-dist
${INSTALL_SCRIPT} ${WRKDIR}/gld.sh ${PREFIX}/etc/rc.d
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for FILE in HISTORY LICENCE README tables.sql
${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
.endfor
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>

2
mail/gld/distinfo Normal file
View File

@ -0,0 +1,2 @@
MD5 (gld-1.2.tgz) = 46c694a9796dd7dd114888489f19060c
SIZE (gld-1.2.tgz) = 30924

View File

@ -0,0 +1,12 @@
*******************************************************************
Enable gld in /etc/rc.conf with the following line:
gld_enable="YES"
To complete the installation, you need to create the neccesary
database and tables. An example configuration file is available in
%%PREFIX%%/etc/gld.conf-dist. For more information see the
documentation in %%DOCSDIR%%/share/doc/gld.
*******************************************************************

View File

@ -0,0 +1,31 @@
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: gld
# REQUIRE: LOGIN
# BEFORE: mail
# KEYWORD: FreeBSD shutdown
#
# Add the following lines to /etc/rc.conf to enable amavisd:
#
#gld_enable="YES"
#
. %%RC_SUBR%%
name=gld
rcvar=`set_rcvar`
command=%%PREFIX%%/sbin/gld
required_files=%%PREFIX%%/etc/gld.conf
# set defaults
gld_enable=${amavisd_enable:-"NO"}
load_rc_config $name
run_rc_command "$1"

10
mail/gld/pkg-descr Normal file
View File

@ -0,0 +1,10 @@
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

8
mail/gld/pkg-plist Normal file
View File

@ -0,0 +1,8 @@
etc/gld.conf-dist
etc/rc.d/gld.sh
sbin/gld
%%PORTDOCS%%%%DOCSDIR%%/HISTORY
%%PORTDOCS%%%%DOCSDIR%%/LICENCE
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/tables.sql
%%PORTDOCS%%@dirrm %%DOCSDIR%%