Date: Tue, 14 Apr 2009 18:20:41 +0300 (EEST) From: Eugene Perevyazko <john@dnepro.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/133746: [patch] port net/freeradius does not build sql driver for unixODBC Message-ID: <200904141520.n3EFKfO1022174@roof1.dnepro.net> Resent-Message-ID: <200904150940.n3F9e3qZ029959@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 133746 >Category: ports >Synopsis: [patch] port net/freeradius does not build sql driver for unixODBC >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: Wed Apr 15 09:40:02 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Eugene Perevyazko >Release: FreeBSD 7.2-PRERELEASE i386 >Organization: Dnepronet >Environment: System: FreeBSD traktor 7.2-PRERELEASE FreeBSD 7.2-PRERELEASE #1: Mon Apr 13 16:20:06 EEST 2009 john@:/usr/obj/usr/src/sys/GENERIC i386 >Description: Freeradius includes sql driver for unixODBC which is unconditionally disabled in port's Makefile. Proposed patch adds option to build this driver with dependency on databases/unixODBC port. >How-To-Repeat: Try to use freeradius with driver = "rlm_sql_unixodbc" in sql module configuration in radiusd.conf. >Fix: Use following patch, rebuild and reinstall port. --- Makefile.bak 2009-04-14 17:28:50.000000000 +0300 +++ Makefile 2009-04-14 17:57:42.000000000 +0300 @@ -51,10 +51,11 @@ LDAP "With LDAP database support" off .ifndef(FREERADIUS_SLAVE_MYSQL) OPTIONS+= MYSQL "With MySQL database support" off .endif OPTIONS+= PGSQL "With PostgreSQL database support" off \ + UNIXODBC "With unixODBC database support" off \ FIREBIRD "With Firebird database support (EXPERIMENTAL)" off \ SNMP "With SNMP support" off \ EDIR "With Novell eDirectory support" off \ NOPERL "Do not require perl (use only if necessary)" off \ EXPERIMENTAL "Build experimental modules" off @@ -89,12 +90,11 @@ .endif CONFIGURE_ARGS+=--without-rlm_sql_db2 \ --without-rlm_sql_freetds \ --without-rlm_sql_iodbc \ --without-rlm_sql_oracle \ - --without-rlm_sql_sybase \ - --without-rlm_sql_unixodbc + --without-rlm_sql_sybase .if ${ARCH} == amd64 CONFIGURE_ARGS+= --with-pic .endif @@ -152,10 +152,19 @@ .else CONFIGURE_ARGS+=--without-rlm_sql_postgresql PLIST_SUB+= PGSQL="@comment " .endif +.ifdef(WITH_UNIXODBC) +CONFIGURE_ARGS+=--with-rlm_sql_unixodbc +PLIST_SUB+= UNIXODBC="" +LIB_DEPENDS+= odbc.1:${PORTSDIR}/databases/unixODBC +.else +CONFIGURE_ARGS+=--without-rlm_sql_unixodbc +PLIST_SUB+= UNIXODBC="@comment " +.endif + .ifdef(WITH_FIREBIRD) USE_FIREBIRD= YES CONFIGURE_ARGS+=--with-rlm_sql_firebird PLIST_SUB+= FIREBIRD="" .else >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904141520.n3EFKfO1022174>