aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2005-04-20 02:22:07 +0800
committerpav <pav@FreeBSD.org>2005-04-20 02:22:07 +0800
commit8000849233bf29af0badae2989fe1cc32a85a9f7 (patch)
tree75342bee1acd9600e0b3aace4199b736e6ef4319
parent50f8cd6ff52eb85e96054572c278d09e09ec81f6 (diff)
downloadfreebsd-ports-gnome-8000849233bf29af0badae2989fe1cc32a85a9f7.tar.gz
freebsd-ports-gnome-8000849233bf29af0badae2989fe1cc32a85a9f7.tar.zst
freebsd-ports-gnome-8000849233bf29af0badae2989fe1cc32a85a9f7.zip
- Update to 1.5
- Un-FORBIDDEN PR: ports/80103 Submitted by: Blaz Zupan <blaz@si.FreeBSD.org> (maintainer)
-rw-r--r--mail/gld/Makefile31
-rw-r--r--mail/gld/distinfo4
-rw-r--r--mail/gld/pkg-plist4
3 files changed, 28 insertions, 11 deletions
diff --git a/mail/gld/Makefile b/mail/gld/Makefile
index 956f34745807..582ee839ff73 100644
--- a/mail/gld/Makefile
+++ b/mail/gld/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= gld
-PORTVERSION= 1.4
-PORTREVISION= 1
+PORTVERSION= 1.5
CATEGORIES= mail
MASTER_SITES= http://www.gasmi.net/down/
EXTRACT_SUFX= .tgz
@@ -15,21 +14,37 @@ EXTRACT_SUFX= .tgz
MAINTAINER= blaz@si.FreeBSD.org
COMMENT= Greylisting daemon for Postfix
-FORBIDDEN= http://vuxml.FreeBSD.org/6c2d4f29-af3e-11d9-837d-000e0c2e438a.html
-
-USE_MYSQL= yes
USE_REINPLACE= yes
USE_RC_SUBR= yes
HAS_CONFIGURE= yes
-CONFIGURE_ARGS+= --with-mysql=${PREFIX}
+WRKSRC= ${WRKDIR}/${DISTNAME}.1
PKGMESSAGE= ${WRKDIR}/MESSAGE
+OPTIONS= MYSQL "MySQL support" on \
+ PGSQL "PgSQL support" off
+
SED_SCRIPT= -e 's,%%DOCSDIR%%,${DOCSDIR},g' \
-e 's,%%PREFIX%%,${PREFIX},g' \
-e 's,%%RC_SUBR%%,${RC_SUBR},g'
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_MYSQL) && defined(WITH_PGSQL)
+BROKEN= "Cannot compile with both MySQL and PgSQL support"
+.endif
+
+.if defined(WITH_MYSQL)
+CONFIGURE_ARGS+= --with-mysql=${PREFIX}
+USE_MYSQL= yes
+.endif
+
+.if defined(WITH_PGSQL)
+CONFIGURE_ARGS+= --with-pgsql=${PREFIX}
+USE_PGSQL= yes
+.endif
+
pre-build:
${REINPLACE_CMD} -e 's,"/etc/gld.conf","${PREFIX}/etc/gld.conf",' ${WRKSRC}/gld.h
for f in gld.sh MESSAGE; do \
@@ -42,7 +57,7 @@ do-install:
${INSTALL_SCRIPT} ${WRKDIR}/gld.sh ${PREFIX}/etc/rc.d
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
-.for FILE in HISTORY LICENCE README tables.sql
+.for FILE in HISTORY LICENCE README table-whitelist.sql tables.mysql tables.pgsql
${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
.endfor
.endif
@@ -50,4 +65,4 @@ do-install:
post-install:
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/mail/gld/distinfo b/mail/gld/distinfo
index c6909474a55b..1759dff62ff8 100644
--- a/mail/gld/distinfo
+++ b/mail/gld/distinfo
@@ -1,2 +1,2 @@
-MD5 (gld-1.4.tgz) = 0913b8e940a02f1ea011c6601474f08b
-SIZE (gld-1.4.tgz) = 35714
+MD5 (gld-1.5.tgz) = 0696b6c469a19bfb92bf93b19955cab6
+SIZE (gld-1.5.tgz) = 39132
diff --git a/mail/gld/pkg-plist b/mail/gld/pkg-plist
index 6ea596881685..b2a545008ad3 100644
--- a/mail/gld/pkg-plist
+++ b/mail/gld/pkg-plist
@@ -4,5 +4,7 @@ sbin/gld
%%PORTDOCS%%%%DOCSDIR%%/HISTORY
%%PORTDOCS%%%%DOCSDIR%%/LICENCE
%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/tables.sql
+%%PORTDOCS%%%%DOCSDIR%%/table-whitelist.sql
+%%PORTDOCS%%%%DOCSDIR%%/tables.mysql
+%%PORTDOCS%%%%DOCSDIR%%/tables.pgsql
%%PORTDOCS%%@dirrm %%DOCSDIR%%