net-mgmt/etherape: Update to 0.9.16
A number of port changes were required due to the upstream migration away from the Gnome2 libraries. Refer to the 0.9.16 release notes. Changes this release: http://etherape.sourceforge.net/NEWS.html
This commit is contained in:
parent
177a29921e
commit
c4f5cc893f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=463626
8 changed files with 94 additions and 67 deletions
|
@ -2,23 +2,25 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PORTNAME= etherape
|
||||
PORTVERSION= 0.9.14
|
||||
PORTVERSION= 0.9.16
|
||||
CATEGORIES= net-mgmt gnome
|
||||
MASTER_SITES= SF
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
MAINTAINER= woodsb02@FreeBSD.org
|
||||
COMMENT= Graphical network traffic monitor tool modeled after Etherman
|
||||
|
||||
LICENSE= GPLv2+
|
||||
LICENSE_FILE= ${WRKSRC}/COPYING
|
||||
|
||||
USES= gettext gmake iconv pathfix pkgconfig
|
||||
USE_GNOME= gnomedocutils libglade2 libgnomeui
|
||||
GNU_CONFIGURE= yes
|
||||
INSTALLS_OMF= yes
|
||||
BUILD_DEPENDS= itstool:textproc/itstool \
|
||||
yelp-tools>=0:textproc/yelp-tools
|
||||
LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
|
||||
libfreetype.so:print/freetype2 \
|
||||
libpopt.so:devel/popt
|
||||
|
||||
CPPFLAGS+= -I${LOCALBASE}/include
|
||||
LDFLAGS+= -L${LOCALBASE}/lib
|
||||
USES= gettext gmake iconv localbase pathfix pkgconfig
|
||||
USE_GNOME= cairo gdkpixbuf2 libglade2 libgnomecanvas
|
||||
GNU_CONFIGURE= yes
|
||||
|
||||
PORTDOCS= AUTHORS ChangeLog FAQ NEWS README README.bugs TODO
|
||||
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
SHA256 (etherape-0.9.14.tar.gz) = 7447435ef64e569d8e10b6a0525806c01f527e76ae9eed5c84821f545f357ade
|
||||
SIZE (etherape-0.9.14.tar.gz) = 1438255
|
||||
TIMESTAMP = 1520232379
|
||||
SHA256 (etherape-0.9.16.tar.gz) = 18406a4e0e194a516b06063f160d08f7d04650f6901e6cae8225d12817c685c3
|
||||
SIZE (etherape-0.9.16.tar.gz) = 1435235
|
||||
|
|
|
@ -1,21 +0,0 @@
|
|||
--- src/diagram.c.orig 2016-01-25 20:19:16 UTC
|
||||
+++ src/diagram.c
|
||||
@@ -21,7 +21,18 @@
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
+#ifdef HAVE_SYS_TYPES_H
|
||||
+#include <sys/types.h>
|
||||
+#endif
|
||||
+#ifdef HAVE_SYS_SOCKET_H
|
||||
+#include <sys/socket.h>
|
||||
+#endif
|
||||
+#ifdef HAVE_NETINET_IN_H
|
||||
+#include <netinet/in.h>
|
||||
+#endif
|
||||
+#ifdef HAVE_ARPA_INET_H
|
||||
#include <arpa/inet.h>
|
||||
+#endif
|
||||
|
||||
#include <gnome.h>
|
||||
#include <regex.h>
|
46
net-mgmt/etherape/files/patch-src_names_eth__resolv.c
Normal file
46
net-mgmt/etherape/files/patch-src_names_eth__resolv.c
Normal file
|
@ -0,0 +1,46 @@
|
|||
--- src/names/eth_resolv.c.orig 2017-03-18 16:11:42 UTC
|
||||
+++ src/names/eth_resolv.c
|
||||
@@ -26,8 +26,9 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
+#include <sys/types.h>
|
||||
+#include <sys/socket.h>
|
||||
#include <net/ethernet.h>
|
||||
-#include <netinet/ether.h>
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
@@ -48,8 +49,8 @@ static int ether_tree_cmp(gconstpointer ga, gconstpoin
|
||||
const struct ether_addr *a = ga;
|
||||
const struct ether_addr *b = gb;
|
||||
|
||||
- return memcmp(&a->ether_addr_octet, &b->ether_addr_octet,
|
||||
- sizeof(a->ether_addr_octet));
|
||||
+ return memcmp(&a->octet, &b->octet,
|
||||
+ sizeof(a->octet));
|
||||
}
|
||||
|
||||
static void add_ether_ent(const struct ether_addr *addr, const char *hostname)
|
||||
@@ -118,7 +119,7 @@ const char *get_ether_name(const unsigned char *addr_b
|
||||
struct ether_ent *ent;
|
||||
size_t addrstr_size;
|
||||
|
||||
- memcpy(&addr.ether_addr_octet, addr_bytes, sizeof(addr.ether_addr_octet));
|
||||
+ memcpy(&addr.octet, addr_bytes, sizeof(addr.octet));
|
||||
|
||||
ent = g_tree_lookup(ethers, &addr);
|
||||
if (ent)
|
||||
@@ -129,9 +130,9 @@ const char *get_ether_name(const unsigned char *addr_b
|
||||
ent = g_malloc(sizeof(*ent) + addrstr_size);
|
||||
ent->addr = addr;
|
||||
snprintf(ent->hostname, addrstr_size, "%02x:%02x:%02x:%02x:%02x:%02x",
|
||||
- addr.ether_addr_octet[0], addr.ether_addr_octet[1],
|
||||
- addr.ether_addr_octet[2], addr.ether_addr_octet[3],
|
||||
- addr.ether_addr_octet[4], addr.ether_addr_octet[5]);
|
||||
+ addr.octet[0], addr.octet[1],
|
||||
+ addr.octet[2], addr.octet[3],
|
||||
+ addr.octet[4], addr.octet[5]);
|
||||
g_tree_insert(ethers, &ent->addr, ent);
|
||||
return ent->hostname;
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
--- src/names.c.orig 2014-02-02 11:30:03 UTC
|
||||
+++ src/names.c
|
||||
@@ -21,7 +21,18 @@
|
||||
--- src/names/names.c.orig 2017-03-18 16:11:42 UTC
|
||||
+++ src/names/names.c
|
||||
@@ -19,7 +19,18 @@
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
--- src/thread_resolve.c.orig 2015-06-06 07:18:29 UTC
|
||||
+++ src/thread_resolve.c
|
||||
@@ -161,6 +161,10 @@ thread_pool_routine(void *dt)
|
||||
--- src/names/thread_resolve.c.orig 2017-03-18 16:11:42 UTC
|
||||
+++ src/names/thread_resolve.c
|
||||
@@ -162,6 +162,10 @@ thread_pool_routine(void *dt)
|
||||
|
||||
pthread_mutex_unlock(&resolvemtx);
|
||||
}
|
||||
|
@ -11,7 +11,7 @@
|
|||
return NULL;
|
||||
}
|
||||
|
||||
@@ -279,9 +283,6 @@ thread_close(void)
|
||||
@@ -280,9 +284,6 @@ thread_close(void)
|
||||
{
|
||||
/* thread pool shutdown */
|
||||
stop_threads();
|
|
@ -1,6 +1,6 @@
|
|||
--- src/decode_proto.c.orig 2014-02-02 18:38:16 UTC
|
||||
+++ src/decode_proto.c
|
||||
@@ -27,6 +27,15 @@
|
||||
--- src/stats/decode_proto.c.orig 2017-03-18 16:11:42 UTC
|
||||
+++ src/stats/decode_proto.c
|
||||
@@ -25,6 +25,15 @@
|
||||
#include "appdata.h"
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
|
@ -4,31 +4,31 @@ share/applications/etherape.desktop
|
|||
%%DATADIR%%/glade/etherape.glade
|
||||
%%DATADIR%%/glade/etherape.png
|
||||
%%DATADIR%%/glade/nodes.xpm
|
||||
share/gnome/help/etherape/C/etherape.xml
|
||||
share/gnome/help/etherape/C/figures/all_nodes.eps
|
||||
share/gnome/help/etherape/C/figures/all_nodes.png
|
||||
share/gnome/help/etherape/C/figures/appmain.eps
|
||||
share/gnome/help/etherape/C/figures/appmain.png
|
||||
share/gnome/help/etherape/C/figures/capture_file_dlg.eps
|
||||
share/gnome/help/etherape/C/figures/capture_file_dlg.png
|
||||
share/gnome/help/etherape/C/figures/color_select_dlg.eps
|
||||
share/gnome/help/etherape/C/figures/color_select_dlg.png
|
||||
share/gnome/help/etherape/C/figures/eth_toolbar.eps
|
||||
share/gnome/help/etherape/C/figures/eth_toolbar.png
|
||||
share/gnome/help/etherape/C/figures/link_info.eps
|
||||
share/gnome/help/etherape/C/figures/link_info.png
|
||||
share/gnome/help/etherape/C/figures/node_info.eps
|
||||
share/gnome/help/etherape/C/figures/node_info.png
|
||||
share/gnome/help/etherape/C/figures/pref_colors_dlg.eps
|
||||
share/gnome/help/etherape/C/figures/pref_colors_dlg.png
|
||||
share/gnome/help/etherape/C/figures/pref_diagram_dlg.eps
|
||||
share/gnome/help/etherape/C/figures/pref_diagram_dlg.png
|
||||
share/gnome/help/etherape/C/figures/pref_timings_dlg.eps
|
||||
share/gnome/help/etherape/C/figures/pref_timings_dlg.png
|
||||
share/gnome/help/etherape/C/figures/proto_info.eps
|
||||
share/gnome/help/etherape/C/figures/proto_info.png
|
||||
share/gnome/help/etherape/C/figures/protocol_edit_dlg.eps
|
||||
share/gnome/help/etherape/C/figures/protocol_edit_dlg.png
|
||||
share/help/C/etherape/figures/all_nodes.eps
|
||||
share/help/C/etherape/figures/all_nodes.png
|
||||
share/help/C/etherape/figures/appmain.eps
|
||||
share/help/C/etherape/figures/appmain.png
|
||||
share/help/C/etherape/figures/capture_file_dlg.eps
|
||||
share/help/C/etherape/figures/capture_file_dlg.png
|
||||
share/help/C/etherape/figures/color_select_dlg.eps
|
||||
share/help/C/etherape/figures/color_select_dlg.png
|
||||
share/help/C/etherape/figures/eth_toolbar.eps
|
||||
share/help/C/etherape/figures/eth_toolbar.png
|
||||
share/help/C/etherape/figures/link_info.eps
|
||||
share/help/C/etherape/figures/link_info.png
|
||||
share/help/C/etherape/figures/node_info.eps
|
||||
share/help/C/etherape/figures/node_info.png
|
||||
share/help/C/etherape/figures/pref_colors_dlg.eps
|
||||
share/help/C/etherape/figures/pref_colors_dlg.png
|
||||
share/help/C/etherape/figures/pref_diagram_dlg.eps
|
||||
share/help/C/etherape/figures/pref_diagram_dlg.png
|
||||
share/help/C/etherape/figures/pref_timings_dlg.eps
|
||||
share/help/C/etherape/figures/pref_timings_dlg.png
|
||||
share/help/C/etherape/figures/proto_info.eps
|
||||
share/help/C/etherape/figures/proto_info.png
|
||||
share/help/C/etherape/figures/protocol_edit_dlg.eps
|
||||
share/help/C/etherape/figures/protocol_edit_dlg.png
|
||||
share/help/C/etherape/index.docbook
|
||||
share/locale/de/LC_MESSAGES/etherape.mo
|
||||
share/locale/es/LC_MESSAGES/etherape.mo
|
||||
share/locale/fr/LC_MESSAGES/etherape.mo
|
||||
|
@ -36,5 +36,4 @@ share/locale/it/LC_MESSAGES/etherape.mo
|
|||
share/locale/nl/LC_MESSAGES/etherape.mo
|
||||
share/locale/sv/LC_MESSAGES/etherape.mo
|
||||
share/locale/tr/LC_MESSAGES/etherape.mo
|
||||
share/omf/etherape/etherape-C.omf
|
||||
share/pixmaps/etherape.png
|
||||
|
|
Loading…
Reference in a new issue