mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
- Fix radsqlrelay.
- Bump portrevision. - Update mastersites. PR: ports/119910 Submitted by: David Wood <david@wood2.org.uk> (maintainer)
This commit is contained in:
parent
165fdf83a6
commit
7dd492d822
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=206508
@ -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
|
||||
|
32
net/freeradius/files/patch-radsqlrelay
Normal file
32
net/freeradius/files/patch-radsqlrelay
Normal file
@ -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 }
|
||||
}
|
Loading…
Reference in New Issue
Block a user