- Update to 2.2.6

This commit is contained in:
Ryan Steinmetz 2014-12-09 16:05:31 +00:00
parent 34b490f0fd
commit 1c8fa9106f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=374404
4 changed files with 62 additions and 45 deletions

View file

@ -2,8 +2,7 @@
# $FreeBSD$ # $FreeBSD$
PORTNAME= freeradius PORTNAME= freeradius
DISTVERSION= 2.2.5 DISTVERSION= 2.2.6
PORTREVISION= 3
CATEGORIES= net CATEGORIES= net
MASTER_SITES= ftp://ftp.freeradius.org/pub/freeradius/%SUBDIR%/ \ MASTER_SITES= ftp://ftp.freeradius.org/pub/freeradius/%SUBDIR%/ \
ftp://ftp.ntua.gr/pub/net/radius/freeradius/%SUBDIR%/ \ ftp://ftp.ntua.gr/pub/net/radius/freeradius/%SUBDIR%/ \
@ -28,7 +27,7 @@ CONFLICTS_INSTALL= gnu-radius-[0-9].* openradius-[0-9].* radiusd-cistron-[0-9].*
USE_RC_SUBR= radiusd USE_RC_SUBR= radiusd
USES= gmake libtool shebangfix tar:bzip2 USES= gmake libtool shebangfix tar:bzip2 libtool autoreconf
SHEBANG_FILES= scripts/radsqlrelay src/modules/rlm_counter/rad_counter SHEBANG_FILES= scripts/radsqlrelay src/modules/rlm_counter/rad_counter
USE_AUTOTOOLS= libtoolize aclocal autoconf autoheader USE_AUTOTOOLS= libtoolize aclocal autoconf autoheader
USE_OPENSSL= yes USE_OPENSSL= yes
@ -238,21 +237,21 @@ EXPM= yes
.endif .endif
# No SMB option yet; rlm_smb is still unbuildable # No SMB option yet; rlm_smb is still unbuildable
.if ${PORT_OPTIONS:MSMB} #.if ${PORT_OPTIONS:MSMB}
LIB_DEPENDS= libsmbclient.so:${PORTSDIR}/net/samba-libsmbclient #LIB_DEPENDS= libsmbclient.so:${PORTSDIR}/net/samba-libsmbclient
CONFIGURE_ARGS+=--with-rlm_smb #CONFIGURE_ARGS+=--with-rlm_smb
CONFIGURE_ARGS+=--with-rlm-smb-lib-dir=${LOCALBASE}/lib #CONFIGURE_ARGS+=--with-rlm-smb-lib-dir=${LOCALBASE}/lib
CONFIGURE_ARGS+=--with-rlm-smb-include-dir=${LOCALBASE}/include #CONFIGURE_ARGS+=--with-rlm-smb-include-dir=${LOCALBASE}/include
PLIST_SUB+= SMB="" #PLIST_SUB+= SMB=""
.else #.else
CONFIGURE_ARGS+=--without-rlm_smb #CONFIGURE_ARGS+=--without-rlm_smb
PLIST_SUB+= SMB="@comment " #PLIST_SUB+= SMB="@comment "
.endif #.endif
#
# SMB module is still experimental ## SMB module is still experimental
.if ${PORT_OPTIONS:MSMB} && empty(PORT_OPTIONS:MSMB) #.if ${PORT_OPTIONS:MSMB} && empty(PORT_OPTIONS:MSMB)
EXPM= yes #EXPM= yes
.endif #.endif
# Oracle support is experimental under FreeBSD # Oracle support is experimental under FreeBSD
.if ${PORT_OPTIONS:MOCI8} .if ${PORT_OPTIONS:MOCI8}
@ -342,4 +341,9 @@ pre-configure:
@cd ${WRKSRC}/src/modules/rlm_perl && ${AUTOCONF} -I ${WRKSRC} @cd ${WRKSRC}/src/modules/rlm_perl && ${AUTOCONF} -I ${WRKSRC}
@cd ${WRKSRC}/src/modules/rlm_python && ${AUTOCONF} -I ${WRKSRC} @cd ${WRKSRC}/src/modules/rlm_python && ${AUTOCONF} -I ${WRKSRC}
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}-${PORTVERSION}/*.so
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/rlm_* \
${STAGEDIR}${PREFIX}/sbin/rad*
.include <bsd.port.post.mk> .include <bsd.port.post.mk>

View file

@ -1,2 +1,2 @@
SHA256 (freeradius-server-2.2.5.tar.bz2) = 86f1ca4ea9638be2797206c3457e320f2678d27d4bd548b5d2878a4283b0bd61 SHA256 (freeradius-server-2.2.6.tar.bz2) = 1d1c3b1292cab37411eb63fbd9441ccef90853854c25fb56a24a80a160d6d577
SIZE (freeradius-server-2.2.5.tar.bz2) = 2790143 SIZE (freeradius-server-2.2.6.tar.bz2) = 2790647

View file

@ -1,11 +1,16 @@
--- ./src/main/version.c.orig 2014-08-16 16:17:41.000000000 -0400 --- src/main/version.c.orig 2014-12-09 13:11:34 UTC
+++ ./src/main/version.c 2014-08-16 16:18:31.000000000 -0400 +++ src/main/version.c
@@ -60,21 +60,8 @@ @@ -67,7 +67,6 @@ int ssl_check_version(int allow_vulnerab
(unsigned long) ssl_built, radlog(L_ERR, "libssl version mismatch. built: %lx linked: %lx",
(unsigned long) ssl_linked); (unsigned long) ssl_built, (unsigned long) ssl_linked);
- return -1; - return -1;
}; }
/*
@@ -84,18 +83,6 @@ int ssl_check_version(int allow_vulnerab
*/
} else if ((ssl_built & 0xffffff) != (ssl_linked & 0xffffff)) goto mismatch;
- if (!allow_vulnerable) { - if (!allow_vulnerable) {
- /* Check for bad versions */ - /* Check for bad versions */

View file

@ -1,4 +1,3 @@
@stopdaemon radiusd
@unexec different=0 ; for i in `find %D/%%EXAMPLESDIR%%/raddb/certs/ -type f -print | sed -e 's:^%D/%%EXAMPLESDIR%%/raddb/certs/::g'`; do if ! cmp -hsz %D/%%EXAMPLESDIR%%/raddb/certs/${i} %D/etc/raddb/certs/${i}; then different=1; break; fi; done; if [ ${different} -eq 0 ] && diff -rq --exclude=certs %D/%%EXAMPLESDIR%%/raddb %D/etc/raddb >/dev/null 2>&1; then rm -rf %D/etc/raddb; fi @unexec different=0 ; for i in `find %D/%%EXAMPLESDIR%%/raddb/certs/ -type f -print | sed -e 's:^%D/%%EXAMPLESDIR%%/raddb/certs/::g'`; do if ! cmp -hsz %D/%%EXAMPLESDIR%%/raddb/certs/${i} %D/etc/raddb/certs/${i}; then different=1; break; fi; done; if [ ${different} -eq 0 ] && diff -rq --exclude=certs %D/%%EXAMPLESDIR%%/raddb %D/etc/raddb >/dev/null 2>&1; then rm -rf %D/etc/raddb; fi
@unexec if [ -d %D/etc/raddb ]; then echo "You should remove %D/etc/raddb if you don't need it any more."; fi @unexec if [ -d %D/etc/raddb ]; then echo "You should remove %D/etc/raddb if you don't need it any more."; fi
bin/rad_counter bin/rad_counter
@ -588,6 +587,7 @@ sbin/radwatch
%%DATADIR%%/dictionary.azaire %%DATADIR%%/dictionary.azaire
%%DATADIR%%/dictionary.bay %%DATADIR%%/dictionary.bay
%%DATADIR%%/dictionary.bintec %%DATADIR%%/dictionary.bintec
%%DATADIR%%/dictionary.bluecoat
%%DATADIR%%/dictionary.bristol %%DATADIR%%/dictionary.bristol
%%DATADIR%%/dictionary.broadsoft %%DATADIR%%/dictionary.broadsoft
%%DATADIR%%/dictionary.brocade %%DATADIR%%/dictionary.brocade
@ -601,19 +601,23 @@ sbin/radwatch
%%DATADIR%%/dictionary.cisco.bbsm %%DATADIR%%/dictionary.cisco.bbsm
%%DATADIR%%/dictionary.cisco.vpn3000 %%DATADIR%%/dictionary.cisco.vpn3000
%%DATADIR%%/dictionary.cisco.vpn5000 %%DATADIR%%/dictionary.cisco.vpn5000
%%DATADIR%%/dictionary.citrix
%%DATADIR%%/dictionary.clavister %%DATADIR%%/dictionary.clavister
%%DATADIR%%/dictionary.colubris %%DATADIR%%/dictionary.colubris
%%DATADIR%%/dictionary.columbia_university %%DATADIR%%/dictionary.columbia_university
%%DATADIR%%/dictionary.compat %%DATADIR%%/dictionary.compat
%%DATADIR%%/dictionary.compatible
%%DATADIR%%/dictionary.cosine %%DATADIR%%/dictionary.cosine
%%DATADIR%%/dictionary.dante %%DATADIR%%/dictionary.dante
%%DATADIR%%/dictionary.dhcp %%DATADIR%%/dictionary.dhcp
%%DATADIR%%/dictionary.digium %%DATADIR%%/dictionary.digium
%%DATADIR%%/dictionary.dlink %%DATADIR%%/dictionary.dlink
%%DATADIR%%/dictionary.dragonwave
%%DATADIR%%/dictionary.efficientip %%DATADIR%%/dictionary.efficientip
%%DATADIR%%/dictionary.eltex %%DATADIR%%/dictionary.eltex
%%DATADIR%%/dictionary.epygi %%DATADIR%%/dictionary.epygi
%%DATADIR%%/dictionary.ericsson %%DATADIR%%/dictionary.ericsson
%%DATADIR%%/dictionary.ericsson.packet.core.networks
%%DATADIR%%/dictionary.erx %%DATADIR%%/dictionary.erx
%%DATADIR%%/dictionary.extreme %%DATADIR%%/dictionary.extreme
%%DATADIR%%/dictionary.f5 %%DATADIR%%/dictionary.f5
@ -697,8 +701,12 @@ sbin/radwatch
%%DATADIR%%/dictionary.rfc6677 %%DATADIR%%/dictionary.rfc6677
%%DATADIR%%/dictionary.rfc6911 %%DATADIR%%/dictionary.rfc6911
%%DATADIR%%/dictionary.rfc6930 %%DATADIR%%/dictionary.rfc6930
%%DATADIR%%/dictionary.rfc7055
%%DATADIR%%/dictionary.rfc7268
%%DATADIR%%/dictionary.riverbed
%%DATADIR%%/dictionary.riverstone %%DATADIR%%/dictionary.riverstone
%%DATADIR%%/dictionary.roaringpenguin %%DATADIR%%/dictionary.roaringpenguin
%%DATADIR%%/dictionary.ruckus
%%DATADIR%%/dictionary.sg %%DATADIR%%/dictionary.sg
%%DATADIR%%/dictionary.shasta %%DATADIR%%/dictionary.shasta
%%DATADIR%%/dictionary.shiva %%DATADIR%%/dictionary.shiva
@ -737,24 +745,24 @@ sbin/radwatch
%%DATADIR%%/dictionary.zyxel %%DATADIR%%/dictionary.zyxel
@unexec rmdir "/var/run/radiusd" >/dev/null 2>&1 || : @unexec rmdir "/var/run/radiusd" >/dev/null 2>&1 || :
@unexec rmdir "/var/log/radacct" >/dev/null 2>&1 || : @unexec rmdir "/var/log/radacct" >/dev/null 2>&1 || :
@dirrm %%DATADIR%% @dir %%DATADIR%%
@dirrm %%EXAMPLESDIR%%/raddb/sql/postgresql @dir %%EXAMPLESDIR%%/raddb/sql/postgresql
@dirrm %%EXAMPLESDIR%%/raddb/sql/oracle @dir %%EXAMPLESDIR%%/raddb/sql/oracle
@dirrm %%EXAMPLESDIR%%/raddb/sql/ndb @dir %%EXAMPLESDIR%%/raddb/sql/ndb
@dirrm %%EXAMPLESDIR%%/raddb/sql/mysql @dir %%EXAMPLESDIR%%/raddb/sql/mysql
@dirrm %%EXAMPLESDIR%%/raddb/sql/mssql @dir %%EXAMPLESDIR%%/raddb/sql/mssql
@dirrm %%EXAMPLESDIR%%/raddb/sql @dir %%EXAMPLESDIR%%/raddb/sql
@dirrm %%EXAMPLESDIR%%/raddb/sites-enabled @dir %%EXAMPLESDIR%%/raddb/sites-enabled
@dirrm %%EXAMPLESDIR%%/raddb/sites-available @dir %%EXAMPLESDIR%%/raddb/sites-available
@dirrm %%EXAMPLESDIR%%/raddb/modules @dir %%EXAMPLESDIR%%/raddb/modules
@dirrm %%EXAMPLESDIR%%/raddb/certs @dir %%EXAMPLESDIR%%/raddb/certs
@dirrm %%EXAMPLESDIR%%/raddb @dir %%EXAMPLESDIR%%/raddb
@dirrm %%EXAMPLESDIR%% @dir %%EXAMPLESDIR%%
%%PORTDOCS%%@dirrm %%DOCSDIR%%/rfc %%PORTDOCS%%@dir %%DOCSDIR%%/rfc
%%PORTDOCS%%@dirrm %%DOCSDIR%%/examples %%PORTDOCS%%@dir %%DOCSDIR%%/examples
%%PORTDOCS%%@dirrm %%DOCSDIR%% %%PORTDOCS%%@dir %%DOCSDIR%%
@dirrm %%LIBDIR%% @dir %%LIBDIR%%
@dirrm include/freeradius @dir include/freeradius
@exec if ! [ -d %D/etc/raddb -o -L %D/etc/raddb ]; then cp -RP %D/%%EXAMPLESDIR%%/raddb %D/etc/raddb; echo '===> Bootstrapping default certificates, please wait...'; %D/etc/raddb/certs/bootstrap >/dev/null 2>&1; fi @exec if ! [ -d %D/etc/raddb -o -L %D/etc/raddb ]; then cp -RP %D/%%EXAMPLESDIR%%/raddb %D/etc/raddb; echo '===> Bootstrapping default certificates, please wait...'; %D/etc/raddb/certs/bootstrap >/dev/null 2>&1; fi
@exec chmod -R g-w,o-rwx %D/etc/raddb @exec chmod -R g-w,o-rwx %D/etc/raddb
@exec if [ ! -d /var/log/radacct ]; then mkdir -p /var/log/radacct; chmod -R go= /var/log/radacct; fi @exec if [ ! -d /var/log/radacct ]; then mkdir -p /var/log/radacct; chmod -R go= /var/log/radacct; fi