diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 1997-04-24 08:04:53 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 1997-04-24 08:04:53 +0000 |
commit | 07df187a7a5b4201801dc4ce4e86f775918fb389 (patch) | |
tree | 6482c16e8acc4739d20b4c253422ae377ae287c9 /sysutils/tcplist/files | |
parent | 69ac7b4b06e3e9d7105029824b2ebf9c72158d41 (diff) | |
download | ports-07df187a7a5b4201801dc4ce4e86f775918fb389.tar.gz ports-07df187a7a5b4201801dc4ce4e86f775918fb389.zip |
Notes
Diffstat (limited to 'sysutils/tcplist/files')
-rw-r--r-- | sysutils/tcplist/files/patch-01 | 49 | ||||
-rw-r--r-- | sysutils/tcplist/files/patch-02 | 28 |
2 files changed, 77 insertions, 0 deletions
diff --git a/sysutils/tcplist/files/patch-01 b/sysutils/tcplist/files/patch-01 new file mode 100644 index 000000000000..1bc169c506e6 --- /dev/null +++ b/sysutils/tcplist/files/patch-01 @@ -0,0 +1,49 @@ +--- Makefile.orig Mon Apr 14 18:06:02 1997 ++++ Makefile Mon Apr 14 18:08:48 1997 +@@ -1,14 +1,16 @@ + # Compiler: eg. cc or gcc + CC = cc + ++#PREFIX= /local ++ + # Directory to install tcplist executable +-BINDIR = /local/bin ++BINDIR = $(PREFIX)/bin + + # Directory to install tcplist man page +-MANDIR = /local/man/man1 ++MANDIR = $(PREFIX)/man/man1 + + # Location of NOIDENT file +-NOIDENT = /etc/hosts.noident ++NOIDENT = $(PREFIX)/etc/hosts.noident + + # Owner of tcplist executable + OWNER = root +@@ -45,18 +47,18 @@ + # + # Solaris 2.x (using LSOF): + # +-LIBRARIES = -lsocket -lnsl +-DEFS = -DLSOF +-MODE = 755 +-GROUP = staff ++#LIBRARIES = -lsocket -lnsl ++#DEFS = -DLSOF ++#MODE = 755 ++#GROUP = staff + + # + # Generic LSOF: + # +-# LIBRARIES = +-# DEFS = -DLSOF +-# MODE = 755 +-# GROUP = staff ++ LIBRARIES = ++ DEFS = -DLSOF ++ MODE = 755 ++ GROUP = staff + # + + # If you're using an old version of lsof, uncomment this: diff --git a/sysutils/tcplist/files/patch-02 b/sysutils/tcplist/files/patch-02 new file mode 100644 index 000000000000..e5daecc457ce --- /dev/null +++ b/sysutils/tcplist/files/patch-02 @@ -0,0 +1,28 @@ +--- tcplist.c.orig Tue Apr 15 00:28:29 1997 ++++ tcplist.c Tue Apr 15 00:31:40 1997 +@@ -37,6 +37,10 @@ + #include <arpa/inet.h> + #include <netdb.h> + ++#if ((defined(__unix__) || defined(unix)) && !defined(USG)) ++#include <sys/param.h> ++#endif ++ + #include "utils.h" + #include "tcplist.h" + +@@ -346,10 +350,14 @@ + + if(verbose) printf("Connecting to remote hosts.\n"); + ++#if (defined(BSD) && (BSD >= 199103)) ++ maxfd=getdtablesize(); /* could also use getrlimit(2) here... */ ++#else + if(0>(maxfd=ulimit(4,0l))){ + perror("ulimit"); + exit(2); + } ++#endif + + /* waltz through the connections in the hostlist, setting idents */ + /* to NULL */ |