summaryrefslogtreecommitdiff
path: root/net/freeradius2/files
diff options
context:
space:
mode:
Diffstat (limited to 'net/freeradius2/files')
-rw-r--r--net/freeradius2/files/patch-pthread157
-rw-r--r--net/freeradius2/files/patch-radiusd-no-pie11
-rw-r--r--net/freeradius2/files/radiusd.sh.in32
3 files changed, 0 insertions, 200 deletions
diff --git a/net/freeradius2/files/patch-pthread b/net/freeradius2/files/patch-pthread
deleted file mode 100644
index 8ccf0b6362a2..000000000000
--- a/net/freeradius2/files/patch-pthread
+++ /dev/null
@@ -1,157 +0,0 @@
---- configure.in Tue May 15 13:48:04 2007
-+++ configure.in Fri Jul 27 18:43:56 2007
-@@ -475,14 +475,25 @@
- dnl # On Some systems, we need extra pre-processor flags, to get them to
- dnl # to do the threading properly.
- dnl #
-- AC_CHECK_LIB(pthread, pthread_create,
-- [ CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
-- LIBS="$LIBS -lpthread" ],
-- AC_CHECK_LIB(c_r, pthread_create,
-- [ CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE" ],
-- [ WITH_THREADS="no" ]
-- )
-- )
-+dnl # On FreeBSD, check the pthread_create function with -pthread in $CFLAGS
-+dnl # but WITHOUT -lpthread (see FreeBSD Porter's Handbook, section 12.12
-+dnl # at http://tinyurl.com/34cya8 )
-+ case "$host" in
-+ *-freebsd*)
-+ CFLAGS="$CFLAGS -pthread"
-+ AC_CHECK_FUNC(pthread_create, , [ WITH_THREADS="no" ])
-+ ;;
-+ *)
-+ AC_CHECK_LIB(pthread, pthread_create,
-+ [ CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
-+ LIBS="$LIBS -lpthread" ],
-+ AC_CHECK_LIB(c_r, pthread_create,
-+ [ CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE" ],
-+ [ WITH_THREADS="no" ]
-+ )
-+ )
-+ ;;
-+ esac
- fi
-
- dnl #
---- src/modules/rlm_ldap/configure.in Fri Jul 27 17:51:33 2007
-+++ src/modules/rlm_ldap/configure.in Fri Jul 27 18:10:51 2007
-@@ -77,14 +77,27 @@
-
- dnl pthread stuff is usually in -lpthread
- dnl or in -lc_r, on *BSD
-+ dnl FreeBSD uses -pthread
- if test "x$rlm_ldap_with_threads" = "xyes"; then
-- AC_CHECK_LIB(pthread, pthread_create,
-- [ LIBS="-lpthread $LIBS" ],
-- AC_CHECK_LIB(c_r, pthread_create,
-- [ LIBS="-lc_r $LIBS" ],
-- [ rlm_ldap_with_threads="no" ]
-- )
-- )
-+ case "$host" in
-+ *-freebsd*)
-+ old_CFLAGS=$CFLAGS
-+ CFLAGS="$CFLAGS -pthread"
-+ AC_CHECK_FUNC(pthread_create, , [ rlm_ldap_with_threads="no" ])
-+ if test "x$rlm_ldap_with_threads" = "xno"; then
-+ CFLAGS=$old_CFLAGS
-+ fi
-+ ;;
-+ *)
-+ AC_CHECK_LIB(pthread, pthread_create,
-+ [ LIBS="-lpthread $LIBS" ],
-+ AC_CHECK_LIB(c_r, pthread_create,
-+ [ LIBS="-lc_r $LIBS" ],
-+ [ rlm_ldap_with_threads="no" ]
-+ )
-+ )
-+ ;;
-+ esac
- fi
-
- dnl Try only "-lldap_r" or "-lldap"
---- src/modules/rlm_sql/drivers/rlm_sql_mysql/configure.in Fri Nov 25 20:31:54 2005
-+++ src/modules/rlm_sql/drivers/rlm_sql_mysql/configure.in Fri Jul 27 19:11:33 2007
-@@ -61,14 +61,27 @@
-
- dnl pthread stuff is usually in -lpthread
- dnl or in -lc_r, on *BSD
-+ dnl FreeBSD uses -pthread
- if test "x$mysql_with_threads" = "xyes"; then
-- AC_CHECK_LIB(pthread, pthread_create,
-- [ LIBS="-lpthread $LIBS" ],
-- AC_CHECK_LIB(c_r, pthread_create,
-- [ LIBS="-lc_r $LIBS" ],
-- [ mysql_with_threads=no ]
-- )
-- )
-+ case "$host" in
-+ *-freebsd*)
-+ old_CFLAGS=$CFLAGS
-+ CFLAGS="$CFLAGS -pthread"
-+ AC_CHECK_FUNC(pthread_create, , [ mysql_with_threads="no" ])
-+ if test "x$mysql_with_threads" = "xno"; then
-+ CFLAGS=$old_CFLAGS
-+ fi
-+ ;;
-+ *)
-+ AC_CHECK_LIB(pthread, pthread_create,
-+ [ LIBS="-lpthread $LIBS" ],
-+ AC_CHECK_LIB(c_r, pthread_create,
-+ [ LIBS="-lc_r $LIBS" ],
-+ [ mysql_with_threads=no ]
-+ )
-+ )
-+ ;;
-+ esac
- fi
-
- if test "x$mysql_with_threads" = "xyes"; then
---- src/modules/rlm_python/configure.in Thu May 15 15:52:02 2003
-+++ src/modules/rlm_python/configure.in Thu Aug 2 12:43:47 2007
-@@ -84,6 +84,44 @@
- AC_SMART_CHECK_LIB(python${PY_VERSION}, Py_Initialize)
- LIBS=$old_LIBS
-
-+dnl # If that check fails, try it again having identified threading libraries
-+dnl # in case libpython is threaded
-+
-+ if test "x$smart_lib" = "x"; then
-+ AC_MSG_NOTICE([Checking to see if libpython may be threaded.])
-+ dnl pthread stuff is usually in -lpthread
-+ dnl or in -lc_r, on *BSD
-+ dnl FreeBSD uses -pthread
-+ libpython_with_threads="yes"
-+ case "$host" in
-+ *-freebsd*)
-+ old_CFLAGS=$CFLAGS
-+ CFLAGS="$CFLAGS -pthread"
-+ AC_CHECK_FUNC(pthread_create, , [ libpython_with_threads="no" ])
-+ if test "x$libpython_with_threads" = "xno"; then
-+ CFLAGS=$old_CFLAGS
-+ fi
-+ ;;
-+ *)
-+ AC_CHECK_LIB(pthread, pthread_create,
-+ [ LIBS="-lpthread $LIBS" ],
-+ AC_CHECK_LIB(c_r, pthread_create,
-+ [ LIBS="-lc_r $LIBS" ],
-+ [ libpython_with_threads="no" ]
-+ )
-+ )
-+ ;;
-+ esac
-+
-+ if test "x$libpython_with_threads" = "xyes"; then
-+ old_LIBS=$LIBS
-+ LIBS="$LIBS $PY_LIB_LOC $PY_EXTRA_LIBS -lm"
-+ smart_try_dir=$PY_LIB_DIR
-+ AC_SMART_CHECK_LIB(python${PY_VERSION}, Py_Initialize)
-+ LIBS=$old_LIBS
-+ fi
-+ fi
-+
- eval t=\${ac_cv_lib_${sm_lib_safe}_${sm_func_safe}}
- if test "x$t" = "xyes"; then
- python_ldflags="$PY_LIB_LOC $PY_EXTRA_LIBS -lpython${PY_VERSION} -lm"
diff --git a/net/freeradius2/files/patch-radiusd-no-pie b/net/freeradius2/files/patch-radiusd-no-pie
deleted file mode 100644
index bf0772399683..000000000000
--- a/net/freeradius2/files/patch-radiusd-no-pie
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/main/Makefile.in Wed Feb 14 15:44:23 2007
-+++ src/main/Makefile.in Mon Dec 3 14:26:53 2007
-@@ -61,7 +61,7 @@
-
- radiusd: $(SERVER_OBJS) $(MODULE_OBJS) ../lib/libradius.la
- $(LIBTOOL) --mode=link $(CC) -export-dynamic -dlopen self \
-- $(LDFLAGS) -pie $(LINK_MODE) -o $@ $(SERVER_OBJS) \
-+ $(LDFLAGS) $(LINK_MODE) -o $@ $(SERVER_OBJS) \
- $(MODULE_LIBS) $(LIBS) $(SNMP_LIBS) $(PTHREADLIB) \
- $(LIBLTDL) $(OPENSSL_LIBS)
-
diff --git a/net/freeradius2/files/radiusd.sh.in b/net/freeradius2/files/radiusd.sh.in
deleted file mode 100644
index a29083d64fab..000000000000
--- a/net/freeradius2/files/radiusd.sh.in
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/sh
-
-# PROVIDE: radiusd
-# REQUIRE: %%REQUIRE%%
-# KEYWORD: shutdown
-
-#
-# Add the following lines to /etc/rc.conf to enable radiusd:
-#
-# radiusd_enable="YES"
-#
-
-. %%RC_SUBR%%
-
-name=radiusd
-rcvar=`set_rcvar`
-load_rc_config $name
-
-command=%%PREFIX%%/sbin/radiusd
-pidfile=/var/run/radiusd/radiusd.pid
-
-# The radiusd_config parameter is now obsolete. Instead, derive the
-# configuration directory name from radiusd_flags if possible, otherwise
-# default to %%PREFIX%%/etc/raddb
-required_dirs=`echo ${radiusd_flags} | sed -Ee 's:.*\-[^[:space:]d]*d[[:space:]]*([^[:space:]]+).*:\1:'`
-required_dirs=${required_dirs:-"%%PREFIX%%/etc/raddb"}
-
-required_files="${required_dirs}/radiusd.conf"
-
-radiusd_enable=${radiusd_enable-"NO"}
-
-run_rc_command "$1"