new xip port

This commit is contained in:
dugsong 1999-06-21 19:41:32 +00:00
parent 223a81767a
commit e431350f51
10 changed files with 240 additions and 0 deletions

36
net/xip/Makefile Normal file
View File

@ -0,0 +1,36 @@
# Makefile for: xip
# Version required: 1.3.1
# Date created: 21 Jun 1999
# Whom: dugsong@monkey.org
#
# $OpenBSD: Makefile,v 1.1.1.1 1999/06/21 19:41:32 dugsong Exp $
DISTNAME= xip-1.3.1
CATEGORIES= net
MASTER_SITES= http://www.capmedia.fr/mgall/xip/
MAINTAINER= dugsong@monkey.org
USE_AUTOCONF= yes
CONFIGURE_ENV= INCLUDES="-I${X11BASE}/include" \
LIBS="-L${X11BASE}/lib -lX11 -lXext -lXt -lXaw -lXmu"
USE_X11= yes
post-build:
@echo "(this use of mktemp has been made safe in this OpenBSD port)"
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/xip/xip ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/doc/xip.1 ${PREFIX}/man/man1
${INSTALL_DATA} ${WRKSRC}/xip/Xip.ad ${PREFIX}/lib/X11/app-defaults
${INSTALL_DATA_DIR} ${PREFIX}/lib/xip
for dir in pkb pkc pkt ; do \
${INSTALL_DATA_DIR} ${PREFIX}/lib/xip/$$dir ; \
${INSTALL_DATA} ${WRKSRC}/lib/$$dir/* ${PREFIX}/lib/xip/$$dir ; \
done
.include <bsd.port.mk>

3
net/xip/files/md5 Normal file
View File

@ -0,0 +1,3 @@
SHA1 (xip-1.3.1.tar.gz) = 9cae6c69fcccb2e1438c1a1aaf658b36c81d0eef
RMD160 (xip-1.3.1.tar.gz) = 9c9171537afa33ad488787b7db8d9e155093272f
MD5 (xip-1.3.1.tar.gz) = 86ad928eb727026faa3c14da20aad3c5

11
net/xip/patches/patch-aa Normal file
View File

@ -0,0 +1,11 @@
--- configure.in-orig Sun Jun 20 11:43:38 1999
+++ configure.in Mon Jun 21 15:11:46 1999
@@ -61,7 +61,7 @@
dnl library functions
dnl
-AC_CHECK_FUNCS(bzero bcopy bcmp strdup qsort snprintf usleep strerror strtol strtoul dlopen)
+AC_CHECK_FUNCS(bzero bcopy bcmp strdup qsort snprintf usleep strerror strtol strtoul dlopen mkdtemp)
MG_LIBPCAP(PCAP_DEP,PCAP_INCLPATH,PCAP_LIBPATH)
AC_SUBST(PCAP_DEP)
AC_SUBST(PCAP_INCLPATH)

12
net/xip/patches/patch-ab Normal file
View File

@ -0,0 +1,12 @@
--- config.h.in-orig Thu May 13 11:49:54 1999
+++ config.h.in Mon Jun 21 15:14:01 1999
@@ -64,6 +64,9 @@
/* Define if you have the dlopen function. */
#undef HAVE_DLOPEN
+/* Define if you have the mkdtemp function. */
+#undef HAVE_MKDTEMP
+
/* Define if you have the qsort function. */
#undef HAVE_QSORT

13
net/xip/patches/patch-ac Normal file
View File

@ -0,0 +1,13 @@
--- xip/xipvar.c-orig Mon Jun 21 11:53:08 1999
+++ xip/xipvar.c Mon Jun 21 11:55:11 1999
@@ -54,6 +54,10 @@
# include <dlfcn.h>
#endif
+#ifndef RTLD_NOW
+#define RTLD_NOW DL_LAZY
+#endif
+
extern Widget toplevel;
extern t_boolean verbose;
extern Pixmap xipicon_pixmap;

35
net/xip/patches/patch-ad Normal file
View File

