summaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-03-12 09:17:12 +0000
committerkrion <krion@FreeBSD.org>2004-03-12 09:17:12 +0000
commit79c4aeb9a5b00f0a752edf4ef5cd6e8f4eed506f (patch)
tree4f30cf74b041d4729881e83db5c1f7dd1afdd5f3 /net-mgmt
parentdf8066c6e468dc8b07f2e72e3e8db903c3a656f1 (diff)
downloadFreeBSD-ports-79c4aeb9a5b00f0a752edf4ef5cd6e8f4eed506f.zip
FreeBSD-ports-79c4aeb9a5b00f0a752edf4ef5cd6e8f4eed506f.tar.gz
- 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]
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 5412eb2..6bd26da 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 ab4880c..0fdb2a7 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 71703c6..acec128 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 482ecee..f9c8a00 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%%
OpenPOWER on IntegriCloud