From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Oct 7 04:20:20 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 42FD61065677 for ; Sun, 7 Oct 2012 04:20:18 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6EEEF8FC1B for ; Sun, 7 Oct 2012 04:20:17 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q974KHI2064200 for ; Sun, 7 Oct 2012 04:20:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q974KHtm064199; Sun, 7 Oct 2012 04:20:17 GMT (envelope-from gnats) Resent-Date: Sun, 7 Oct 2012 04:20:17 GMT Resent-Message-Id: <201210070420.q974KHtm064199@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Michael Gmelin Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 34D361065672 for ; Sun, 7 Oct 2012 04:15:33 +0000 (UTC) (envelope-from freebsd@grem.de) Received: from mail.grem.de (outcast.grem.de [213.239.217.27]) by mx1.freebsd.org (Postfix) with SMTP id 99F6E8FC16 for ; Sun, 7 Oct 2012 04:15:32 +0000 (UTC) Received: (qmail 60494 invoked by uid 0); 7 Oct 2012 04:15:31 -0000 Message-Id: <20121007041531.60493.qmail@mail.grem.de> Date: 7 Oct 2012 04:15:31 -0000 From: Michael Gmelin To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/172426: [PATCH] security/libpreludedb: Converting port to new options framework X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Oct 2012 04:20:20 -0000 >Number: 172426 >Category: ports >Synopsis: [PATCH] security/libpreludedb: Converting port to new options framework >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Oct 07 04:20:17 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Michael Gmelin >Release: FreeBSD 9.0-RELEASE amd64 >Organization: Grem Equity GmbH >Environment: System: FreeBSD bsd64.grem.de 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC >Description: The patch below converts the port to use the new options framework[1] and converts the Makefile header to the new format[2]. The patch is to be applied using: patch -p0 -E How-To-Repeat: >Fix: --- libpreludedb-0.9.15.3_1.patch begins here --- diff -ruN --exclude=CVS ../libpreludedb.orig/Makefile ./Makefile --- ../libpreludedb.orig/Makefile 2012-10-07 05:01:05.615983731 +0200 +++ ./Makefile 2012-10-07 05:13:36.966743954 +0200 @@ -1,7 +1,5 @@ -# New ports collection makefile for: libpreludedb -# Date created: 2005-10-14 -# Whom: Sergei Kolobov -# $FreeBSD: ports/security/libpreludedb/Makefile,v 1.39 2011/08/02 16:22:13 bapt Exp $ +# Created by: Sergei Kolobov +# $FreeBSD: $ PORTNAME= libpreludedb PORTVERSION= 0.9.15.3 @@ -23,15 +21,17 @@ MAN1= preludedb-admin.1 PORTDOCS= * -OPTIONS= PERL "Include Perl bindings" off \ - PYTHON "Include Python bindings" off \ - MYSQL "Use MySQL backend" on \ - PGSQL "Use PostgreSQL backend" off \ - SQLITE "Use SQLite backend" off +OPTIONS_DEFINE= DOCS MYSQL PERL PGSQL PYTHON SQLITE +OPTIONS_DEFAULT=MYSQL +PERL_DESC= Include Perl bindings +PYTHON_DESC= Include Python bindings +MYSQL_DESC= Use MySQL backend +PGSQL_DESC= Use PostgreSQL backend +SQLITE_DESC= Use SQLite backend -.include +.include -.if defined(WITH_PERL) +.if ${PORT_OPTIONS:MPERL} USE_PERL5= yes CONFIGURE_ARGS+= --with-perl PLIST_SUB+= WITH_PERL="" @@ -40,7 +40,7 @@ PLIST_SUB+= WITH_PERL="@comment " .endif -.if defined(WITH_PYTHON) +.if ${PORT_OPTIONS:MPYTHON} USE_PYTHON= yes .include "${PORTSDIR}/Mk/bsd.python.mk" CONFIGURE_ARGS+= --with-python @@ -50,7 +50,7 @@ PLIST_SUB+= WITH_PYTHON="@comment " .endif -.if defined(WITH_MYSQL) || exists(${LOCALBASE}/bin/mysql_config) +.if ${PORT_OPTIONS:MMYSQL} || exists(${LOCALBASE}/bin/mysql_config) USE_MYSQL= yes CONFIGURE_ARGS+= --with-mysql PLIST_SUB+= WITH_MYSQL="" @@ -59,7 +59,7 @@ PLIST_SUB+= WITH_MYSQL="@comment " .endif -.if defined(WITH_PGSQL) || exists(${LOCALBASE}/bin/pg_config) +.if ${PORT_OPTIONS:MPGSQL} || exists(${LOCALBASE}/bin/pg_config) USE_PGSQL= yes CONFIGURE_ARGS+= --with-postgresql PLIST_SUB+= WITH_PGSQL="" @@ -68,7 +68,7 @@ PLIST_SUB+= WITH_PGSQL="@comment " .endif -.if defined(WITH_SQLITE) || exists(${LOCALBASE}/lib/libsqlite3.so) +.if ${PORT_OPTIONS:MSQLITE} || exists(${LOCALBASE}/lib/libsqlite3.so) USE_SQLITE= yes CONFIGURE_ARGS+= --with-sqlite3 PLIST_SUB+= WITH_SQLITE="" @@ -83,11 +83,11 @@ .endif post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${INSTALL} -d ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/docs/api/html/* ${DOCSDIR} .endif @${INSTALL_MAN} ${WRKSRC}/docs/manpages/*.1 ${MAN1PREFIX}/man/man1/ -.include +.include --- libpreludedb-0.9.15.3_1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: