From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Jan 23 03:30:07 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A269B16A420 for ; Wed, 23 Jan 2008 03:30:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7D3C313C46A for ; Wed, 23 Jan 2008 03:30:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0N3U29u060946 for ; Wed, 23 Jan 2008 03:30:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0N3U27O060943; Wed, 23 Jan 2008 03:30:02 GMT (envelope-from gnats) Resent-Date: Wed, 23 Jan 2008 03:30:02 GMT Resent-Message-Id: <200801230330.m0N3U27O060943@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, David Wood Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8758E16A419 for ; Wed, 23 Jan 2008 03:24:27 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 731F913C458 for ; Wed, 23 Jan 2008 03:24:27 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m0N3MtAE014006 for ; Wed, 23 Jan 2008 03:22:55 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m0N3Mt9m014005; Wed, 23 Jan 2008 03:22:55 GMT (envelope-from nobody) Message-Id: <200801230322.m0N3Mt9m014005@www.freebsd.org> Date: Wed, 23 Jan 2008 03:22:55 GMT From: David Wood To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/119910: [maintainer update] net/freeradius - fix radsqlrelay, update MASTER_SITES X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jan 2008 03:30:07 -0000 >Number: 119910 >Category: ports >Synopsis: [maintainer update] net/freeradius - fix radsqlrelay, update MASTER_SITES >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Wed Jan 23 03:30:02 UTC 2008 >Closed-Date: >Last-Modified: >Originator: David Wood >Release: 6.2-RELEASE i386 >Organization: >Environment: FreeBSD titanium.wood2.org.uk 6.2-RELEASE-p10 FreeBSD 6.2-RELEASE-p10 #0: Tue Jan 15 17:30:36 GMT 2008 david@titanium.wood2.org.uk:/usr/obj/usr/src/sys/TITANIUM i386 >Description: Backport two fixes from net/freeradius2 2.0.1 (not yet committed). Update MASTER_SITES to allow MASTER_SITE_SUBDIR to work correctly. This should stop problems with fetching between a new version of FreeRADIUS being released and the port being updated (as the tarballs for old versions are moved to the 'old' folder on the download sites). This fix also updates MASTER_SITES to the latest list of mirrors. Patch radsqlrelay to work correctly with FreeBSD. [1] [1] - http://preview.tinyurl.com/2ku5yp >How-To-Repeat: >Fix: Files added: files/patch-radsqlrelay Files deleted: Patch attached with submission follows: Index: files/patch-radsqlrelay =================================================================== --- files/patch-radsqlrelay (.../branches/FreeBSD-ports-tree/freeradius) (revision 0) +++ files/patch-radsqlrelay (.../trunk/freeradius) (revision 166) @@ -0,0 +1,32 @@ +--- scripts/radsqlrelay Sat Nov 4 12:58:14 2006 ++++ scripts/radsqlrelay Wed Jan 23 00:54:27 2008 +@@ -43,14 +43,13 @@ + } + + # /!\ OS-dependent structure +-# Linux struct flock +-# short l_type; +-# short l_whence; ++# FreeBSD struct flock + # off_t l_start; + # off_t l_len; + # pid_t l_pid; +-# c2ph says: typedef='s2 l2 i', sizeof=16 +-my $FLOCK_STRUCT = 's2l2i'; ++# short l_type; ++# short l_whence; ++my $FLOCK_STRUCT = 'q2is2'; + + sub setlock($;$$) + { +@@ -58,8 +57,8 @@ + $start = 0 unless defined $start; + $len = 0 unless defined $len; + +- #type whence start till pid +- my $packed = pack($FLOCK_STRUCT, F_WRLCK, SEEK_SET, $start, $len, 0); ++ #start till pid type whence ++ my $packed = pack($FLOCK_STRUCT, $start, $len, 0, F_WRLCK, SEEK_SET); + if (fcntl($fh, F_SETLKW, $packed)) { return 1 } + else { return 0 } + } Index: Makefile =================================================================== --- Makefile (.../branches/FreeBSD-ports-tree/freeradius) (revision 166) +++ Makefile (.../trunk/freeradius) (revision 166) @@ -7,14 +7,14 @@ PORTNAME= freeradius PORTVERSION?= 1.1.7 -PORTREVISION?= 2 +PORTREVISION?= 3 CATEGORIES= net -MASTER_SITES= ftp://ftp.freeradius.org/pub/radius/ \ - ftp://ftp.ntua.gr/pub/net/radius/freeradius/ \ - ftp://ftp.uk.freeradius.org/pub/radius/ \ - ftp://ftp.us.freeradius.org/pub/radius/ \ - http://freeradius.portal-to-web.de/ -MASTER_SITE_SUBDIR= . old +MASTER_SITES= ftp://ftp.freeradius.org/pub/freeradius/%SUBDIR%/ \ + ftp://ftp.ntua.gr/pub/net/radius/freeradius/%SUBDIR%/ \ + ftp://ftp.uk.freeradius.org/pub/radius/%SUBDIR%/ \ + http://ftp.cc.uoc.gr/mirrors/ftp.freeradius.org/%SUBDIR%/ \ + http://freeradius.portal-to-web.de/%SUBDIR%/ +MASTER_SITE_SUBDIR= . old MAINTAINER?= david@wood2.org.uk COMMENT?= A free RADIUS server implementation >Release-Note: >Audit-Trail: >Unformatted: