diff options
author | Jean Milanez Melo <jmelo@FreeBSD.org> | 2008-01-31 13:29:09 +0000 |
---|---|---|
committer | Jean Milanez Melo <jmelo@FreeBSD.org> | 2008-01-31 13:29:09 +0000 |
commit | 7dd492d8223482da0cc3b6f14cdac99d9318430a (patch) | |
tree | 482f607b432ed872fcde6a7387b75ddb525ec757 /net/freeradius | |
parent | 165fdf83a6dafcda9db723c0b9770b815b528456 (diff) | |
download | ports-7dd492d8223482da0cc3b6f14cdac99d9318430a.tar.gz ports-7dd492d8223482da0cc3b6f14cdac99d9318430a.zip |
- Fix radsqlrelay.
- Bump portrevision.
- Update mastersites.
PR: ports/119910
Submitted by: David Wood <david@wood2.org.uk> (maintainer)
Notes
Notes:
svn path=/head/; revision=206508
Diffstat (limited to 'net/freeradius')
-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 } + } |