ports/57534: Update port: net/gspoof to 3.1
KATO Tsuguru
tkato at prontomail.com
Fri Oct 3 14:10:21 UTC 2003
>Number: 57534
>Category: ports
>Synopsis: Update port: net/gspoof to 3.1
>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: Fri Oct 03 07:10:12 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: KATO Tsuguru
>Release: FreeBSD 4.8-RELEASE-p10 i386
>Organization:
>Environment:
>Description:
- Update to version 3.1
Remove file:
files/patch-console.c
files/patch-gfuncts.c
>How-To-Repeat:
>Fix:
diff -urN /usr/ports/net/gspoof/Makefile net/gspoof/Makefile
--- /usr/ports/net/gspoof/Makefile Sun Aug 31 23:15:12 2003
+++ net/gspoof/Makefile Fri Oct 3 10:53:09 2003
@@ -7,7 +7,7 @@
#
PORTNAME= gspoof
-PORTVERSION= 3.0
+PORTVERSION= 3.1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -21,11 +21,10 @@
USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --with-libnet-prefix=${LOCALBASE}
post-patch:
- @${REINPLACE_CMD} -e 's|/usr/local/lib|${LOCALBASE}/lib|g ; \
- s|/usr/local/include|${LOCALBASE}/include|g ; \
- s|-Wall -O2|$${CFLAGS}|g' ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e 's|-Wall -O2|$${CFLAGS}|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|-Wall -O2|@CFLAGS@|g' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|/usr/local/share|${PREFIX}/share|g ; \
s|/usr/share|${X11BASE}/share|g' ${WRKSRC}/gtk.c
diff -urN /usr/ports/net/gspoof/distinfo net/gspoof/distinfo
--- /usr/ports/net/gspoof/distinfo Sun Aug 31 23:15:12 2003
+++ net/gspoof/distinfo Fri Oct 3 10:47:21 2003
@@ -1 +1 @@
-MD5 (gspoof-3.0.tar.gz) = fb7de0bfc1353d8edc4f1825b2013959
+MD5 (gspoof-3.1.tar.gz) = 97ec57688ffba90dcadda11354ceaffe
diff -urN /usr/ports/net/gspoof/files/patch-console.c net/gspoof/files/patch-console.c
--- /usr/ports/net/gspoof/files/patch-console.c Sun Aug 31 23:15:13 2003
+++ net/gspoof/files/patch-console.c Thu Jan 1 09:00:00 1970
@@ -1,26 +0,0 @@
---- console.c.orig Sat Aug 30 00:16:50 2003
-+++ console.c Sat Aug 30 15:56:23 2003
-@@ -335,7 +335,11 @@
- fgets(value, 20, stdin);
- seq = atol(value);
- }
-+#ifdef __FreeBSD__
-+ while (atoi(value) < 0 || strtoll(value, NULL, 10) > 4294970000);
-+#else
- while (atoi(value) < 0 || atoll(value) > 4294970000);
-+#endif
- }
- else if (!strcmp ("3.5", cmd))
- {
-@@ -345,7 +349,11 @@
- fgets(value, 20, stdin);
- ack = atol(value);
- }
-+#ifdef __FreeBSD__
-+ while (atoi(value) < 0 || strtoll(value, NULL, 10) > 4294970000);
-+#else
- while (atoi(value) < 0 || atoll(value) > 4294970000);
-+#endif
- }
- else if (!strcmp ("3.6", cmd))
- {
diff -urN /usr/ports/net/gspoof/files/patch-gfuncts.c net/gspoof/files/patch-gfuncts.c
--- /usr/ports/net/gspoof/files/patch-gfuncts.c Sun Aug 31 02:04:34 2003
+++ net/gspoof/files/patch-gfuncts.c Thu Jan 1 09:00:00 1970
@@ -1,27 +0,0 @@
---- gfuncts.c.orig Sat Aug 30 00:16:50 2003
-+++ gfuncts.c Sat Aug 30 15:58:09 2003
-@@ -382,14 +382,24 @@
- info ("Invalid destination port value\n");
- return -1;
- }
-+#ifdef __FreeBSD__
-+ if (strtoll(gtk_entry_get_text(GTK_ENTRY(seq_entry)), NULL, 10)<0 ||
-+ strtoll(gtk_entry_get_text(GTK_ENTRY(seq_entry)), NULL, 10)>4294970000)
-+#else
- if (atoll(gtk_entry_get_text(GTK_ENTRY(seq_entry)))<0 ||
- atoll(gtk_entry_get_text(GTK_ENTRY(seq_entry)))>4294970000)
-+#endif
- {
- info ("Invalid sequence number value\n");
- return -1;
- }
-+#ifdef __FreeBSD__
-+ if (strtoll(gtk_entry_get_text(GTK_ENTRY(ack_entry)), NULL, 10)<0 ||
-+ strtoll(gtk_entry_get_text(GTK_ENTRY(ack_entry)), NULL, 10)>4294970000)
-+#else
- if (atoll(gtk_entry_get_text(GTK_ENTRY(ack_entry)))<0 ||
- atoll(gtk_entry_get_text(GTK_ENTRY(ack_entry)))>4294970000)
-+#endif
- {
- info ("Invalid acknowledgment value\n");
- return -1;
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list