aboutsummaryrefslogtreecommitdiff
path: root/net/freeradius2
diff options
context:
space:
mode:
authorWesley Shields <wxs@FreeBSD.org>2009-09-09 17:02:31 +0000
committerWesley Shields <wxs@FreeBSD.org>2009-09-09 17:02:31 +0000
commit5f1bf0a8d14fb9099164bf665eb4dfe89e1230e1 (patch)
treec63aa5292c4be1145703119419b0322c4eaf1796 /net/freeradius2
parent8b4e8714ac6971b866426e45f316ae21b2442428 (diff)
downloadports-5f1bf0a8d14fb9099164bf665eb4dfe89e1230e1.tar.gz
ports-5f1bf0a8d14fb9099164bf665eb4dfe89e1230e1.zip
Notes
Diffstat (limited to 'net/freeradius2')
-rw-r--r--net/freeradius2/Makefile20
-rw-r--r--net/freeradius2/files/extra-patch-exec.c11
-rw-r--r--net/freeradius2/pkg-plist5
3 files changed, 35 insertions, 1 deletions
diff --git a/net/freeradius2/Makefile b/net/freeradius2/Makefile
index 47021bd2a064..4b93b3e3166b 100644
--- a/net/freeradius2/Makefile
+++ b/net/freeradius2/Makefile
@@ -51,6 +51,8 @@ OPTIONS= USER "Run as user freeradius, group freeradius" on \
FIREBIRD "With Firebird database support (EXPERIMENTAL)" off \
PERL "With Perl support" on \
PYTHON "With Python support" on \
+ OCI8 "With Oracle support (currently experimental)" off \
+ DEVELOPER "With developer support" off \
RUBY "With Ruby support (EXPERIMENTAL)" off \
DHCP "With DHCP support (EXPERIMENTAL)" off \
EXPERIMENTAL "Build experimental modules" off
@@ -201,6 +203,23 @@ PLIST_SUB+= SMB="@comment "
WITH_EXPERIMENTAL= yes
.endif
+.ifdef(WITH_DEVELOPER)
+CONFIGURE_ARGS+= --enable-developer
+.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 +274,6 @@ CONFIGURE_ARGS+=--without-rlm_eap_ikev2 \
--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 --git a/net/freeradius2/files/extra-patch-exec.c b/net/freeradius2/files/extra-patch-exec.c
new file mode 100644
index 000000000000..803b38bcbe65
--- /dev/null
+++ b/net/freeradius2/files/extra-patch-exec.c
@@ -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 --git a/net/freeradius2/pkg-plist b/net/freeradius2/pkg-plist
index fde5b8593023..6ee58aa17e22 100644
--- a/net/freeradius2/pkg-plist
+++ b/net/freeradius2/pkg-plist
@@ -429,6 +429,11 @@ bin/smbencrypt
%%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