diff options
author | jmelo <jmelo@FreeBSD.org> | 2008-01-31 21:29:09 +0800 |
---|---|---|
committer | jmelo <jmelo@FreeBSD.org> | 2008-01-31 21:29:09 +0800 |
commit | 350a117e4dedc52e417fb966629d0fa4dc29ffc8 (patch) | |
tree | 02634c0010f1fd59a187d87adabb743d46ac66bf /net | |
parent | 626ddde65bd7a6d4a0e964acdbe3efcdc51af791 (diff) | |
download | freebsd-ports-gnome-350a117e4dedc52e417fb966629d0fa4dc29ffc8.tar.gz freebsd-ports-gnome-350a117e4dedc52e417fb966629d0fa4dc29ffc8.tar.zst freebsd-ports-gnome-350a117e4dedc52e417fb966629d0fa4dc29ffc8.zip |
- Fix radsqlrelay.
- Bump portrevision.
- Update mastersites.
PR: ports/119910
Submitted by: David Wood <david@wood2.org.uk> (maintainer)
Diffstat (limited to 'net')
-rw-r--r-- | net/freeradius/Makefile | 12 | ||||
-rw-r--r-- | net/freeradius/files/patch-radsqlrelay | 32 |
2 files changed, 38 insertions, 6 deletions
diff --git a/net/freeradius/Makefile b/net/freeradius/Makefile index da5da32ffad0..6c53e8fd7bb9 100644 --- a/net/freeradius/Makefile +++ b/net/freeradius/Makefile @@ -7,13 +7,13 @@ 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_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 diff --git a/net/freeradius/files/patch-radsqlrelay b/net/freeradius/files/patch-radsqlrelay new file mode 100644 index 000000000000..0db498671b89 --- /dev/null +++ b/net/freeradius/files/patch-radsqlrelay @@ -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 } + } |