diff options
author | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2007-05-02 00:51:09 +0800 |
---|---|---|
committer | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2007-05-02 00:51:09 +0800 |
commit | d88282db727d2da3886ad87d63a3fcf4a046773f (patch) | |
tree | 52fd4efae3ac072472cb25ed91f821c71caac950 | |
parent | 907eee6fe134c6a3bbdbf95def582d86adc9380e (diff) | |
download | marcuscom-ports-d88282db727d2da3886ad87d63a3fcf4a046773f.tar marcuscom-ports-d88282db727d2da3886ad87d63a3fcf4a046773f.tar.gz marcuscom-ports-d88282db727d2da3886ad87d63a3fcf4a046773f.tar.bz2 marcuscom-ports-d88282db727d2da3886ad87d63a3fcf4a046773f.tar.lz marcuscom-ports-d88282db727d2da3886ad87d63a3fcf4a046773f.tar.xz marcuscom-ports-d88282db727d2da3886ad87d63a3fcf4a046773f.tar.zst marcuscom-ports-d88282db727d2da3886ad87d63a3fcf4a046773f.zip |
share/gnome -> share
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@8724 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r-- | net/netspeed_applet/Makefile | 28 | ||||
-rw-r--r-- | net/netspeed_applet/distinfo | 3 | ||||
-rw-r--r-- | net/netspeed_applet/files/patch-src_backend.c | 56 | ||||
-rw-r--r-- | net/netspeed_applet/files/patch-src_netspeed.c | 52 | ||||
-rw-r--r-- | net/netspeed_applet/pkg-descr | 4 | ||||
-rw-r--r-- | net/netspeed_applet/pkg-plist | 91 | ||||
-rw-r--r-- | sysutils/gnome-pkgview/Makefile | 32 | ||||
-rw-r--r-- | sysutils/gnome-pkgview/distinfo | 3 | ||||
-rw-r--r-- | sysutils/gnome-pkgview/files/patch-src_config-path.c | 13 | ||||
-rw-r--r-- | sysutils/gnome-pkgview/pkg-descr | 6 | ||||
-rw-r--r-- | sysutils/gnome-pkgview/pkg-plist | 50 |
11 files changed, 338 insertions, 0 deletions
diff --git a/net/netspeed_applet/Makefile b/net/netspeed_applet/Makefile new file mode 100644 index 000000000..278a7c3f6 --- /dev/null +++ b/net/netspeed_applet/Makefile @@ -0,0 +1,28 @@ +# New ports collection makefile for: netspeed_applet +# Date created: 08 February 2003 +# Whom: Joe Marcus Clarke <marcus@FreeBSD.org> +# +# $FreeBSD$ +# $MCom$ + +PORTNAME= netspeed_applet +PORTVERSION= 0.13 +PORTREVISION= 1 +CATEGORIES= net gnome +MASTER_SITES= http://www.wh-hms.uni-ulm.de/~mfcn/shared/netspeed/ + +MAINTAINER= gnome@FreeBSD.org +COMMENT= Applet that shows how much network traffic occurs on an interface + +LIB_DEPENDS= gtop-2.0:${PORTSDIR}/devel/libgtop + +USE_X_PREFIX= yes +INSTALLS_OMF= yes +USE_GMAKE= yes +USE_GNOME= gnomehier intlhack gnomeprefix gnomehack gnomepanel +USE_GETTEXT= yes +GNU_CONFIGURE= yes +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" + +.include <bsd.port.mk> diff --git a/net/netspeed_applet/distinfo b/net/netspeed_applet/distinfo new file mode 100644 index 000000000..57877ac1c --- /dev/null +++ b/net/netspeed_applet/distinfo @@ -0,0 +1,3 @@ +MD5 (netspeed_applet-0.13.tar.gz) = b5c5332993ed779c3653433c6f3b6a9a +SHA256 (netspeed_applet-0.13.tar.gz) = 86041c571b0cd3113c3a428ba8d01498ed8fb81613b3e6ccf6c7c8e722530853 +SIZE (netspeed_applet-0.13.tar.gz) = 647081 diff --git a/net/netspeed_applet/files/patch-src_backend.c b/net/netspeed_applet/files/patch-src_backend.c new file mode 100644 index 000000000..041a6d941 --- /dev/null +++ b/net/netspeed_applet/files/patch-src_backend.c @@ -0,0 +1,56 @@ +--- src/backend.c.orig Wed May 3 02:41:00 2006 ++++ src/backend.c Wed May 3 03:03:09 2006 +@@ -20,6 +20,7 @@ + #include <config.h> + #include <glibtop/netlist.h> + #include <glibtop/netload.h> ++#include <net/if_media.h> + #include "backend.h" + + /* Check for all available devices. This really should be +@@ -131,7 +132,7 @@ + + g_strlcpy(request.ifr_name, devinfo->name, sizeof request.ifr_name); + +- if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) ++ if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) + goto out; + + if (ioctl(fd, SIOCGIFFLAGS, &request) == -1) +@@ -148,16 +149,20 @@ + } + } + ++ if (devinfo->type == DEV_UNKNOWN) { ++ struct ifmediareq ifmr; + +- if (ioctl(fd, SIOCGIWNAME, &request) >= 0) { +- devinfo->type = DEV_WIRELESS; +- } ++ memset(&ifmr, 0, sizeof(ifmr)); ++ g_strlcpy(ifmr.ifm_name, devinfo->name, sizeof(ifmr.ifm_name)); + +- if (ioctl(fd, SIOCGIWENCODE, &request) >= 0) { +- g_assert_not_reached(); ++ if (ioctl(fd, SIOCGIFMEDIA, &ifmr) >= 0) { ++ switch (IFM_TYPE(ifmr.ifm_current)) { ++ case IFM_ETHER: devinfo->type = DEV_ETHERNET; break; ++ case IFM_IEEE80211: devinfo->type = DEV_WIRELESS; break; ++ } ++ } + } + +- + out: + if(fd != -1) + close(fd); +@@ -210,9 +215,6 @@ + else { + devinfo.type = DEV_PPP; + } +- } +- else if (g_str_has_prefix(device, "eth")) { +- devinfo.type = DEV_ETHERNET; + } + + get_additional_info(&devinfo); diff --git a/net/netspeed_applet/files/patch-src_netspeed.c b/net/netspeed_applet/files/patch-src_netspeed.c new file mode 100644 index 000000000..580d2bdd7 --- /dev/null +++ b/net/netspeed_applet/files/patch-src_netspeed.c @@ -0,0 +1,52 @@ +--- src/netspeed.c.orig Mon May 1 19:36:46 2006 ++++ src/netspeed.c Mon May 1 19:42:28 2006 +@@ -23,6 +23,7 @@ + #include <panel-applet.h> + #include <panel-applet-gconf.h> + #include <gconf/gconf-client.h> ++#include <glibtop.h> + #include "backend.h" + #include "netspeed.h" + +@@ -391,7 +392,7 @@ + + devices = get_available_devices(); + for (tmp = devices; tmp; tmp = g_list_next(tmp)) { +- if (strcmp(tmp->data, "lo") == 0) continue; ++ if (strcmp(tmp->data, "lo0") == 0) continue; + if (strncmp(tmp->data, "dummy", strlen("dummy")) == 0) continue; + info = get_device_info(tmp->data); + if (info.running) { +@@ -1344,6 +1345,16 @@ + if (strcmp (iid, "OAFIID:GNOME_NetspeedApplet")) + return FALSE; + ++ /* ++ * Work around a design flaw in libgtop: force an initialisation ++ * of the server, otherwise glibtop_get_netlist() will find that ++ * the server is not needed and glibtop_get_netload() (which needs ++ * the server) will fail. ++ * ++ * Jean-Yves Lefort <jylefort@FreeBSD.org> 20060501 ++ */ ++ glibtop_init(); ++ + icon_theme = gtk_icon_theme_get_default(); + gtk_icon_theme_append_search_path(icon_theme, DATADIR"/pixmaps/"PACKAGE); + +@@ -1432,13 +1443,13 @@ + GList *ptr, *devices = get_available_devices(); + ptr = devices; + while (ptr) { +- if (!g_str_equal(ptr->data, "lo")) ++ if (!g_str_equal(ptr->data, "lo0")) + applet->devinfo = get_device_info(ptr->data); + ptr = g_list_next(ptr); + } + free_devices_list(devices); + } +- if (!applet->devinfo.name) applet->devinfo = get_device_info("lo"); ++ if (!applet->devinfo.name) applet->devinfo = get_device_info("lo0"); + applet->device_has_changed = TRUE; + + applet->tooltips = gtk_tooltips_new(); diff --git a/net/netspeed_applet/pkg-descr b/net/netspeed_applet/pkg-descr new file mode 100644 index 000000000..d0997a3c3 --- /dev/null +++ b/net/netspeed_applet/pkg-descr @@ -0,0 +1,4 @@ +Netspeed_applet is just a little applet that shows how much traffic occurs on a +specified network device. + +WWW: http://www.wh-hms.uni-ulm.de/~mfcn/netspeed/ diff --git a/net/netspeed_applet/pkg-plist b/net/netspeed_applet/pkg-plist new file mode 100644 index 000000000..f4e872288 --- /dev/null +++ b/net/netspeed_applet/pkg-plist @@ -0,0 +1,91 @@ +libdata/bonobo/servers/GNOME_NetspeedApplet.server +libexec/netspeed_applet2 +share/gnome/help/netspeed_applet/C/figures/details.png +share/gnome/help/netspeed_applet/C/figures/eth_sum_48.png +share/gnome/help/netspeed_applet/C/figures/ethernet.png +share/gnome/help/netspeed_applet/C/figures/loopback.png +share/gnome/help/netspeed_applet/C/figures/netspeed_applet.png +share/gnome/help/netspeed_applet/C/figures/plip.png +share/gnome/help/netspeed_applet/C/figures/ppp.png +share/gnome/help/netspeed_applet/C/figures/settings.png +share/gnome/help/netspeed_applet/C/figures/wavelan.png +share/gnome/help/netspeed_applet/C/legal.xml +share/gnome/help/netspeed_applet/C/netspeed_applet.xml +share/gnome/help/netspeed_applet/cs/figures/details.png +share/gnome/help/netspeed_applet/cs/figures/eth_48.png +share/gnome/help/netspeed_applet/cs/figures/eth_sum_48.png +share/gnome/help/netspeed_applet/cs/figures/netspeed_applet_24.png +share/gnome/help/netspeed_applet/cs/figures/netspeed_applet_48.png +share/gnome/help/netspeed_applet/cs/figures/netspeed_applet_48_sum.png +share/gnome/help/netspeed_applet/cs/figures/phone_24.png +share/gnome/help/netspeed_applet/cs/figures/settings.png +share/gnome/help/netspeed_applet/cs/legal.xml +share/gnome/help/netspeed_applet/cs/netspeed_applet.xml +share/gnome/help/netspeed_applet/de/figures/details.png +share/gnome/help/netspeed_applet/de/figures/eth_48.png +share/gnome/help/netspeed_applet/de/figures/eth_sum_48.png +share/gnome/help/netspeed_applet/de/figures/netspeed_applet_24.png +share/gnome/help/netspeed_applet/de/figures/netspeed_applet_48.png +share/gnome/help/netspeed_applet/de/figures/netspeed_applet_48_sum.png +share/gnome/help/netspeed_applet/de/figures/phone_24.png +share/gnome/help/netspeed_applet/de/figures/settings.png +share/gnome/help/netspeed_applet/de/legal.xml +share/gnome/help/netspeed_applet/de/netspeed_applet.xml +share/gnome/help/netspeed_applet/es/figures/details.png +share/gnome/help/netspeed_applet/es/figures/eth_sum_48.png +share/gnome/help/netspeed_applet/es/figures/ethernet.png +share/gnome/help/netspeed_applet/es/figures/loopback.png +share/gnome/help/netspeed_applet/es/figures/netspeed_applet.png +share/gnome/help/netspeed_applet/es/figures/plip.png +share/gnome/help/netspeed_applet/es/figures/ppp.png +share/gnome/help/netspeed_applet/es/figures/settings.png +share/gnome/help/netspeed_applet/es/figures/wavelan.png +share/gnome/help/netspeed_applet/es/legal.xml +share/gnome/help/netspeed_applet/es/netspeed_applet.xml +share/gnome/help/netspeed_applet/ru/figures/details.png +share/gnome/help/netspeed_applet/ru/figures/eth_48.png +share/gnome/help/netspeed_applet/ru/figures/eth_sum_48.png +share/gnome/help/netspeed_applet/ru/figures/netspeed_applet_24.png +share/gnome/help/netspeed_applet/ru/figures/netspeed_applet_48.png +share/gnome/help/netspeed_applet/ru/figures/netspeed_applet_48_sum.png +share/gnome/help/netspeed_applet/ru/figures/phone_24.png +share/gnome/help/netspeed_applet/ru/figures/settings.png +share/gnome/help/netspeed_applet/ru/legal.xml +share/gnome/help/netspeed_applet/ru/netspeed_applet.xml +share/omf/netspeed_applet/netspeed_applet-C.omf +share/omf/netspeed_applet/netspeed_applet-cs.omf +share/omf/netspeed_applet/netspeed_applet-de.omf +share/omf/netspeed_applet/netspeed_applet-es.omf +share/omf/netspeed_applet/netspeed_applet-ru.omf +share/pixmaps/netspeed_applet.png +share/pixmaps/netspeed_applet/gnome-dev-loopback.png +share/pixmaps/netspeed_applet/gnome-dev-plip.png +share/pixmaps/netspeed_applet/gnome-dev-ppp.png +share/locale/cs/LC_MESSAGES/netspeed_applet.mo +share/locale/de/LC_MESSAGES/netspeed_applet.mo +share/locale/es/LC_MESSAGES/netspeed_applet.mo +share/locale/et/LC_MESSAGES/netspeed_applet.mo +share/locale/fr/LC_MESSAGES/netspeed_applet.mo +share/locale/hu/LC_MESSAGES/netspeed_applet.mo +share/locale/it/LC_MESSAGES/netspeed_applet.mo +share/locale/ja/LC_MESSAGES/netspeed_applet.mo +share/locale/ms/LC_MESSAGES/netspeed_applet.mo +share/locale/nl/LC_MESSAGES/netspeed_applet.mo +share/locale/ro/LC_MESSAGES/netspeed_applet.mo +share/locale/ru/LC_MESSAGES/netspeed_applet.mo +share/locale/sv/LC_MESSAGES/netspeed_applet.mo +share/locale/tr/LC_MESSAGES/netspeed_applet.mo +share/locale/zh_CN/LC_MESSAGES/netspeed_applet.mo +@dirrm share/pixmaps/netspeed_applet +@dirrm share/omf/netspeed_applet +@dirrm share/gnome/help/netspeed_applet/ru/figures +@dirrm share/gnome/help/netspeed_applet/ru +@dirrm share/gnome/help/netspeed_applet/es/figures +@dirrm share/gnome/help/netspeed_applet/es +@dirrm share/gnome/help/netspeed_applet/de/figures +@dirrm share/gnome/help/netspeed_applet/de +@dirrm share/gnome/help/netspeed_applet/cs/figures +@dirrm share/gnome/help/netspeed_applet/cs +@dirrm share/gnome/help/netspeed_applet/C/figures +@dirrm share/gnome/help/netspeed_applet/C +@dirrm share/gnome/help/netspeed_applet diff --git a/sysutils/gnome-pkgview/Makefile b/sysutils/gnome-pkgview/Makefile new file mode 100644 index 000000000..0d6f36a35 --- /dev/null +++ b/sysutils/gnome-pkgview/Makefile @@ -0,0 +1,32 @@ +# New ports collection makefile for: gnome-pkgview +# Date created: 20 November 2002 +# Whom: Joe Marcus Clarke <marcus@FreeBSD.org> +# +# $FreeBSD$ +# $MCom$ + +PORTNAME= gnome-pkgview +PORTVERSION= 1.0.6 +PORTREVISION= 1 +CATEGORIES= sysutils gnome +MASTER_SITES= http://www.greatnorthern.demon.co.uk/packages/gnome-pkgview/ + +MAINTAINER= gnome@FreeBSD.org +COMMENT= Displays the version of GNOME components installed + +USE_GMAKE= yes +USE_GNOME= gnomeprefix gnomehack gnomehier libgnomeui intlhack +USE_GETTEXT= yes +USE_X_PREFIX= yes +GNU_CONFIGURE= yes +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" + +GCONF_SCHEMAS= gnome-pkgview.schemas + +post-patch: + @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ + -e 's|%%X11BASE%%|${X11BASE}|g' \ + ${WRKSRC}/src/config-path.c + +.include <bsd.port.mk> diff --git a/sysutils/gnome-pkgview/distinfo b/sysutils/gnome-pkgview/distinfo new file mode 100644 index 000000000..608713589 --- /dev/null +++ b/sysutils/gnome-pkgview/distinfo @@ -0,0 +1,3 @@ +MD5 (gnome-pkgview-1.0.6.tar.gz) = 9b5e07077f06b72acb4568fc13f6d715 +SHA256 (gnome-pkgview-1.0.6.tar.gz) = 610bab660569ffb643e7cd1cb2567a1f1f3e60320077c99b803244b913677d27 +SIZE (gnome-pkgview-1.0.6.tar.gz) = 222563 diff --git a/sysutils/gnome-pkgview/files/patch-src_config-path.c b/sysutils/gnome-pkgview/files/patch-src_config-path.c new file mode 100644 index 000000000..2eed9821d --- /dev/null +++ b/sysutils/gnome-pkgview/files/patch-src_config-path.c @@ -0,0 +1,13 @@ +--- src/config-path.c.orig Thu Nov 14 02:23:41 2002 ++++ src/config-path.c Thu Nov 14 02:29:54 2002 +@@ -14,9 +14,7 @@ + pkgs_found = 0; + + /* parse the PKG_CONFIG_PATH env var, and add a terminator */ +- if ( getenv ("PKG_CONFIG_PATH") ) { +- path = g_strconcat(getenv("PKG_CONFIG_PATH"),":DIRS_DONE",NULL); +- } ++ path = "%%LOCALBASE%%/libdata/pkgconfig:%%X11BASE%%/libdata/pkgconfig:DIRS_DONE"; + + /* walk the PKG_CONFIG_PATH for other files */ + if ( path ) { diff --git a/sysutils/gnome-pkgview/pkg-descr b/sysutils/gnome-pkgview/pkg-descr new file mode 100644 index 000000000..9d1923f0f --- /dev/null +++ b/sysutils/gnome-pkgview/pkg-descr @@ -0,0 +1,6 @@ +Pkgview is an application that displays the versions of all installed GNOME 2 +components, then tries to guess the overall GNOME 2 version. This tool +can be very useful when trying to report bugs in GNOME's Bugzilla +database. + +WWW: http://www.greatnorthern.demon.co.uk/gnome-pkgview.html diff --git a/sysutils/gnome-pkgview/pkg-plist b/sysutils/gnome-pkgview/pkg-plist new file mode 100644 index 000000000..70aff3a4d --- /dev/null +++ b/sysutils/gnome-pkgview/pkg-plist @@ -0,0 +1,50 @@ +bin/gnome-pkgview +share/applications/gnome-pkgview.desktop +share/pixmaps/gnome-pkgview/debian.png +share/pixmaps/gnome-pkgview/fedora.png +share/pixmaps/gnome-pkgview/gentoo.png +share/pixmaps/gnome-pkgview/gnome.png +share/pixmaps/gnome-pkgview/pkgview.png +share/pixmaps/gnome-pkgview/pld.png +share/pixmaps/gnome-pkgview/redhat.png +share/pixmaps/gnome-pkgview/slackware.png +share/pixmaps/gnome-pkgview/solaris.png +share/pixmaps/gnome-pkgview/suse.png +share/pixmaps/gnome-pkgview/whitebox.png +share/locale/am/LC_MESSAGES/gnome-pkgview.mo +share/locale/az/LC_MESSAGES/gnome-pkgview.mo +share/locale/be/LC_MESSAGES/gnome-pkgview.mo +share/locale/bg/LC_MESSAGES/gnome-pkgview.mo +share/locale/ca/LC_MESSAGES/gnome-pkgview.mo +share/locale/cs/LC_MESSAGES/gnome-pkgview.mo +share/locale/da/LC_MESSAGES/gnome-pkgview.mo +share/locale/de/LC_MESSAGES/gnome-pkgview.mo +share/locale/el/LC_MESSAGES/gnome-pkgview.mo +share/locale/en_GB/LC_MESSAGES/gnome-pkgview.mo +share/locale/eo/LC_MESSAGES/gnome-pkgview.mo +share/locale/es/LC_MESSAGES/gnome-pkgview.mo +share/locale/fr/LC_MESSAGES/gnome-pkgview.mo +share/locale/he/LC_MESSAGES/gnome-pkgview.mo +share/locale/hr/LC_MESSAGES/gnome-pkgview.mo +share/locale/it/LC_MESSAGES/gnome-pkgview.mo +share/locale/ja/LC_MESSAGES/gnome-pkgview.mo +share/locale/ko/LC_MESSAGES/gnome-pkgview.mo +share/locale/lv/LC_MESSAGES/gnome-pkgview.mo +share/locale/ml/LC_MESSAGES/gnome-pkgview.mo +share/locale/ms/LC_MESSAGES/gnome-pkgview.mo +share/locale/nl/LC_MESSAGES/gnome-pkgview.mo +share/locale/no/LC_MESSAGES/gnome-pkgview.mo +share/locale/pa/LC_MESSAGES/gnome-pkgview.mo +share/locale/pl/LC_MESSAGES/gnome-pkgview.mo +share/locale/pt/LC_MESSAGES/gnome-pkgview.mo +share/locale/pt_BR/LC_MESSAGES/gnome-pkgview.mo +share/locale/ru/LC_MESSAGES/gnome-pkgview.mo +share/locale/sk/LC_MESSAGES/gnome-pkgview.mo +share/locale/sr/LC_MESSAGES/gnome-pkgview.mo +share/locale/sr@Latn/LC_MESSAGES/gnome-pkgview.mo +share/locale/sv/LC_MESSAGES/gnome-pkgview.mo +share/locale/uk/LC_MESSAGES/gnome-pkgview.mo +share/locale/vi/LC_MESSAGES/gnome-pkgview.mo +share/locale/zh_CN/LC_MESSAGES/gnome-pkgview.mo +share/locale/zh_TW/LC_MESSAGES/gnome-pkgview.mo +@dirrm share/pixmaps/gnome-pkgview |