From owner-freebsd-ports-bugs@FreeBSD.ORG Tue May 6 14:30:15 2003 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5279C37B43F for ; Tue, 6 May 2003 14:30:15 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC67243F93 for ; Tue, 6 May 2003 14:30:13 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h46LUDUp076958 for ; Tue, 6 May 2003 14:30:13 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h46LUD3q076957; Tue, 6 May 2003 14:30:13 -0700 (PDT) Resent-Date: Tue, 6 May 2003 14:30:13 -0700 (PDT) Resent-Message-Id: <200305062130.h46LUD3q076957@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, KATO Tsuguru Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1ED4C37B401 for ; Tue, 6 May 2003 14:21:10 -0700 (PDT) Received: from hfep07.dion.ne.jp (hfep07.dion.ne.jp [203.181.105.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3FBB143F75 for ; Tue, 6 May 2003 14:21:09 -0700 (PDT) (envelope-from tkato@prontomail.com) Received: from localhost ([61.198.223.108]) by hfep07.dion.ne.jp with SMTP id <20030506212051855.DSGC@hfep07.dion.ne.jp> for ; Wed, 7 May 2003 06:20:51 +0900 Message-Id: <20030507061816.7adae90a.tkato@prontomail.com> Date: Wed, 7 May 2003 06:18:16 +0900 From: KATO Tsuguru To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/51895: Update port: net/gspoof X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 May 2003 21:30:15 -0000 >Number: 51895 >Category: ports >Synopsis: Update port: net/gspoof >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue May 06 14:30:13 PDT 2003 >Closed-Date: >Last-Modified: >Originator: KATO Tsuguru >Release: FreeBSD 4.8-RELEASE i386 >Organization: >Environment: >Description: - Fix build on -stable - Utilize USE_GETOPT_LONG - Utilize NOPORTDOCS New file: files/patch-callback.c files/patch-console.c Remove file: files/patch-Makefile >How-To-Repeat: >Fix: diff -urN /usr/ports/net/gspoof/Makefile net/gspoof/Makefile --- /usr/ports/net/gspoof/Makefile Mon Apr 21 12:25:14 2003 +++ net/gspoof/Makefile Wed May 7 04:03:25 2003 @@ -8,6 +8,7 @@ PORTNAME= gspoof PORTVERSION= 2.1.1 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -17,16 +18,22 @@ BUILD_DEPENDS= ${LOCALBASE}/lib/libnet.a:${PORTSDIR}/net/libnet-devel -USE_REINPLACE= yes -USE_GNOME= gtk12 WRKSRC= ${WRKDIR}/${PORTNAME} + +USE_GETOPT_LONG= yes +USE_GNOME= gtk12 +USE_REINPLACE= yes +MAKE_ARGS= CC="${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" ALL_TARGET= gtk -CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib post-patch: - @${REINPLACE_CMD} -e "s|gtk-config|${GTK_CONFIG}|g" ${WRKSRC}/Makefile + @${REINPLACE_CMD} -e "s|gtk-config|\$${GTK_CONFIG}|g" ${WRKSRC}/Makefile do-install: ${INSTALL_PROGRAM} ${WRKSRC}/gspoof ${PREFIX}/bin +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} +.endif .include diff -urN /usr/ports/net/gspoof/files/patch-Makefile net/gspoof/files/patch-Makefile --- /usr/ports/net/gspoof/files/patch-Makefile Wed Jan 29 13:17:37 2003 +++ net/gspoof/files/patch-Makefile Thu Jan 1 09:00:00 1970 @@ -1,8 +0,0 @@ ---- Makefile.orig Wed Sep 25 03:17:31 2002 -+++ Makefile Wed Jan 29 12:04:47 2003 -@@ -1,4 +1,4 @@ --CC := gcc -O3 -ansi -Wall -+CC+= ${CFLAGS} - VERSION = "Gspoof -< Console/GTK+ TCP/IP Packets Forger v. 2.1.1 >-" - GSRC = main.c interface.c callbacks.c console.c common.c - CSRC = cmain.c console.c common.c diff -urN /usr/ports/net/gspoof/files/patch-callback.c net/gspoof/files/patch-callback.c --- /usr/ports/net/gspoof/files/patch-callback.c Thu Jan 1 09:00:00 1970 +++ net/gspoof/files/patch-callback.c Wed May 7 03:57:15 2003 @@ -0,0 +1,24 @@ +--- callbacks.c.orig Wed Sep 25 04:19:53 2002 ++++ callbacks.c Wed May 7 03:40:18 2003 +@@ -194,13 +194,21 @@ + return; + } + ++#ifdef __FreeBSD__ ++ if (atoi (gtk_entry_get_text (GTK_ENTRY(tcp_seq_txt))) > 4294970000 || atoi (gtk_entry_get_text (GTK_ENTRY(tcp_seq_txt))) < 0) ++#else + if (atoll (gtk_entry_get_text (GTK_ENTRY(tcp_seq_txt))) > 4294970000 || atoi (gtk_entry_get_text (GTK_ENTRY(tcp_seq_txt))) < 0) ++#endif + { + info ("Error: sequence number is not valid, it must be between 0 and 2^32-1\n"); + return; + } + ++#ifdef __FreeBSD__ ++ if (atoi (gtk_entry_get_text (GTK_ENTRY(tcp_ack_txt))) > 4294970000 || atoi (gtk_entry_get_text (GTK_ENTRY(tcp_ack_txt))) < 0) ++#else + if (atoll (gtk_entry_get_text (GTK_ENTRY(tcp_ack_txt))) > 4294970000 || atoi (gtk_entry_get_text (GTK_ENTRY(tcp_ack_txt))) < 0) ++#endif + { + info ("Error: acknowledgement number is not valid, it must be between 0 and 2^32-1\n"); + return; diff -urN /usr/ports/net/gspoof/files/patch-console.c net/gspoof/files/patch-console.c --- /usr/ports/net/gspoof/files/patch-console.c Thu Jan 1 09:00:00 1970 +++ net/gspoof/files/patch-console.c Wed May 7 03:56:41 2003 @@ -0,0 +1,26 @@ +--- console.c.orig Wed Sep 25 04:20:25 2002 ++++ console.c Wed May 7 03:42:30 2003 +@@ -333,7 +333,11 @@ + fgets(value, 20, stdin); + seq = atol(value); + } ++#ifdef __FreeBSD__ ++ while (atoi(value) < 0 || atoi(value) > 4294970000); ++#else + while (atoi(value) < 0 || atoll(value) > 4294970000); ++#endif + } + else if (!strcmp ("3.5", cmd)) + { +@@ -343,7 +347,11 @@ + fgets(value, 20, stdin); + ack = atol(value); + } ++#ifdef __FreeBSD__ ++ while (atoi(value) < 0 || atoi(value) > 4294970000); ++#else + while (atoi(value) < 0 || atoll(value) > 4294970000); ++#endif + } + else if (!strcmp ("3.6", cmd)) + { diff -urN /usr/ports/net/gspoof/pkg-plist net/gspoof/pkg-plist --- /usr/ports/net/gspoof/pkg-plist Wed Jan 29 13:17:36 2003 +++ net/gspoof/pkg-plist Wed May 7 04:07:38 2003 @@ -1 +1,3 @@ bin/gspoof +%%PORTDOCS%%share/doc/gspoof/README +%%PORTDOCS%%@dirrm share/doc/gspoof >Release-Note: >Audit-Trail: >Unformatted: