ports/90110: Update port: mail/vexim - Add OPTIONS to enable PgSQL support
James O'Gorman
james at netinertia.co.uk
Thu Dec 8 17:00:32 UTC 2005
>Number: 90110
>Category: ports
>Synopsis: Update port: mail/vexim - Add OPTIONS to enable PgSQL support
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Thu Dec 08 17:00:15 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: James O'Gorman
>Release: FreeBSD 6.0-RELEASE i386
>Organization:
>Environment:
System: FreeBSD starbug.netinertia.co.uk 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Mon Nov 7 23:03:59 GMT 2005 root at starbug.netinertia.co.uk:/usr/obj/usr/src/sys/STARBUG i386
>Description:
OPTIONS-ify mail/vexim:
Virtual Exim (vexim) has the capability to use MySQL or PostgreSQL. The port currently just uses MySQL.
This patch adds OPTIONS so that the user can choose between MySQL and PostgreSQL.
>How-To-Repeat:
>Fix:
--- Makefile.orig Tue Jun 21 09:53:56 2005
+++ Makefile Thu Dec 8 16:34:07 2005
@@ -19,10 +19,22 @@
SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
NO_BUILD= yes
-USE_MYSQL= yes
USE_APACHE= yes
USE_PHP= yes
+OPTIONS= MYSQL "Use MySQL" On\
+ PGSQL "Use PostgreSQL" Off
+
+.include <bsd.port.pre.mk>
+
+.if !defined(WITHOUT_MYSQL) && !defined(WITH_PGSQL)
+USE_MYSQL= yes
+.endif
+
+.if defined(WITH_PGSQL)
+WITH_PGSQL= yes
+.endif
+
post-patch:
${FIND} ${WRKSRC} -name CVS -prune -exec ${RM} -r {} \;
@@ -49,4 +61,4 @@
post-install:
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list