Date: Mon, 11 Oct 2010 12:11:26 GMT From: Adrian Thearle <adrian@thearle.com.au> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/151388: [PATCH] mail/postfix-gps: OPTIONS added for other databases Message-ID: <201010111211.o9BCBQPx046891@www.freebsd.org> Resent-Message-ID: <201010111220.o9BCK1CG015048@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010111211.o9BCBQPx046891>