Date: Tue, 4 Aug 2009 13:53:46 GMT From: Ryan Steinmetz <rpsfa@rit.edu> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/137425: Update to net/freeradius2 adds experimental Oracle support Message-ID: <200908041353.n74Drk3S083118@www.freebsd.org> Resent-Message-ID: <200908041400.n74E0DGr067210@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 137425 >Category: ports >Synopsis: Update to net/freeradius2 adds experimental Oracle support >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: Tue Aug 04 14:00:12 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Ryan Steinmetz >Release: Freebsd 7.2-RELEASE >Organization: Rochester Institute of Technology >Environment: FreeBSD xxx.rit.edu 7.2-RELEASE FreeBSD 7.2-RELEASE #1: Mon May 4 20:25:00 EDT 2009 root@xxx.rit.edu:/usr/obj/usr/src/sys/xxx i386 >Description: >How-To-Repeat: >Fix: Patch attached with submission follows: diff -urN /usr/ports/net/freeradius2/Makefile freeradius2/Makefile --- /usr/ports/net/freeradius2/Makefile 2009-07-05 19:13:59.000000000 -0400 +++ freeradius2/Makefile 2009-08-04 09:39:55.000000000 -0400 @@ -51,6 +51,7 @@ FIREBIRD "With Firebird database support (EXPERIMENTAL)" off \ PERL "With Perl support" on \ PYTHON "With Python support" on \ + OCI8 "With Oracle support (EXPERIMENTAL)" off \ RUBY "With Ruby support (EXPERIMENTAL)" off \ DHCP "With DHCP support (EXPERIMENTAL)" off \ EXPERIMENTAL "Build experimental modules" off @@ -201,6 +202,19 @@ WITH_EXPERIMENTAL= yes .endif +# Oracle support is experimental under FreeBSD +.ifdef(WITH_OCI8) +EXTRA_PATCHES+= files/extra-patch-exec.c +CONFIGURE_ENV= ORACLE_HOME="${ORACLE_HOME}" +ORACLE_HOME?= ${LOCALBASE}/oracle8-client +BUILD_DEPENDS+= ${ORACLE_HOME}/lib/libclntst8.a:${PORTSDIR}/databases/oracle8-client +CONFIGURE_ARGS+=--with-oracle-home-dir=${ORACLE_HOME}/rdbms/demo +PLIST_SUB+= OCI8="" +.else +CONFIGURE_ARGS+=--without-rlm_sql_oracle +PLIST_SUB+= OCI8="@comment " +.endif + .ifdef(WITH_EXPERIMENTAL) CONFIGURE_ARGS+=--with-experimental-modules PLIST_SUB+= EXPM="" @@ -255,7 +269,6 @@ --without-rlm_opendirectory \ --without-rlm_sql_db2 \ --without-rlm_sql_iodbc \ - --without-rlm_sql_oracle \ --without-rlm_sql_sqlite \ --without-rlm_sql_sybase \ --with-vmps diff -urN /usr/ports/net/freeradius2/files/extra-patch-exec.c freeradius2/files/extra-patch-exec.c --- /usr/ports/net/freeradius2/files/extra-patch-exec.c 1969-12-31 19:00:00.000000000 -0500 +++ freeradius2/files/extra-patch-exec.c 2009-08-03 21:22:46.000000000 -0400 @@ -0,0 +1,11 @@ +--- src/main/exec.c 2008-12-05 11:37:56.000000000 -0500 ++++ src/main/exec.c 2009-01-18 17:43:32.000000000 -0500 +@@ -222,6 +222,8 @@ + output_pairs = NULL; + } + ++ signal(SIGCHLD, SIG_DFL); ++ + if (exec_wait) { + pid = rad_fork(); /* remember PID */ + } else { diff -urN /usr/ports/net/freeradius2/pkg-plist freeradius2/pkg-plist --- /usr/ports/net/freeradius2/pkg-plist 2009-07-05 19:13:59.000000000 -0400 +++ freeradius2/pkg-plist 2009-08-03 20:46:59.000000000 -0400 @@ -429,6 +429,11 @@ %%MYSQL%%%%LIBDIR%%/rlm_sql_mysql.a %%MYSQL%%%%LIBDIR%%/rlm_sql_mysql.la %%MYSQL%%%%LIBDIR%%/rlm_sql_mysql.so +%%OCI8%%%%LIBDIR%%/rlm_sql_oracle-%%PORTVERSION%%.la +%%OCI8%%%%LIBDIR%%/rlm_sql_oracle-%%PORTVERSION%%.so +%%OCI8%%%%LIBDIR%%/rlm_sql_oracle.a +%%OCI8%%%%LIBDIR%%/rlm_sql_oracle.la +%%OCI8%%%%LIBDIR%%/rlm_sql_oracle.so %%PGSQL%%%%LIBDIR%%/rlm_sql_postgresql-%%PORTVERSION%%.la %%PGSQL%%%%LIBDIR%%/rlm_sql_postgresql-%%PORTVERSION%%.so %%PGSQL%%%%LIBDIR%%/rlm_sql_postgresql.a >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908041353.n74Drk3S083118>