ports/151388: [PATCH] mail/postfix-gps: OPTIONS added for other databases

Adrian Thearle adrian at thearle.com.au
Mon Oct 11 12:20:02 UTC 2010


>Number:         151388
>Category:       ports
>Synopsis:       [PATCH] mail/postfix-gps: OPTIONS added for other databases
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 11 12:20:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Adrian Thearle
>Release:        FreeBSD 8.1-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD freebsd_81_amd64_02.thearle.com.au 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:36:49 UTC 2010
>Description:
Added OPTIONS to allow postfix-gps to work with the other databases. These change the port runtime dependancies to ensure the right perl DBD Driver is installed
>How-To-Repeat:

>Fix:

--- postfix-gps-1.005_3.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/mail/postfix-gps/Makefile,v
retrieving revision 1.17
diff -u -r1.17 Makefile
--- Makefile    5 Oct 2010 19:57:43 -0000       1.17
+++ Makefile    11 Oct 2010 11:40:53 -0000
@@ -17,8 +17,7 @@
 COMMENT=       Greylist Policy Service for postfix

 LIB_DEPENDS=   dbi.0:${PORTSDIR}/databases/libdbi
-RUN_DEPENDS=   ${LOCALBASE}/lib/dbd:${PORTSDIR}/databases/libdbi-drivers \
-               ${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql
+RUN_DEPENDS=   ${LOCALBASE}/lib/dbd:${PORTSDIR}/databases/libdbi-drivers

 SCRIPT_FILES=  gps-maintain.pl gps-db-update.pl
 PLIST_FILES=   etc/gps.conf-dist libexec/gps libexec/gps-maintain.pl libexec/gps-db-update.pl
@@ -33,6 +32,24 @@
                CXXFLAGS="${CXXFLAGS} -I${LOCALBASE}/include"   \
                LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS} -L${LOCALBASE}/lib"

+OPTIONS=       MYSQL           "Build with MySQL support" on \
+               PGSQL           "Build with PostgreSQL support" off \
+               SQLITE          "Build with SQLite support" off
+
+.include <bsd.port.options.mk>
+
+.if !defined(WITHOUT_MYSQL)
+RUN_DEPENDS+=   ${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql
+.endif
+
+.if !defined(WITHOUT_PGSQL)
+RUN_DEPENDS+=   ${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-Pg
+.endif
+
+.if !defined(WITHOUT_SQLITE)
+RUN_DEPENDS+=   ${SITE_PERL}/${PERL_ARCH}/DBD/SQLite.pm:${PORTSDIR}/databases/p5-DBD-SQLite
+.endif
+
 pre-configure:
        @cd ${WRKSRC} && ${ACLOCAL}

--- postfix-gps-1.005_3.patch ends here ---


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



More information about the freebsd-ports-bugs mailing list