aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2009-04-10 07:54:04 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2009-04-10 07:54:04 +0800
commit76baeee9f2ae7e0358c1984574364b4fa6c860ef (patch)
tree83c865350c66e3e06def24e5e3614639f071d3fa /net
parent57a7af07d17ba9171b017deed1f66e751590c0c7 (diff)
downloadfreebsd-ports-gnome-76baeee9f2ae7e0358c1984574364b4fa6c860ef.tar.gz
freebsd-ports-gnome-76baeee9f2ae7e0358c1984574364b4fa6c860ef.tar.zst
freebsd-ports-gnome-76baeee9f2ae7e0358c1984574364b4fa6c860ef.zip
- Update to 2.1.4.
PR: 133532 Submitted by: David Wood <david at wood2 dot org dot uk> (maintainer)
Diffstat (limited to 'net')
-rw-r--r--net/freeradius2/Makefile25
-rw-r--r--net/freeradius2/distinfo6
-rw-r--r--net/freeradius2/files/patch-bootstrap11
-rw-r--r--net/freeradius2/files/patch-version5
-rw-r--r--net/freeradius2/files/pkg-install.in14
-rw-r--r--net/freeradius2/pkg-plist12
6 files changed, 64 insertions, 9 deletions
diff --git a/net/freeradius2/Makefile b/net/freeradius2/Makefile
index fef9e7859920..09143db97d75 100644
--- a/net/freeradius2/Makefile
+++ b/net/freeradius2/Makefile
@@ -4,9 +4,11 @@
#
# $FreeBSD$
#
+# $Id$
+#
PORTNAME= freeradius
-DISTVERSION= 2.1.3
+DISTVERSION= 2.1.4
CATEGORIES= net
MASTER_SITES= ftp://ftp.freeradius.org/pub/freeradius/%SUBDIR%/ \
ftp://ftp.ntua.gr/pub/net/radius/freeradius/%SUBDIR%/ \
@@ -37,6 +39,7 @@ USE_OPENSSL= yes
USE_PYTHON= yes
MAKE_ARGS+= LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib
+MAKE_JOBS_UNSAFE= yes
PLIST_SUB= PORTVERSION=${DISTVERSION}
@@ -133,6 +136,7 @@ SUB_LIST+= USER="${RADIUS_USER}" \
RADDB_WORK="${WRKSRC}/raddb" \
RADDB="${PREFIX}/etc/raddb" \
LOGDIR="${LOGDIR}" \
+ LIBDIR="${PREFIX}/${FREERADIUS_LIBDIR}" \
RC_SUBR_SUFFIX="${RC_SUBR_SUFFIX}"
SUB_FILES+= pkg-install pkg-deinstall pkg-message
.ifdef(WITH_USER)
@@ -260,8 +264,8 @@ MAN5= acct_users.5 clients.conf.5 dictionary.5 radiusd.conf.5 \
rlm_detail.5 rlm_digest.5 rlm_expr.5 rlm_files.5 rlm_mschap.5 \
rlm_pap.5 rlm_passwd.5 rlm_policy.5 rlm_realm.5 rlm_sql.5 \
rlm_sql_log.5 rlm_unix.5 unlang.5 users.5
-MAN8= radiusd.8 radmin.8 radrelay.8 radsqlrelay.8 radwatch.8 \
- rlm_ippool_tool.8
+MAN8= radiusd.8 radmin.8 raddebug.8 radrelay.8 radsqlrelay.8 \
+ radwatch.8 rlm_ippool_tool.8
SUB_LIST+= REQUIRE="${_REQUIRE}"
@@ -275,13 +279,24 @@ post-patch:
# Patch raddb/certs/bootstrap to use gmake instead of make
@${REINPLACE_CMD} -Ee "s:^make:${GMAKE}:" \
${WRKSRC}/raddb/certs/bootstrap
-# Clean up after the last operation (so as not to get unwanted files in raddb)
- @${FIND} -E ${WRKSRC}/raddb/certs -regex '.*/bootstrap\.(orig|bak)$$' \
+# Patch raddb/certs/Makefile for the full path to the openssl binary (using
+# ports OpenSSL if installed)
+ @${REINPLACE_CMD} -E \
+ -e "s:^([[:space:]])+openssl:\1${OPENSSLBASE}/bin/openssl:g" \
+ ${WRKSRC}/raddb/certs/Makefile
+# Clean up after the last two operations (so as not to get unwanted files in
+# raddb)
+ @${FIND} -E ${WRKSRC}/raddb/certs \
+ -regex '.*/(bootstrap|Makefile)\.(orig|bak)$$' \
-delete
# If EXPERIMENTAL (and therefore DHCP) is enabled, enable the DHCP dictionary
.ifdef(WITH_EXPERIMENTAL)
@${REINPLACE_CMD} -Ee 's:^#(.+ dictionary\.dhcp)$$:\1:g' \
${WRKSRC}/share/dictionary
+# Clean up (so as not to get an unwanted file in share)
+ @${FIND} -E ${WRKSRC}/share \
+ -regex '.*/dictionary\.(orig|bak)$$' \
+ -delete
.endif
# Patch scripts/Makefile not to install (unnecessary) rc.radiusd
@${REINPLACE_CMD} -Ee 's:^(.+rc\.radiusd.+)$$:#\1:g' \
diff --git a/net/freeradius2/distinfo b/net/freeradius2/distinfo
index d86ef10080c7..ccef8c5775bb 100644
--- a/net/freeradius2/distinfo
+++ b/net/freeradius2/distinfo
@@ -1,3 +1,3 @@
-MD5 (freeradius-server-2.1.3.tar.bz2) = df7a23ec6303a89d014fcc43418ce5e5
-SHA256 (freeradius-server-2.1.3.tar.bz2) = 984cf7f3418de8f2abe1e599827264495cef1d234cce4abe05a06a4b6419db1a
-SIZE (freeradius-server-2.1.3.tar.bz2) = 2380451
+MD5 (freeradius-server-2.1.4.tar.bz2) = ba1fd573222ed5c8bead1cce1383a7a9
+SHA256 (freeradius-server-2.1.4.tar.bz2) = d509191a2a0cd556f23639547d176c662c0fc0de09fc625e1afc62ed84cbd2de
+SIZE (freeradius-server-2.1.4.tar.bz2) = 2405962
diff --git a/net/freeradius2/files/patch-bootstrap b/net/freeradius2/files/patch-bootstrap
new file mode 100644
index 000000000000..e5cb7cc050e7
--- /dev/null
+++ b/net/freeradius2/files/patch-bootstrap
@@ -0,0 +1,11 @@
+--- raddb/certs/bootstrap 2009-03-18 20:20:41.000000000 +0000
++++ raddb/certs/bootstrap 2009-03-18 21:20:25.000000000 +0000
+@@ -17,7 +17,7 @@
+ #
+ # If that worked, exit. Otherwise, run the commands manually.
+ #
+-if [ "$?" == "0" ]
++if [ $? -eq 0 ]
+ then
+ exit 0
+ fi
diff --git a/net/freeradius2/files/patch-version b/net/freeradius2/files/patch-version
new file mode 100644
index 000000000000..afd44cf91805
--- /dev/null
+++ b/net/freeradius2/files/patch-version
@@ -0,0 +1,5 @@
+--- VERSION 2009-03-19 13:59:05.000000000 +0000
++++ VERSION 2009-03-19 13:59:14.000000000 +0000
+@@ -1 +1 @@
+-2.1.5
++2.1.4
diff --git a/net/freeradius2/files/pkg-install.in b/net/freeradius2/files/pkg-install.in
index d391e5b2f7b5..1624fa2a8d4a 100644
--- a/net/freeradius2/files/pkg-install.in
+++ b/net/freeradius2/files/pkg-install.in
@@ -15,6 +15,7 @@ radius_gid="%%GID%%"
radius_raddb_work="%%RADDB_WORK%%"
radius_raddb="%%RADDB%%"
radius_logdir="%%LOGDIR%%"
+radius_libdir="%%LIBDIR%%"
radius_run_as_user="%%RUN_AS_USER%%"
@@ -145,6 +146,19 @@ case $2 in
fi
done
+ # Update the libdir line in radiusd.conf
+ echo "===> Updating libdir in ${radius_raddb}/radiusd.conf"
+ if ! sed -i.update-libdir-original -Ee $( \
+ echo -n 's:^(libdir[[:space:]=]+)(.*[[:space:]:]+)?' ; \
+ echo -n $( echo ${radius_libdir} | \
+ sed -Ee 's:^(.*)-[[:digit:].]+$:\1:' ) ; \
+ echo -n '(-[[:digit:].]+)?([[:space:]:]+.*)?$' ; \
+ echo -n ':\1\2'${radius_libdir}'\4:' \
+ ) ${radius_raddb}/radiusd.conf; then
+ echo "Failed to update libdir in ${radius_raddb}/radius.conf"
+ exit 1
+ fi
+ rm ${radius_raddb}/radiusd.conf.update-libdir-original
;;
esac
diff --git a/net/freeradius2/pkg-plist b/net/freeradius2/pkg-plist
index 5d528effa37d..c433369d9a81 100644
--- a/net/freeradius2/pkg-plist
+++ b/net/freeradius2/pkg-plist
@@ -60,6 +60,7 @@ bin/smbencrypt
%%EXAMPLESDIR%%/raddb/modules/mac2ip
%%EXAMPLESDIR%%/raddb/modules/mac2vlan
%%EXAMPLESDIR%%/raddb/modules/mschap
+%%EXAMPLESDIR%%/raddb/modules/otp
%%EXAMPLESDIR%%/raddb/modules/pam
%%EXAMPLESDIR%%/raddb/modules/pap
%%EXAMPLESDIR%%/raddb/modules/passwd
@@ -69,12 +70,12 @@ bin/smbencrypt
%%EXAMPLESDIR%%/raddb/modules/radutmp
%%EXAMPLESDIR%%/raddb/modules/realm
%%EXAMPLESDIR%%/raddb/modules/smbpasswd
+%%EXAMPLESDIR%%/raddb/modules/smsotp
%%EXAMPLESDIR%%/raddb/modules/sql_log
%%EXAMPLESDIR%%/raddb/modules/sqlcounter_expire_on_login
%%EXAMPLESDIR%%/raddb/modules/sradutmp
%%EXAMPLESDIR%%/raddb/modules/unix
%%EXAMPLESDIR%%/raddb/modules/wimax
-%%EXAMPLESDIR%%/raddb/otp.conf
%%EXAMPLESDIR%%/raddb/policy.conf
%%EXAMPLESDIR%%/raddb/policy.txt
%%EXAMPLESDIR%%/raddb/preproxy_users
@@ -90,11 +91,13 @@ bin/smbencrypt
%%EXAMPLESDIR%%/raddb/sites-available/dynamic-clients
%%EXAMPLESDIR%%/raddb/sites-available/example
%%EXAMPLESDIR%%/raddb/sites-available/inner-tunnel
+%%EXAMPLESDIR%%/raddb/sites-available/originate-coa
%%EXAMPLESDIR%%/raddb/sites-available/proxy-inner-tunnel
%%EXAMPLESDIR%%/raddb/sites-available/robust-proxy-accounting
%%EXAMPLESDIR%%/raddb/sites-available/status
%%EXAMPLESDIR%%/raddb/sites-available/virtual.example.com
%%EXAMPLESDIR%%/raddb/sites-available/vmps
+%%EXAMPLESDIR%%/raddb/sites-enabled/control-socket
%%EXAMPLESDIR%%/raddb/sites-enabled/default
%%EXAMPLESDIR%%/raddb/sites-enabled/inner-tunnel
%%EXAMPLESDIR%%/raddb/sql.conf
@@ -396,6 +399,11 @@ bin/smbencrypt
%%EXPM%%%%SMB%%%%LIBDIR%%/rlm_smb.a
%%EXPM%%%%SMB%%%%LIBDIR%%/rlm_smb.la
%%EXPM%%%%SMB%%%%LIBDIR%%/rlm_smb.so
+%%EXPM%%%%LIBDIR%%/rlm_smsotp-%%PORTVERSION%%.la
+%%EXPM%%%%LIBDIR%%/rlm_smsotp-%%PORTVERSION%%.so
+%%EXPM%%%%LIBDIR%%/rlm_smsotp.a
+%%EXPM%%%%LIBDIR%%/rlm_smsotp.la
+%%EXPM%%%%LIBDIR%%/rlm_smsotp.so
%%LIBDIR%%/rlm_sql-%%PORTVERSION%%.la
%%LIBDIR%%/rlm_sql-%%PORTVERSION%%.so
%%LIBDIR%%/rlm_sql.a
@@ -448,6 +456,7 @@ bin/smbencrypt
%%EXPM%%%%LIBDIR%%/rlm_wimax.so
@dirrm %%LIBDIR%%
sbin/checkrad
+sbin/raddebug
sbin/radiusd
sbin/radmin
sbin/radwatch
@@ -614,6 +623,7 @@ include/freeradius/vqp.h
%%DATADIR%%/dictionary.foundry
%%DATADIR%%/dictionary.freeradius
%%DATADIR%%/dictionary.freeradius.internal
+%%DATADIR%%/dictionary.freeswitch
%%DATADIR%%/dictionary.gandalf
%%DATADIR%%/dictionary.garderos
%%DATADIR%%/dictionary.gemtek