ports/162830: Update port: net/netmap 0.1.3
KATO Tsuguru
tkato432 at yahoo.com
Thu Nov 24 18:20:13 UTC 2011
>Number: 162830
>Category: ports
>Synopsis: Update port: net/netmap 0.1.3
>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: Thu Nov 24 18:20:13 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: KATO Tsuguru
>Release: FreeBSD 7.4-RELEASE-p3 i386
>Organization:
>Environment:
>Description:
- Update to version 0.1.3
Remove file:
files/patch-belgolib::dirs_core.c
files/patch-belgolib::search.c
files/patch-netmap::misc.h
files/patch-netmap::netmap.c
pkg-plist
>How-To-Repeat:
>Fix:
diff -urN /usr/ports/net/netmap/Makefile net/netmap/Makefile
--- /usr/ports/net/netmap/Makefile 2010-03-28 17:42:51.000000000 +0900
+++ net/netmap/Makefile 2010-05-29 23:43:40.000000000 +0900
@@ -7,10 +7,9 @@
#
PORTNAME= netmap
-PORTVERSION= 0.1.2b
-PORTREVISION= 5
+PORTVERSION= 0.1.3
CATEGORIES= net
-MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/NetMap%200.1.2
+MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/NetMap%20${PORTVERSION}
MAINTAINER= ports at FreeBSD.org
COMMENT= Make a graphical representation of the surounding network
@@ -19,6 +18,8 @@
USE_GMAKE= yes
+PLIST_FILES= bin/makelist bin/netmap
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/makelist/makelist ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/netmap/netmap ${PREFIX}/bin
diff -urN /usr/ports/net/netmap/distinfo net/netmap/distinfo
--- /usr/ports/net/netmap/distinfo 2011-03-21 02:50:19.000000000 +0900
+++ net/netmap/distinfo 2010-05-29 23:43:14.000000000 +0900
@@ -1,2 +1,3 @@
-SHA256 (netmap-0.1.2b.tar.gz) = 06327965bd586a8c243999ee748dba425bd1da6a37e8b6af11476a6563cbfbdc
-SIZE (netmap-0.1.2b.tar.gz) = 33640
+MD5 (netmap-0.1.3.tar.gz) = c6a1a76b141c23f49bcb92644b0c72cd
+SHA256 (netmap-0.1.3.tar.gz) = c2d8e7289e5955ccb1584f839bf8bb527bf6682564f6ed03a06fc1eee5f1c9b8
+SIZE (netmap-0.1.3.tar.gz) = 58345
diff -urN /usr/ports/net/netmap/files/patch-belgolib::dirs.h net/netmap/files/patch-belgolib::dirs.h
--- /usr/ports/net/netmap/files/patch-belgolib::dirs.h 2004-09-22 02:27:04.000000000 +0900
+++ net/netmap/files/patch-belgolib::dirs.h 2011-11-23 22:10:30.000000000 +0900
@@ -8,12 +8,3 @@
#ifndef __make_dep__
#include <string>
-@@ -91,7 +92,7 @@
- {
- list<T*> result=ld1;
-
-- for(list<T*>::const_iterator i = ld2.begin(); i != ld2.end(); i++)
-+ for(typename list<T*>::const_iterator i = ld2.begin(); i != ld2.end(); i++)
- result.push_back(*i);
-
- return result;
diff -urN /usr/ports/net/netmap/files/patch-belgolib::dirs_core.c net/netmap/files/patch-belgolib::dirs_core.c
--- /usr/ports/net/netmap/files/patch-belgolib::dirs_core.c 2002-12-21 06:07:52.000000000 +0900
+++ net/netmap/files/patch-belgolib::dirs_core.c 1970-01-01 09:00:00.000000000 +0900
@@ -1,10 +0,0 @@
---- belgolib/dirs_core.c.orig Sun Dec 15 15:02:19 2002
-+++ belgolib/dirs_core.c Sun Dec 15 15:02:25 2002
-@@ -1,6 +1,6 @@
- #include "dirs_core.h"
-
--Oinfo::Oinfo(const string& fname, int fmode=0)
-+Oinfo::Oinfo(const string& fname, int fmode)
- {
- stat_info = new struct stat;
-
diff -urN /usr/ports/net/netmap/files/patch-belgolib::files.c net/netmap/files/patch-belgolib::files.c
--- /usr/ports/net/netmap/files/patch-belgolib::files.c 2002-12-21 06:07:52.000000000 +0900
+++ net/netmap/files/patch-belgolib::files.c 2011-11-23 22:22:44.000000000 +0900
@@ -1,23 +1,15 @@
---- belgolib/files.c.orig Sun Dec 15 14:54:27 2002
-+++ belgolib/files.c Sun Dec 15 14:54:27 2002
-@@ -1,6 +1,7 @@
- #include <errno.h>
- #include <stdio.h>
- #include <assert.h>
-+#include <iostream>
-
- #include "files.h"
- #include "debug.h"
-@@ -16,7 +17,7 @@
+--- belgolib/files.c.orig 2010-01-06 08:00:52.000000000 +0900
++++ belgolib/files.c 2011-11-23 22:22:36.000000000 +0900
+@@ -17,7 +17,7 @@
Infile::Infile() : ifstream() { }
-Infile::Infile(const string& file_name, int mode, bool fatal)
+Infile::Infile(const string& file_name, ios::openmode mode, bool fatal)
- : ifstream(file_name.c_str(), mode)
+ : ifstream(file_name.c_str(), (std::_Ios_Openmode)mode)
{
-@@ -38,7 +39,7 @@
+@@ -39,7 +39,7 @@
}
diff -urN /usr/ports/net/netmap/files/patch-belgolib::search.c net/netmap/files/patch-belgolib::search.c
--- /usr/ports/net/netmap/files/patch-belgolib::search.c 2002-12-21 06:07:52.000000000 +0900
+++ net/netmap/files/patch-belgolib::search.c 1970-01-01 09:00:00.000000000 +0900
@@ -1,11 +0,0 @@
---- belgolib/search.c.orig Sun Dec 15 14:54:27 2002
-+++ belgolib/search.c Sun Dec 15 14:54:27 2002
-@@ -5,7 +5,7 @@
- // SearchPath members
-
-
--void SearchPath::add_dir(const list<string>& dlist, int depth = 0)
-+void SearchPath::add_dir(const list<string>& dlist, int depth)
- {
- for(CSiter diter = dlist.begin(); diter != dlist.end(); diter++)
- add_dir( *diter, depth);
diff -urN /usr/ports/net/netmap/files/patch-makelist::Makefile net/netmap/files/patch-makelist::Makefile
--- /usr/ports/net/netmap/files/patch-makelist::Makefile 2002-06-07 16:19:01.000000000 +0900
+++ net/netmap/files/patch-makelist::Makefile 2011-11-23 22:28:26.000000000 +0900
@@ -1,10 +1,10 @@
---- makelist/Makefile.orig Fri Jun 7 00:13:32 2002
-+++ makelist/Makefile Fri Jun 7 00:13:40 2002
+--- makelist/Makefile.orig 2010-01-06 07:59:38.000000000 +0900
++++ makelist/Makefile 2011-11-23 22:25:58.000000000 +0900
@@ -1,8 +1,7 @@
CFILES = makelist.c args.c config.c
OFILES = $(CFILES:.c=.o)
--CFLAGS = -O -Wall
+-CFLAGS = -O -Wall -Wno-deprecated
-CC = g++
+CC = ${CXX}
diff -urN /usr/ports/net/netmap/files/patch-netmap::Makefile net/netmap/files/patch-netmap::Makefile
--- /usr/ports/net/netmap/files/patch-netmap::Makefile 2002-06-07 16:19:01.000000000 +0900
+++ net/netmap/files/patch-netmap::Makefile 2011-11-23 22:27:47.000000000 +0900
@@ -1,10 +1,10 @@
---- netmap/Makefile.orig Fri Jun 7 00:12:40 2002
-+++ netmap/Makefile Fri Jun 7 00:12:56 2002
+--- netmap/Makefile.orig 2010-01-06 07:59:38.000000000 +0900
++++ netmap/Makefile 2011-11-23 22:27:31.000000000 +0900
@@ -1,8 +1,7 @@
CFILES = misc.c hostclass.c netmap.c drawmap.c config.c args.c lookup.c
OFILES = $(CFILES:.c=.o)
--CFLAGS = -O -Wall
+-CFLAGS = -O -Wall -Wno-deprecated
-CC = g++
+CC = ${CXX}
diff -urN /usr/ports/net/netmap/files/patch-netmap::lookup.c net/netmap/files/patch-netmap::lookup.c
--- /usr/ports/net/netmap/files/patch-netmap::lookup.c 2002-12-21 15:42:49.000000000 +0900
+++ net/netmap/files/patch-netmap::lookup.c 2011-11-23 22:32:52.000000000 +0900
@@ -1,5 +1,5 @@
---- netmap/lookup.c.orig Sun Dec 15 14:54:26 2002
-+++ netmap/lookup.c Sun Dec 15 14:54:26 2002
+--- netmap/lookup.c.orig 2010-01-06 07:59:38.000000000 +0900
++++ netmap/lookup.c 2011-11-23 22:32:15.000000000 +0900
@@ -1,6 +1,8 @@
#include <strstream>
#include <iostream>
@@ -9,21 +9,3 @@
#include <netdb.h> //hostent def
//from belgolib
-@@ -83,7 +85,7 @@
- if(verbose_lvl)
- cout << indent(2) << "Reading " << fname << endl;
-
-- Infile cfile(fname, ios::bin | ios::in);
-+ Infile cfile(fname, ios::binary | ios::in);
-
- while(cfile && !cfile.eof()) {
- HostRec hr;
-@@ -229,7 +231,7 @@
-
- void LookUp::read_failedip(const string& fname)
- {
-- Infile cfile(fname, ios::bin | ios::in);
-+ Infile cfile(fname, ios::binary | ios::in);
-
- while(cfile && !cfile.eof()) {
- string ip;
diff -urN /usr/ports/net/netmap/files/patch-netmap::misc.h net/netmap/files/patch-netmap::misc.h
--- /usr/ports/net/netmap/files/patch-netmap::misc.h 2004-09-22 02:27:04.000000000 +0900
+++ net/netmap/files/patch-netmap::misc.h 1970-01-01 09:00:00.000000000 +0900
@@ -1,28 +0,0 @@
---- netmap/misc.h.orig Sun Dec 15 14:54:26 2002
-+++ netmap/misc.h Sun Dec 15 14:54:26 2002
-@@ -6,6 +6,7 @@
- #include <iostream>
-
- #include <list>
-+using namespace std;
-
-
- string indent(unsigned);
-@@ -21,7 +22,7 @@
- template <class T>
- bool contains(list<T>& l, const T& t)
- {
-- for(list<T>::iterator li = l.begin(); li != l.end(); li++)
-+ for(typename list<T>::iterator li = l.begin(); li != l.end(); li++)
- if((*li) == t)
- return true;
- return false;
-@@ -31,7 +32,7 @@
- list<T> intersect(list<T>& l1, list<T>& l2)
- {
- list<T> result;
-- for(list<T>::iterator li = l1.begin(); li != l1.end(); li++)
-+ for(typename list<T>::iterator li = l1.begin(); li != l1.end(); li++)
- if(contains(l2, *li))
- result.push_back(*li);
-
diff -urN /usr/ports/net/netmap/files/patch-netmap::netmap.c net/netmap/files/patch-netmap::netmap.c
--- /usr/ports/net/netmap/files/patch-netmap::netmap.c 2002-12-21 06:07:52.000000000 +0900
+++ net/netmap/files/patch-netmap::netmap.c 1970-01-01 09:00:00.000000000 +0900
@@ -1,20 +0,0 @@
---- netmap/netmap.c.orig Sun Dec 15 14:54:26 2002
-+++ netmap/netmap.c Sun Dec 15 14:54:26 2002
-@@ -32,7 +32,7 @@
-
- int count_invalid_hosts(const string& fname)
- {
-- Infile inf(fname, ios::bin | ios::in);
-+ Infile inf(fname, ios::binary | ios::in);
-
- int invalid_hosts = 0;
- int invalid_left = 0;
-@@ -60,7 +60,7 @@
- const int num_invalid_hosts =
- (keep_reading?count_invalid_hosts(fname):0);
-
-- Infile inf(fname, ios::bin | ios::in);
-+ Infile inf(fname, ios::binary | ios::in);
-
- int mark_first = 1;
- string prev_addr = inv_ip;
diff -urN /usr/ports/net/netmap/pkg-plist net/netmap/pkg-plist
--- /usr/ports/net/netmap/pkg-plist 2002-02-10 04:19:46.000000000 +0900
+++ net/netmap/pkg-plist 1970-01-01 09:00:00.000000000 +0900
@@ -1,2 +0,0 @@
-bin/makelist
-bin/netmap
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list