diff options
author | Kirill Ponomarev <krion@FreeBSD.org> | 2003-10-03 15:26:39 +0000 |
---|---|---|
committer | Kirill Ponomarev <krion@FreeBSD.org> | 2003-10-03 15:26:39 +0000 |
commit | a3f314ca7d85f258f8a4548466d05840a3ae30c5 (patch) | |
tree | ec68fe1fcbcd420aa7b4fc3ae0dbb254bf60b253 /net/gspoof | |
parent | 95890583fc2a48285c3641680cf86192dfcd9894 (diff) | |
download | ports-a3f314ca7d85f258f8a4548466d05840a3ae30c5.tar.gz ports-a3f314ca7d85f258f8a4548466d05840a3ae30c5.zip |
Notes
Diffstat (limited to 'net/gspoof')
-rw-r--r-- | net/gspoof/Makefile | 7 | ||||
-rw-r--r-- | net/gspoof/distinfo | 2 | ||||
-rw-r--r-- | net/gspoof/files/patch-console.c | 26 | ||||
-rw-r--r-- | net/gspoof/files/patch-gfuncts.c | 27 |
4 files changed, 4 insertions, 58 deletions
diff --git a/net/gspoof/Makefile b/net/gspoof/Makefile index 4295fb3d5042..235e72176d12 100644 --- a/net/gspoof/Makefile +++ b/net/gspoof/Makefile @@ -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_GNOME= gnometarget gtk20 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 --git a/net/gspoof/distinfo b/net/gspoof/distinfo index 45bec1dd5d3a..679005bfdc8a 100644 --- a/net/gspoof/distinfo +++ b/net/gspoof/distinfo @@ -1 +1 @@ -MD5 (gspoof-3.0.tar.gz) = fb7de0bfc1353d8edc4f1825b2013959 +MD5 (gspoof-3.1.tar.gz) = 97ec57688ffba90dcadda11354ceaffe diff --git a/net/gspoof/files/patch-console.c b/net/gspoof/files/patch-console.c deleted file mode 100644 index 9a185e566b36..000000000000 --- a/net/gspoof/files/patch-console.c +++ /dev/null @@ -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 --git a/net/gspoof/files/patch-gfuncts.c b/net/gspoof/files/patch-gfuncts.c deleted file mode 100644 index 9a782c39b04e..000000000000 --- a/net/gspoof/files/patch-gfuncts.c +++ /dev/null @@ -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; |