summaryrefslogtreecommitdiff
path: root/net-mgmt
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2004-03-12 09:17:12 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2004-03-12 09:17:12 +0000
commitb53318104bb4aff422201b63a657ea7fb66158a0 (patch)
tree5be06d74b94551653ec35d33049801bf4a68a12f /net-mgmt
parent- Fix defaults with BATCH=yes (diff)
- Fix incorrect accept(2) usage
- SIZE'ify and remove unneeded distfile from distinfo [1] - Pet portlint [2] - Bump PORTREVISION PR: ports/64088 Submitted by: maintainer, trevor [1], krion [2]
Notes
Notes: svn path=/head/; revision=103744
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/ehnt/Makefile2
-rw-r--r--net-mgmt/ehnt/distinfo2
-rw-r--r--net-mgmt/ehnt/files/patch-ehntserv.c13
-rw-r--r--net-mgmt/ehnt/pkg-plist4
4 files changed, 14 insertions, 7 deletions
diff --git a/net-mgmt/ehnt/Makefile b/net-mgmt/ehnt/Makefile
index 5412eb21ba21..6bd26da01fbb 100644
--- a/net-mgmt/ehnt/Makefile
+++ b/net-mgmt/ehnt/Makefile
@@ -7,7 +7,7 @@
PORTNAME= ehnt
PORTVERSION= 0.3
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= net-mgmt
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
diff --git a/net-mgmt/ehnt/distinfo b/net-mgmt/ehnt/distinfo
index ab4880cb73b7..0fdb2a7ddce2 100644
--- a/net-mgmt/ehnt/distinfo
+++ b/net-mgmt/ehnt/distinfo
@@ -1,2 +1,2 @@
MD5 (ehnt-0.3.tar.gz) = 1477137f5207561cafb421864351562d
-MD5 (ehnt_data-0.3.tar.gz) = b861e0fb0092c45c71b9048e9a4b1679
+SIZE (ehnt-0.3.tar.gz) = 25795
diff --git a/net-mgmt/ehnt/files/patch-ehntserv.c b/net-mgmt/ehnt/files/patch-ehntserv.c
index 71703c65150b..acec128df410 100644
--- a/net-mgmt/ehnt/files/patch-ehntserv.c
+++ b/net-mgmt/ehnt/files/patch-ehntserv.c
@@ -2,7 +2,7 @@
$FreeBSD$
--- ehntserv.c.orig Thu Oct 4 22:18:29 2001
-+++ ehntserv.c Thu Nov 14 22:18:40 2002
++++ ehntserv.c Fri May 30 14:16:22 2003
@@ -33,8 +33,8 @@
#define MAXCLIENTS 256
#define MAXPACKET 8192
@@ -120,11 +120,18 @@ $FreeBSD$
for (i=0; i<MAXCLIENTS; i++) {
if (l_clients[i] > 0) {
if (FD_ISSET(l_clients[i],&write_fds)) {
-@@ -220,9 +230,9 @@
+@@ -215,14 +225,14 @@
+ if (FD_ISSET(l_fd,&read_fds)) { /*we have a new TCP client*/
+ int l_connfd,new_index=-1;
+ socklen_t l_addrlen;
+- struct sockaddr * l_cliaddr;
++ struct sockaddr l_cliaddr;
+
/* printf("incoming connection on tcp 4444\n");*/
l_addrlen=sizeof(l_cliaddr);
- if ( (l_connfd = accept(l_fd,(struct sockaddr *) l_cliaddr, &l_addrlen)) < 0)
+- if ( (l_connfd = accept(l_fd,(struct sockaddr *) l_cliaddr, &l_addrlen)) < 0)
- { log_error("accept error"); exit(0); }
++ if ( (l_connfd = accept(l_fd, &l_cliaddr, &l_addrlen)) < 0)
+ { log_error("accept error"); exit(1); }
- SetTCPOpts(l_connfd);
diff --git a/net-mgmt/ehnt/pkg-plist b/net-mgmt/ehnt/pkg-plist
index 482ecee5ac30..f9c8a00996b3 100644
--- a/net-mgmt/ehnt/pkg-plist
+++ b/net-mgmt/ehnt/pkg-plist
@@ -1,7 +1,7 @@
bin/ehnt
etc/rc.d/ehntserv.sh.sample
sbin/ehntserv
-%%PORTDOCS%%share/doc/ehnt/README
+%%PORTDOCS%%%%DOCSDIR%%/README
share/ehnt/asnc.txt
@dirrm share/ehnt
-%%PORTDOCS%%@dirrm share/doc/ehnt
+%%PORTDOCS%%@dirrm %%DOCSDIR%%