diff options
author | Daniel Gryniewicz <dang@gentoo.org> | 2007-08-07 00:36:01 +0000 |
---|---|---|
committer | Daniel Gryniewicz <dang@gentoo.org> | 2007-08-07 00:36:01 +0000 |
commit | cf45b4b3a16b18f6638eead675ee3be4e699259a (patch) | |
tree | f2830c926c03797a7ac425aeb20367a2ba4225bf /net-analyzer | |
parent | For bug #187702, add an elog message about FEATURES="userfetch" being enabled... (diff) | |
download | historical-cf45b4b3a16b18f6638eead675ee3be4e699259a.tar.gz historical-cf45b4b3a16b18f6638eead675ee3be4e699259a.tar.bz2 historical-cf45b4b3a16b18f6638eead675ee3be4e699259a.zip |
Patch for freebsd; bug #183579
Package-Manager: portage-2.1.3.2
Diffstat (limited to 'net-analyzer')
-rw-r--r-- | net-analyzer/gnome-nettool/ChangeLog | 6 | ||||
-rw-r--r-- | net-analyzer/gnome-nettool/Manifest | 30 | ||||
-rw-r--r-- | net-analyzer/gnome-nettool/files/gnome-nettool-2.18.0-fbsd.patch | 343 | ||||
-rw-r--r-- | net-analyzer/gnome-nettool/gnome-nettool-2.18.0.ebuild | 10 |
4 files changed, 378 insertions, 11 deletions
diff --git a/net-analyzer/gnome-nettool/ChangeLog b/net-analyzer/gnome-nettool/ChangeLog index f494f64d041d..84dd6e7c092e 100644 --- a/net-analyzer/gnome-nettool/ChangeLog +++ b/net-analyzer/gnome-nettool/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-analyzer/gnome-nettool # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/gnome-nettool/ChangeLog,v 1.48 2007/03/27 20:51:20 dang Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/gnome-nettool/ChangeLog,v 1.49 2007/08/07 00:36:01 dang Exp $ + + 07 Aug 2007; Daniel Gryniewicz <dang@gentoo.org> + +files/gnome-nettool-2.18.0-fbsd.patch, gnome-nettool-2.18.0.ebuild: + Patch for freebsd; bug #183579 *gnome-nettool-2.18.0 (27 Mar 2007) diff --git a/net-analyzer/gnome-nettool/Manifest b/net-analyzer/gnome-nettool/Manifest index e7ffcac9f360..05545eff1243 100644 --- a/net-analyzer/gnome-nettool/Manifest +++ b/net-analyzer/gnome-nettool/Manifest @@ -1,3 +1,10 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX gnome-nettool-2.18.0-fbsd.patch 9981 RMD160 f0e7e8d6fc815ea5c6a9da7176ee6b99262dba82 SHA1 466e98431aa9cbcf8467284b9c1839557de90ca5 SHA256 42d134883b5ebae510ed945ba7929d4d3328e4ae50c9cfaab473c2d80ed8be09 +MD5 daaa8a824994a9367a085af92aed0f5f files/gnome-nettool-2.18.0-fbsd.patch 9981 +RMD160 f0e7e8d6fc815ea5c6a9da7176ee6b99262dba82 files/gnome-nettool-2.18.0-fbsd.patch 9981 +SHA256 42d134883b5ebae510ed945ba7929d4d3328e4ae50c9cfaab473c2d80ed8be09 files/gnome-nettool-2.18.0-fbsd.patch 9981 DIST gnome-nettool-1.0.0.tar.bz2 515045 RMD160 bf13470d59966eeed3e1fa9cc893c629b6fe8e58 SHA1 2e00ff5418956708cd3d899a0d14ece98848e733 SHA256 379887932fea5ebb8fdaa87bb499def9d5f20735eec9ec98b78a71b38e2ea549 DIST gnome-nettool-1.4.1.tar.bz2 477548 RMD160 cbefdf3247f8852a8ee892388c992c2f348d7085 SHA1 938b4239fd0cf97807b08880b3cc935c13bcb868 SHA256 8b8fc47dcfddf4194c30efba4cdbf6efc96a49b1fd69b3a87461d1af383f4a91 DIST gnome-nettool-2.14.2.tar.bz2 484715 RMD160 c2c81b3a821d4986bdc51f2fe4b49b6a2075cbea SHA1 9d8f26700528c94ecf1410daffc9224894f3e0dd SHA256 95f3f298598d8a038a04987d43d9e8e452948e8813a706c31389fd5e30cd1778 @@ -19,14 +26,14 @@ EBUILD gnome-nettool-2.16.0.ebuild 832 RMD160 dfc053ed25ce4a5908983d8a52de170efb MD5 617bd11a5f9fefea0cff5c05c110f732 gnome-nettool-2.16.0.ebuild 832 RMD160 dfc053ed25ce4a5908983d8a52de170efb9dd17c gnome-nettool-2.16.0.ebuild 832 SHA256 a4e049b62c447c310dab37ac9e0af8087f60d1a28bf13336eb21dced95981998 gnome-nettool-2.16.0.ebuild 832 -EBUILD gnome-nettool-2.18.0.ebuild 893 RMD160 2d2a407d4578ef787ef8fd64404156f6c538b4cc SHA1 3813c0971422911ad5fd191ff7cc0e35b9244d27 SHA256 3dd71b8e39af2a2689b36918f30501e7a3585cea028faa567f151315c2e5c6f1 -MD5 b6369c879ca4c77e97f1cafaaf17cf22 gnome-nettool-2.18.0.ebuild 893 -RMD160 2d2a407d4578ef787ef8fd64404156f6c538b4cc gnome-nettool-2.18.0.ebuild 893 -SHA256 3dd71b8e39af2a2689b36918f30501e7a3585cea028faa567f151315c2e5c6f1 gnome-nettool-2.18.0.ebuild 893 -MISC ChangeLog 6240 RMD160 fdd923d13614716a17d9e4ab40e20f79de47d1d9 SHA1 7365e02678f87248fbc006a7bdf52e4688c2d2af SHA256 ec0bbef27b94263d575c7f58c781264757e6897480a5e51cd18194cf9acc3f84 -MD5 e161fc003db769e06e4b7edc53b5805e ChangeLog 6240 -RMD160 fdd923d13614716a17d9e4ab40e20f79de47d1d9 ChangeLog 6240 -SHA256 ec0bbef27b94263d575c7f58c781264757e6897480a5e51cd18194cf9acc3f84 ChangeLog 6240 +EBUILD gnome-nettool-2.18.0.ebuild 972 RMD160 7018021fa87a40b1669dc19fbf2a35923a9058e0 SHA1 a1c5184d9ca3f74646711c1d2e727cc1812d9dd0 SHA256 824653e691e835400a2424b4a56f67b52d337a16ae79de5d400855c812e3b5ad +MD5 de30237648301fc344bc4a49dbc9ab62 gnome-nettool-2.18.0.ebuild 972 +RMD160 7018021fa87a40b1669dc19fbf2a35923a9058e0 gnome-nettool-2.18.0.ebuild 972 +SHA256 824653e691e835400a2424b4a56f67b52d337a16ae79de5d400855c812e3b5ad gnome-nettool-2.18.0.ebuild 972 +MISC ChangeLog 6396 RMD160 866b0c2a4fa73b5392df242ec71f656a8729029c SHA1 86bee850fe40bdfed13d3c1cc1999edad82e2e6f SHA256 2604d8cea9a6b250803f13f9e8b48911f71153e306e5f3380a8201ea289dc622 +MD5 13d3a27f0b5d921f4432698c21707ccb ChangeLog 6396 +RMD160 866b0c2a4fa73b5392df242ec71f656a8729029c ChangeLog 6396 +SHA256 2604d8cea9a6b250803f13f9e8b48911f71153e306e5f3380a8201ea289dc622 ChangeLog 6396 MISC metadata.xml 158 RMD160 c0e2bae8e91bb6be8922bac5e4f597302e06587e SHA1 38f78e9790bcd4382b4a49aa226aa6dda1d3a3d7 SHA256 3a7dbca0fdc557de69783e0663e2d76ddab129ea8a19b2d0ef6d3e5d1b947ce1 MD5 03ad2e6c4ab41244af1015a8bbb0b39f metadata.xml 158 RMD160 c0e2bae8e91bb6be8922bac5e4f597302e06587e metadata.xml 158 @@ -46,3 +53,10 @@ SHA256 c956a80892ddff079cdde7ca650752af47ee397820fc743cece7ddfcbe48d9e2 files/di MD5 14b300398a0e7804c2b8e4211cb0db1f files/digest-gnome-nettool-2.18.0 265 RMD160 0f6b209cd1b599ce1188368c6212732a4b2470f4 files/digest-gnome-nettool-2.18.0 265 SHA256 48603bc9c5843abf524e7454035e929556c56a81191a731445a3c5c6398e8b0b files/digest-gnome-nettool-2.18.0 265 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.5 (GNU/Linux) + +iD8DBQFGt76fomPajV0RnrERAsRNAKCBXIeiUKQZa/ef+mIg+aUnyTPvwACeNDtM +Z/AVRSaf9a1HWbEpzUCGyfM= +=2kYf +-----END PGP SIGNATURE----- diff --git a/net-analyzer/gnome-nettool/files/gnome-nettool-2.18.0-fbsd.patch b/net-analyzer/gnome-nettool/files/gnome-nettool-2.18.0-fbsd.patch new file mode 100644 index 000000000000..bf6a46991868 --- /dev/null +++ b/net-analyzer/gnome-nettool/files/gnome-nettool-2.18.0-fbsd.patch @@ -0,0 +1,343 @@ +diff --exclude-from=/home/dang/.scripts/diffrc -up -ruN gnome-nettool-2.18.0.orig/src/info.c gnome-nettool-2.18.0/src/info.c +--- gnome-nettool-2.18.0.orig/src/info.c 2007-02-16 19:53:16.000000000 -0500 ++++ gnome-nettool-2.18.0/src/info.c 2007-08-06 20:28:16.000000000 -0400 +@@ -20,6 +20,10 @@ + #include <gtk/gtk.h> + #include <glib/gi18n.h> + #include <glib/gprintf.h> ++#include <sys/types.h> ++#include <string.h> ++#include <errno.h> ++#include <unistd.h> + + #ifdef HAVE_CONFIG_H + # include <config.h> +@@ -38,6 +42,11 @@ + #include <sys/ioctl.h> + #include <stdlib.h> + #include <net/if.h> ++#ifdef __FreeBSD__ ++#include <sys/sysctl.h> ++#include <net/if_dl.h> ++#include <net/if_media.h> ++#endif + + #include "info.h" + #include "utils.h" +@@ -128,9 +137,42 @@ info_get_interface_from_dev_name (const + { + gint i; + gchar *path; +- ++ gchar *dev_type = NULL; ++#if defined(__FreeBSD__) ++ int s; ++ struct ifmediareq ifmr; ++ ++ if ((s = socket (AF_INET, SOCK_DGRAM, 0)) > -1) { ++ ++ (void) memset (&ifmr, 0, sizeof (ifmr)); ++ (void) strncpy (ifmr.ifm_name, dev_name, sizeof (ifmr.ifm_name)); ++ ++ if (ioctl (s, SIOCGIFMEDIA, (caddr_t) &ifmr) > -1) { ++ switch (IFM_TYPE (ifmr.ifm_active)) { ++ case IFM_ETHER: ++ dev_type = "eth"; ++ break; ++ case IFM_FDDI: ++ case IFM_TOKEN: ++#ifdef IFM_ATM ++ case IFM_ATM: ++#endif ++ dev_type = "other_type"; ++ break; ++ case IFM_IEEE80211: ++ dev_type = "wlan"; ++ break; ++ } ++ } ++ close (s); ++ } ++#endif /* defined(__FreeBSD__) */ ++ ++ if (!dev_type) ++ dev_type = (gchar *) dev_name; ++ + for (i = 0; info_iface_desc[i].name; i++) +- if (strstr (dev_name, info_iface_desc[i].prefix) == dev_name) { ++ if (strstr (dev_type, info_iface_desc[i].prefix) == dev_type) { + (*iface) = g_strdup_printf ("%s (%s)", _(info_iface_desc[i].name), dev_name); + if (info_iface_desc[i].pixbuf == NULL) { + path = g_build_filename (PIXMAPS_DIR, info_iface_desc[i].icon, NULL); +@@ -218,38 +260,87 @@ info_nic_update_stats (gpointer data) + gchar tx[10], tx_error[10], tx_drop[10], tx_ovr[10]; + */ + gchar iface[30]; /*, flags[30]; */ +- gchar rx_bytes[16], rx_pkt[10], rx_error[10], rx_drop[10], rx_fifo[10]; +- gchar frame[10], compressed[10], multicast[10]; +- gchar tx_bytes[16], tx_pkt[10], tx_error[10], tx_drop[10], tx_fifo[10]; ++ gchar rx_bytes[16], rx_pkt[10], rx_error[10]; ++ gchar tx_bytes[16], tx_pkt[10], tx_error[10]; + gchar collissions[10]; ++#if defined(__linux__) ++ gchar rx_drop[10], rx_fifo[10]; ++ gchar frame[10], compressed[10], multicast[10]; ++ gchar tx_drop[10], tx_fifo[10]; ++#elif defined(__FreeBSD__) ++ char *p; ++ gchar **tokens, **argv; ++ int i; ++ int pipe_out; ++#endif + + GIOChannel *io = NULL; + gchar *line; + gboolean title = TRUE; + const gchar *text; + gchar *text_tx_bytes, *text_rx_bytes; +- ++ + g_return_val_if_fail (info != NULL, FALSE); + + model = gtk_combo_box_get_model (GTK_COMBO_BOX (info->combo)); + text = info_get_nic (info); + if (!text) + return FALSE; +- ++ + #if defined(__linux__) + io = g_io_channel_new_file ("/proc/net/dev", "r", NULL); +- ++#elif defined(__FreeBSD__) ++ if (!g_shell_parse_argv ("/usr/bin/netstat -in -b -f link", NULL, &argv, NULL)) { ++ return FALSE; ++ } ++ if (!g_spawn_async_with_pipes (NULL, argv, NULL, 0, NULL, NULL, NULL, NULL, &pipe_out, NULL, NULL)) { ++ g_strfreev (argv); ++ return FALSE; ++ } ++ ++ g_strfreev (argv); ++ ++ io = g_io_channel_unix_new (pipe_out); ++#endif /* defined(__linux__) */ ++ + while (g_io_channel_read_line (io, &line, NULL, NULL, NULL) == G_IO_STATUS_NORMAL) { + if (title) { + title = FALSE; + g_free (line); + continue; + } ++#if defined(__linux__) + line = g_strdelimit (line, ":", ' '); + sscanf (line, "%s %s %s %s %s %s %s %s %s %s %s %s %s %s %s", iface, + rx_bytes, rx_pkt, rx_error, rx_drop, rx_fifo, frame, + compressed, multicast, + tx_bytes, tx_pkt, tx_error, tx_drop, tx_fifo, collissions); ++#elif defined(__FreeBSD__) ++ tokens = (gchar **) g_malloc0 (sizeof (gchar *) * 12); ++ p = strtok (line, " \t\n"); ++ /* We only care about 11 fields for now */ ++ for (i = 0; i < 11 && p; i++, p = strtok (NULL, " \t\n")) { ++ tokens[i] = g_strdup (p); ++ } ++ ++ if (i == 0 || i < 10) { ++ g_free (line); ++ g_strfreev (tokens); ++ continue; ++ } ++ ++ g_strlcpy (iface, tokens[0], sizeof (iface)); ++ ++ g_strlcpy (collissions, tokens[--i], sizeof (collissions)); ++ g_strlcpy (tx_bytes, tokens[--i], sizeof (tx_bytes)); ++ g_strlcpy (tx_error, tokens[--i], sizeof (tx_error)); ++ g_strlcpy (tx_pkt, tokens[--i], sizeof (tx_pkt)); ++ g_strlcpy (rx_bytes, tokens[--i], sizeof (rx_bytes)); ++ g_strlcpy (rx_error, tokens[--i], sizeof (rx_error)); ++ g_strlcpy (rx_pkt, tokens[--i], sizeof (rx_pkt)); ++ ++ g_strfreev (tokens); ++#endif /* defined(__linux__) */ + + if (g_ascii_strcasecmp (iface, text) == 0) { + /* +@@ -277,7 +368,9 @@ info_nic_update_stats (gpointer data) + } + + g_io_channel_unref (io); +-#endif /* defined(__linux__) */ ++#if defined(__FreeBSD__) ++ close (pipe_out); ++#endif /* defined(__FreeBSD__) */ + + return TRUE; + } +@@ -425,8 +518,19 @@ info_get_nic_information (const gchar *n + #ifdef __linux__ + mii_data_result data; + #endif ++#ifdef __FreeBSD__ ++ gint hwmib[6]; ++ size_t hwlen; ++ gchar *hwbuf; ++ guchar *hwptr; ++ struct if_msghdr *hwifm; ++ struct sockaddr_dl *hwsinptr; ++#endif + +- getifaddrs (&ifa0); ++ if (getifaddrs (&ifa0) != 0) { ++ g_warning ("getifaddrs failed: %s", g_strerror (errno)); ++ goto fail; ++ } + + for (ifr6 = ifa0; ifr6; ifr6 = ifr6->ifa_next) { + if (strcmp (ifr6->ifa_name, nic) != 0) { +@@ -510,6 +614,45 @@ info_get_nic_information (const gchar *n + (int) ((guchar *) &ifrcopy.ifr_hwaddr.sa_data)[3], + (int) ((guchar *) &ifrcopy.ifr_hwaddr.sa_data)[4], + (int) ((guchar *) &ifrcopy.ifr_hwaddr.sa_data)[5]); ++#elif defined(__FreeBSD__) ++ hwmib[0] = CTL_NET; ++ hwmib[1] = AF_ROUTE; ++ hwmib[2] = 0; ++ hwmib[3] = AF_LINK; ++ hwmib[4] = NET_RT_IFLIST; ++ if ((hwmib[5] = if_nametoindex (nic)) == 0) { ++ g_sprintf (dst, NOT_AVAILABLE); ++ goto hwfail; ++ } ++ if (sysctl (hwmib, 6, NULL, &hwlen, NULL, 0) < 0) { ++ g_sprintf (dst, NOT_AVAILABLE); ++ goto hwfail; ++ } ++ if ((hwbuf = g_malloc (hwlen)) == NULL) { ++ g_sprintf (dst, NOT_AVAILABLE); ++ goto hwfail; ++ } ++ if (sysctl (hwmib, 6, hwbuf, &hwlen, NULL, 0) < 0) { ++ g_sprintf (dst, NOT_AVAILABLE); ++ goto hwfail; ++ } ++ ++ hwifm = (struct if_msghdr *) hwbuf; ++ hwsinptr = (struct sockaddr_dl *) (hwifm + 1); ++ hwptr = (guchar *) LLADDR (hwsinptr); ++ if (*hwptr != 0 || *(hwptr + 1) != 0 || ++ *(hwptr + 2) != 0 || *(hwptr + 3) != 0 || ++ *(hwptr + 4) != 0 || *(hwptr + 5) != 0) { ++ g_sprintf (dst, "%02x:%02x:%02x:%02x:%02x:%02x", ++ *hwptr, *(hwptr + 1), *(hwptr + 2), ++ *(hwptr + 3), *(hwptr + 4), *(hwptr + 5)); ++ } ++ else { ++ g_sprintf (dst, NOT_AVAILABLE); ++ } ++ g_free (hwbuf); ++ ++hwfail: + #else + g_sprintf (dst, NOT_AVAILABLE); + #endif /* SIOCGIFHWADDR */ +@@ -625,6 +768,8 @@ info_get_nic_information (const gchar *n + } + + freeifaddrs (ifa0); ++fail: ++ ; + } + + static gint * +diff --exclude-from=/home/dang/.scripts/diffrc -up -ruN gnome-nettool-2.18.0.orig/src/lookup.c gnome-nettool-2.18.0/src/lookup.c +--- gnome-nettool-2.18.0.orig/src/lookup.c 2007-02-16 19:53:16.000000000 -0500 ++++ gnome-nettool-2.18.0/src/lookup.c 2007-08-06 20:28:16.000000000 -0400 +@@ -21,6 +21,7 @@ + #include <gtk/gtk.h> + #include <glib/gi18n.h> + #include <glib/gprintf.h> ++#include <sys/types.h> + + #include "lookup.h" + #include "utils.h" +diff --exclude-from=/home/dang/.scripts/diffrc -up -ruN gnome-nettool-2.18.0.orig/src/netstat.c gnome-nettool-2.18.0/src/netstat.c +--- gnome-nettool-2.18.0.orig/src/netstat.c 2007-02-16 19:53:16.000000000 -0500 ++++ gnome-nettool-2.18.0/src/netstat.c 2007-08-06 20:28:16.000000000 -0400 +@@ -110,12 +110,17 @@ netstat_get_active_option (Netinfo * net + g_return_val_if_fail (netinfo != NULL, NULL); + + if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (netinfo->routing))) { ++#ifdef __FreeBSD__ ++ /* XXX We only support ipv4 now */ ++ option = g_strdup ("-rn -f inet"); ++#else + /* Works for Solaris and Linux */ + if (netinfo_is_ipv6_enable ()) { + option = g_strdup ("-rn -A inet -A inet6"); + } else { + option = g_strdup ("-rn -A inet"); + } ++#endif + + if (netinfo->stbar_text) + g_free (netinfo->stbar_text); +diff --exclude-from=/home/dang/.scripts/diffrc -up -ruN gnome-nettool-2.18.0.orig/src/nettool.c gnome-nettool-2.18.0/src/nettool.c +--- gnome-nettool-2.18.0.orig/src/nettool.c 2007-02-16 19:53:16.000000000 -0500 ++++ gnome-nettool-2.18.0/src/nettool.c 2007-08-06 20:28:16.000000000 -0400 +@@ -24,6 +24,7 @@ + #include <string.h> + #include <sys/types.h> + #include <sys/socket.h> ++#include <netinet/in.h> + #include <signal.h> + #include <errno.h> + #include <sys/wait.h> +@@ -361,6 +362,10 @@ netinfo_io_text_buffer_dialog (GIOChanne + len, NULL); + } + ++ g_free (text); ++ ++ return TRUE; ++ + } else if (status == G_IO_STATUS_AGAIN) { + char buf[1]; + +@@ -372,12 +377,13 @@ netinfo_io_text_buffer_dialog (GIOChanne + } + g_string_append_c (netinfo->command_output, buf[0]); + } ++ ++ g_free (text); ++ return TRUE; + } else if (status == G_IO_STATUS_EOF) { + } + + g_free (text); +- +- return TRUE; + } + + /* The condition is not G_IO_HUP | G_IO_ERR | G_IO_NVAL, so +diff --exclude-from=/home/dang/.scripts/diffrc -up -ruN gnome-nettool-2.18.0.orig/src/utils.c gnome-nettool-2.18.0/src/utils.c +--- gnome-nettool-2.18.0.orig/src/utils.c 2007-02-16 19:53:16.000000000 -0500 ++++ gnome-nettool-2.18.0/src/utils.c 2007-08-06 20:28:16.000000000 -0400 +@@ -24,6 +24,8 @@ + on GNOME 2.0 */ + + #include "utils.h" ++#include <stdlib.h> ++#include <limits.h> + #include <string.h> + #include <glib/gi18n.h> + +@@ -240,7 +242,7 @@ util_legible_bytes (gchar *bytes) + const gchar *unit = "B"; + gchar *result; + +- sscanf (bytes, "%lld", &rx); ++ rx = strtoull (bytes, (char **)NULL, 10); + short_rx = rx * 10; + + if (rx > 1125899906842624ull) { diff --git a/net-analyzer/gnome-nettool/gnome-nettool-2.18.0.ebuild b/net-analyzer/gnome-nettool/gnome-nettool-2.18.0.ebuild index d7e240f9d8b5..f1205d12f8ff 100644 --- a/net-analyzer/gnome-nettool/gnome-nettool-2.18.0.ebuild +++ b/net-analyzer/gnome-nettool/gnome-nettool-2.18.0.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/gnome-nettool/gnome-nettool-2.18.0.ebuild,v 1.2 2007/04/23 19:46:24 swegener Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/gnome-nettool/gnome-nettool-2.18.0.ebuild,v 1.3 2007/08/07 00:36:01 dang Exp $ -inherit gnome2 +inherit gnome2 eutils DESCRIPTION="Collection of network tools" HOMEPAGE="http://www.gnome.org/projects/gnome-network/" @@ -33,3 +33,9 @@ DOCS="AUTHORS ChangeLog NEWS README TODO" pkg_setup() { G2CONF="`use_enable debug`" } + +src_unpack() { + gnome2_src_unpack + + epatch "${FILESDIR}"/${P}-fbsd.patch +} |