fix port: update distfile, fake
This commit is contained in:
parent
c978ee7210
commit
85855d1680
@ -3,37 +3,29 @@
|
||||
# Date created: Oct 28 1999
|
||||
# Whom: dugsong@monkey.org
|
||||
#
|
||||
# $OpenBSD: Makefile,v 1.7 2000/04/09 17:37:23 espie Exp $
|
||||
# $OpenBSD: Makefile,v 1.8 2000/04/14 14:13:18 dugsong Exp $
|
||||
|
||||
BROKEN= sources missing
|
||||
PKGNAME= hping-2.0b53
|
||||
|
||||
PKGNAME= hping-2.0b49
|
||||
|
||||
DISTNAME= hping2-beta49
|
||||
DISTNAME= hping2-beta53
|
||||
|
||||
CATEGORIES= net
|
||||
NEED_VERSION= 1.191
|
||||
FAKE=No
|
||||
|
||||
MASTER_SITES= http://www.kyuzz.org/antirez/hping2-src/
|
||||
|
||||
MAINTAINER= dugsong@monkey.org
|
||||
|
||||
LICENSE_TYPE= GPL
|
||||
PERMIT_PACKAGE_CDROM= YES
|
||||
PERMIT_PACKAGE_FTP= YES
|
||||
PERMIT_DISTFILES_CDROM= YES
|
||||
PERMIT_DISTFILES_FTP= YES
|
||||
|
||||
WRKDIST= ${WRKDIR}/hping2/beta49
|
||||
|
||||
HAS_CONFIGURE= yes
|
||||
|
||||
ALL_TARGET= other
|
||||
FAKE= yes
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/hping2 ${PREFIX}/bin/hping
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/hping
|
||||
${INSTALL_DATA} ${WRKSRC}/../docs/*.txt ${PREFIX}/share/doc/hping
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/hping2 ${PREFIX}/sbin/hping
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,3 +1,3 @@
|
||||
MD5 (hping2-beta49.tar.gz) = a72e0ff4d4bcb74f0e2fb7e2b4c0c798
|
||||
RMD160 (hping2-beta49.tar.gz) = 936ba2dc4539c91f105cc6a2e69de4fe523c3108
|
||||
SHA1 (hping2-beta49.tar.gz) = b348780e6f37f5a1667b0acf0056b77ccaf9074d
|
||||
MD5 (hping2-beta53.tar.gz) = 0736c3ca093b2b1218150917dc5b20b2
|
||||
RMD160 (hping2-beta53.tar.gz) = e5ea4772241c2ccd8daa110e35b048ec136d879b
|
||||
SHA1 (hping2-beta53.tar.gz) = 9ff8e651e194dd03fc970a028e67b74fcbab6a17
|
||||
|
@ -1,32 +1,32 @@
|
||||
--- Makefile.orig Tue Aug 24 08:43:29 1999
|
||||
+++ Makefile Thu Oct 28 13:52:17 1999
|
||||
@@ -7,12 +7,12 @@
|
||||
--- Makefile.in.orig Fri Apr 14 08:54:59 2000
|
||||
+++ Makefile.in Fri Apr 14 08:56:51 2000
|
||||
@@ -7,12 +7,11 @@
|
||||
# $rev: 3$
|
||||
|
||||
CC= gcc
|
||||
-CCOPT= -O2 -Wall
|
||||
+CCOPT= ${CFLAGS}
|
||||
-CCOPT= -O2 -Wall @PCAP_INCLUDE@
|
||||
+CCOPT= -O2 -Wall
|
||||
DEBUG= -g
|
||||
DEFS= -DHAVE_PROC -D_BSD_SOURCE -DLIMITWHENSUID
|
||||
#uncomment the following if you need libpcap based build under linux
|
||||
#(not raccomanded)
|
||||
-#COMPILE_TIME= -DFORCE_LIBPCAP
|
||||
+COMPILE_TIME= -DFORCE_LIBPCAP
|
||||
PCAP= libpcap/libpcap.a
|
||||
-COMPILE_TIME= @FORCE_LIBPCAP@ @LIMITWHENSUID@ @HAVE_PROC@
|
||||
-@PCAP@
|
||||
+COMPILE_TIME= @LIMITWHENSUID@ @HAVE_PROC@
|
||||
|
||||
OBJ= main.o getifname.o getlhs.o \
|
||||
@@ -43,12 +43,8 @@
|
||||
@echo "use \`make strip' to strip hping2 binary"
|
||||
@echo "use \`make install' to install hping2"
|
||||
linux_sockpacket.o parseoptions.o datafiller.o \
|
||||
@@ -31,12 +30,8 @@
|
||||
|
||||
-other: byteorder.h $(OBJ) $(PCAP)
|
||||
- $(CC) -o hping2 $(CCOPT) $(DEBUG) $(COMPILE_TIME) $(DEFS) $(OBJ) $(PCAP)
|
||||
all: hping2
|
||||
|
||||
-hping2: byteorder.h $(OBJ) $(PCAP)
|
||||
- $(CC) -o hping2 $(CCOPT) $(DEBUG) $(COMPILE_TIME) $(OBJ) $(PCAP)
|
||||
- @echo
|
||||
- ./hping2 -v
|
||||
- @echo "use \`make strip' to strip hping2 binary"
|
||||
- @echo "use \`make install' to install hping2"
|
||||
+other: byteorder.h $(OBJ)
|
||||
+ $(CC) -o hping2 $(CCOPT) $(DEBUG) $(COMPILE_TIME) $(DEFS) $(OBJ) -lpcap
|
||||
+hping2: byteorder.h $(OBJ)
|
||||
+ $(CC) -o hping2 $(CCOPT) $(DEBUG) $(COMPILE_TIME) $(OBJ) -lpcap
|
||||
|
||||
byteorder.h:
|
||||
./configure
|
||||
|
@ -1,25 +1,27 @@
|
||||
--- getlhs.c.orig Tue Aug 24 08:43:29 1999
|
||||
+++ getlhs.c Thu Oct 28 14:02:45 1999
|
||||
@@ -20,16 +20,16 @@
|
||||
linkhdr_size = PPPHDR_SIZE;
|
||||
return 0;
|
||||
}
|
||||
- else if ( strstr(ifname, "eth") || strstr(ifname, "ed") )
|
||||
- {
|
||||
- linkhdr_size = ETHHDR_SIZE;
|
||||
- return 0;
|
||||
- }
|
||||
else if ( strstr(ifname, "lo") )
|
||||
--- getlhs.c.orig Mon Nov 22 11:29:54 1999
|
||||
+++ getlhs.c Fri Apr 14 10:00:06 2000
|
||||
@@ -84,22 +84,9 @@
|
||||
#endif
|
||||
|
||||
#ifdef OSTYPE_OPENBSD /* OpenBSD FIXME: grepped from FreeBSD, it's OK? */
|
||||
- else if ( strstr(ifname, "eth") /* ? */
|
||||
- || strstr(ifname, "ed")
|
||||
- || strstr(ifname, "ne")
|
||||
- || strstr(ifname, "xl") /* 3com */
|
||||
- || strstr(ifname, "vx") /* 3com (older model) */
|
||||
- || strstr(ifname, "fxp") /* Intel EtherExpress Pro/100B */
|
||||
- || strstr(ifname, "al") /* ADMtek Inc. AL981 "Comet" chip. */
|
||||
- || strstr(ifname, "de") /* Digital Equipment DC21040 */
|
||||
- || strstr(ifname, "mx") /* Macronix 98713, 987615 ans 98725 */
|
||||
- || strstr(ifname, "rl") /* RealTek 8129/8139 */
|
||||
- || strstr(ifname, "sf") /* Adaptec Duralink PCI */
|
||||
- || strstr(ifname, "sk") /* SysKonnect SK-984x */
|
||||
- || strstr(ifname, "tl") /* Compaq Netelligent 10/10+TNETE100 */
|
||||
- || strstr(ifname, "tx") /* SMC 9432TX */
|
||||
- || strstr(ifname, "wb")) /* Winbond W89C840F chip */
|
||||
+ else if (strncmp(ifname, "lo", 2) != 0)
|
||||
{
|
||||
linkhdr_size = LOHDR_SIZE;
|
||||
+ /* XXX - this code lames. */
|
||||
linkhdr_size = ETHHDR_SIZE;
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
- return -1;
|
||||
+ {
|
||||
+ /* XXX - bogus. but i'm not going to rewrite all this to use
|
||||
+ libpcap or libnet correctly... */
|
||||
+ linkhdr_size = ETHHDR_SIZE;
|
||||
+ return 0;
|
||||
+ }
|
||||
}
|
||||
|
@ -1,4 +1 @@
|
||||
bin/hping
|
||||
share/doc/hping/HPING2-HOWTO.txt
|
||||
share/doc/hping/spoofed_scan.txt
|
||||
@dirrm share/doc/hping
|
||||
sbin/hping
|
||||
|
Loading…
Reference in New Issue
Block a user