@ -0,0 +1,35 @@
*** xip/xippkt.c-orig Mon Jun 21 13:37:43 1999
--- xip/xippkt.c Mon Jun 21 13:51:12 1999
***************
*** 962,967 ****
--- 962,979 ----
#define TMP_TEMPLATE "/tmp/xipXXXXXX"
strcpy(fnamebuf,TMP_TEMPLATE);
+
+ #ifdef HAVE_MKDTEMP
+ #define TMP_FILENAME "XXXXXXXXXX"
+
+ /* Wrap the unsafe mktemp() below. */
+ if ((fname = mkdtemp(fnamebuf)) == NULL)
+ return (-ERR_XIP_SUBROUTINE);
+
+ strcat(fnamebuf, "/");
+ strcat(fnamebuf, TMP_FILENAME);
+ #endif
+
if ((fname = mktemp(fnamebuf)) == NULL)
return (-ERR_XIP_SUBROUTINE);
if ((status = pkt_save_raw(xmd->xp->pkt,
***************
*** 1023,1028 ****
--- 1035,1043 ----
status = 0;
end:
unlink(fname);
+ #ifdef HAVE_MKDTEMP
+ rmdir(dirname(fname));
+ #endif
return (status);
}

1
net/xip/pkg/COMMENT Normal file
View File

@ -0,0 +1 @@
X11-based network packet inspection / manipulation

30
net/xip/pkg/DESCR Normal file
View File

@ -0,0 +1,30 @@
Xip-1.3.1 released
------------------
Xip is a human ip stack.
Features:
* Tutorware.
* High speed datagram display (designed entirely in C and X11).
* Hability to change datagram values, re-checksum and re-send them.
* Possibility to implement new patterns.
* Ether, ieee802 support.
* Full arp, rarp, ip, udp, tcp, icmp, igmp support (options, etc).
* Rip, dns, bootp, tftp, rpc support.
* Hundred of network patterns...
New:
* Partial token ring support.
* Full bootp/rfc1048/rfc2132/dhcp support.
* More and more patterns...
Location:
http://www.capmedia.net/mgall/xip
M.Gall

92
net/xip/pkg/PLIST Normal file
View File

@ -0,0 +1,92 @@
bin/xip
man/man1/xip.1
lib/X11/app-defaults/Xip.ad
lib/xip/pkb/dummy.pkb
@dirrm lib/xip/pkb
lib/xip/pkc/arp.pkc
lib/xip/pkc/arp_0.pkt
lib/xip/pkc/arp_1.pkt
lib/xip/pkc/arp_2.pkt
lib/xip/pkc/arp_3.pkt
lib/xip/pkc/arp_4.pkt
lib/xip/pkc/icmp.pkc
lib/xip/pkc/icmp_0.pkt
lib/xip/pkc/icmp_1.pkt
lib/xip/pkc/icmp_2.pkt
lib/xip/pkc/icmp_3.pkt
lib/xip/pkc/icmp_4.pkt
lib/xip/pkc/nfs.pkc
lib/xip/pkc/nfs_0.pkt
lib/xip/pkc/nfs_1.pkt
lib/xip/pkc/nfs_10.pkt
lib/xip/pkc/nfs_11.pkt
lib/xip/pkc/nfs_12.pkt
lib/xip/pkc/nfs_13.pkt
lib/xip/pkc/nfs_2.pkt
lib/xip/pkc/nfs_3.pkt
lib/xip/pkc/nfs_4.pkt
lib/xip/pkc/nfs_5.pkt
lib/xip/pkc/nfs_6.pkt
lib/xip/pkc/nfs_7.pkt
lib/xip/pkc/nfs_8.pkt
lib/xip/pkc/nfs_9.pkt
lib/xip/pkc/ping_rr.pkc
lib/xip/pkc/ping_rr_0.pkt
lib/xip/pkc/ping_rr_1.pkt
lib/xip/pkc/ping_rr_2.pkt
lib/xip/pkc/ping_rr_3.pkt
lib/xip/pkc/ping_rr_4.pkt
lib/xip/pkc/ping_rr_5.pkt
lib/xip/pkc/telnet.pkc
lib/xip/pkc/telnet_0.pkt
lib/xip/pkc/telnet_1.pkt
lib/xip/pkc/telnet_10.pkt
lib/xip/pkc/telnet_11.pkt
lib/xip/pkc/telnet_12.pkt
lib/xip/pkc/telnet_13.pkt
lib/xip/pkc/telnet_14.pkt
lib/xip/pkc/telnet_15.pkt
lib/xip/pkc/telnet_16.pkt
lib/xip/pkc/telnet_17.pkt
lib/xip/pkc/telnet_2.pkt
lib/xip/pkc/telnet_3.pkt
lib/xip/pkc/telnet_4.pkt
lib/xip/pkc/telnet_5.pkt
lib/xip/pkc/telnet_6.pkt
lib/xip/pkc/telnet_7.pkt
lib/xip/pkc/telnet_8.pkt
lib/xip/pkc/telnet_9.pkt
lib/xip/pkc/traceroute.pkc
lib/xip/pkc/traceroute_0.pkt
lib/xip/pkc/traceroute_1.pkt
@dirrm lib/xip/pkc
lib/xip/pkt/all.pkc
lib/xip/pkt/arp.pkt
lib/xip/pkt/arp_reply.pkt
lib/xip/pkt/ascii.pkt
lib/xip/pkt/big_tcp.pkt
lib/xip/pkt/dns_misc.pkt
lib/xip/pkt/dns_query.pkt
lib/xip/pkt/dns_response.pkt
lib/xip/pkt/ebcdic.pkt
lib/xip/pkt/echo_request.pkt
lib/xip/pkt/ether.pkt
lib/xip/pkt/ieee802.pkt
lib/xip/pkt/igmp.pkt
lib/xip/pkt/mkall
lib/xip/pkt/nastygram.pkt
lib/xip/pkt/ping_reply_rr.pkt
lib/xip/pkt/ping_reply_unable_rr.pkt
lib/xip/pkt/ping_request_rr.pkt
lib/xip/pkt/port_unreach.pkt
lib/xip/pkt/rfc2132.pkt
lib/xip/pkt/route.pkt
lib/xip/pkt/tcp_ack.pkt
lib/xip/pkt/tcp_syn.pkt
lib/xip/pkt/tftp.pkt
lib/xip/pkt/udp137.pkt
lib/xip/pkt/udp137_2.pkt
lib/xip/pkt/udp138.pkt
lib/xip/pkt/udp138_2.pkt
@dirrm lib/xip/pkt
@dirrm lib/xip

7
net/xip/pkg/SECURITY Normal file
View File

@ -0,0 +1,7 @@
fixed unsafe use of mktemp() in xip/xippkt.c
there may be other issues in the packet decoding routines.
-d.