This port might be better off in the attic.

* drop myself as maintainer
* bumps PKGNAME
* fix data types to correct compile time warnings
* fix an off by one

Index: Makefile
===================================================================
RCS file: /cvs/ports/net/radiusd-lucent/Makefile,v
retrieving revision 1.22
diff -u -p -r1.22 Makefile
--- Makefile    15 Sep 2007 22:36:58 -0000      1.22
+++ Makefile    1 Jul 2008 14:57:52 -0000
@@ -3,15 +3,13 @@
 COMMENT=       Lucent remote access RADIUS server
 
 DISTNAME=      radius21
-PKGNAME=       radiusd-lucent-2.1p7
+PKGNAME=       radiusd-lucent-2.1p8
 CATEGORIES=    net
 MASTER_SITES=  http://www.vergenet.net/linux/radius/download/
 PATCHFILES=    radius-2.1.comprehensive.6.patch.gz
 EXTRACT_SUFX=  .tar.Z
 
 HOMEPAGE=      http://www.vergenet.net/linux/radius/
-
-MAINTAINER=    Dan Harnett <[EMAIL PROTECTED]>
 
 PERMIT_PACKAGE_CDROM=  Yes
 PERMIT_PACKAGE_FTP=    Yes
Index: patches/patch-radius_src_acct_c
===================================================================
RCS file: patches/patch-radius_src_acct_c
diff -N patches/patch-radius_src_acct_c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-radius_src_acct_c     1 Jul 2008 14:57:52 -0000
@@ -0,0 +1,14 @@
+$OpenBSD$
+--- radius/src/acct.c.orig     Mon Jun 30 13:39:26 2008
++++ radius/src/acct.c  Mon Jun 30 13:40:45 2008
+@@ -118,8 +118,8 @@ int fd;
+       int                     logok;
+       int                     proxied;
+       int                     retsig;
+-      int                     result;
+-      size_t                  salen;
++      ssize_t                 result;
++      socklen_t               salen;
+       struct  sockaddr_in     *sin;
+       u_short                 port;
+ 
Index: patches/patch-radius_src_proxy_c
===================================================================
RCS file: patches/patch-radius_src_proxy_c
diff -N patches/patch-radius_src_proxy_c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-radius_src_proxy_c    1 Jul 2008 14:57:52 -0000
@@ -0,0 +1,34 @@
+$OpenBSD$
+--- radius/src/proxy.c.orig    Tue Jul  1 10:09:45 2008
++++ radius/src/proxy.c Tue Jul  1 10:12:16 2008
+@@ -139,9 +139,9 @@ int fd;
+       char                    digest[AUTH_VECTOR_LEN];
+       char                    hold_digest[AUTH_VECTOR_LEN];
+       char                    *sentreqauth=NULL;
+-      int                     result;
++      ssize_t                 result;
+       int                     secretlen;
+-      size_t                  salen;
++      socklen_t               salen;
+       struct  sockaddr_in     *sin;
+       struct  sockaddr_in     rad_saremote;
+       u_short                 port;
+@@ -151,8 +151,7 @@ int fd;
+ 
+       auth = (AUTH_HDR *)recv_buffer;
+ 
+-      result = recvfrom (fd, (char *) recv_buffer,
+-              (int) sizeof(recv_buffer),
++      result = recvfrom (fd, (char *) recv_buffer, sizeof(recv_buffer),
+               (int) 0, (struct sockaddr *)&rad_saremote, &salen);
+ 
+       host = ntohl(sin->sin_addr.s_addr);
+@@ -1063,7 +1062,7 @@ AUTH_REQ *authreq;
+                       qp = qp->next;
+               }
+       }
+-      for (newid = curid; newid < 256; newid++) {
++      for (newid = curid; newid < 255; newid++) {
+               if (inuse[newid] == 0) {
+                       curid = ((newid+1) & 0xff);
+                       return newid;
Index: patches/patch-radius_src_radiusd_c
===================================================================
RCS file: /cvs/ports/net/radiusd-lucent/patches/patch-radius_src_radiusd_c,v
retrieving revision 1.2
diff -u -p -r1.2 patch-radius_src_radiusd_c
--- patches/patch-radius_src_radiusd_c  29 Jun 2003 04:48:39 -0000      1.2
+++ patches/patch-radius_src_radiusd_c  1 Jul 2008 14:57:52 -0000
@@ -1,6 +1,6 @@
 $OpenBSD: patch-radius_src_radiusd_c,v 1.2 2003/06/29 04:48:39 avsm Exp $
---- radius/src/radiusd.c.orig  Fri Jun 20 14:01:33 2003
-+++ radius/src/radiusd.c       Fri Jun 20 14:03:24 2003
+--- radius/src/radiusd.c.orig  Tue Jul  1 10:08:23 2008
++++ radius/src/radiusd.c       Tue Jul  1 10:09:19 2008
 @@ -72,7 +72,6 @@ static char sccsid[] =
  #include      <errno.h>
  #include      <sys/wait.h>
@@ -9,7 +9,43 @@ $OpenBSD: patch-radius_src_radiusd_c,v 1
  
  #include      "radius.h"
  #include      "users.h"
-@@ -2498,9 +2497,9 @@ const size_t    hostnm_len;
+@@ -627,8 +626,8 @@ int fd;
+       UINT4                   addr;
+       char                    secret[20];
+       char                    hostnm[128];
+-      int                     result;
+-      size_t                  salen;
++      ssize_t                 result;
++      socklen_t               salen;
+       struct  sockaddr_in     *sin;
+       u_short                 port;
+ 
+@@ -644,8 +643,7 @@ int fd;
+ 
+       salen = sizeof (rad_saremote);
+       sin = (struct sockaddr_in *) & rad_saremote;
+-      result = recvfrom (fd, (char *) recv_buffer,
+-              (int) sizeof(recv_buffer),
++      result = recvfrom (fd, (char *) recv_buffer, sizeof(recv_buffer),
+               (int) 0, (struct sockaddr *)&rad_saremote, &salen);
+ 
+       addr = ntohl(sin->sin_addr.s_addr);
+@@ -1847,12 +1845,12 @@ int            activefd;
+               code = PW_PASSWORD_REJECT;
+       }
+       else {
+-#endif PASSCHANGE
++#endif
+               code = PW_AUTHENTICATION_REJECT;
+               report[RR_REJECT]++;
+ #ifdef PASSCHANGE
+       }
+-#endif PASSCHANGE
++#endif
+ 
+       DEBUG("sending reject to %s\n", req2strp(authreq));
+       total_length = build_packet(authreq,(VALUE_PAIR 
*)NULL,msg,code,FW_REPLY,send_buffer);
+@@ -2498,9 +2496,9 @@ const size_t    hostnm_len;
  
  #define BUFFER_LEN 256
  #define SECRET_LEN 64

Reply via email to