summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2004-12-02 02:32:35 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2004-12-02 02:32:35 +0800
commiteeca4e6f1e7db962f9c2cc5752d8911aa7e7b411 (patch)
tree89a8578d7e686b69b764f9dbefd37ba8b7db6f79
parent9f101184b92a440c709c2cd14a8cd993efb98d3b (diff)
downloadmarcuscom-ports-eeca4e6f1e7db962f9c2cc5752d8911aa7e7b411.tar
marcuscom-ports-eeca4e6f1e7db962f9c2cc5752d8911aa7e7b411.tar.gz
marcuscom-ports-eeca4e6f1e7db962f9c2cc5752d8911aa7e7b411.tar.bz2
marcuscom-ports-eeca4e6f1e7db962f9c2cc5752d8911aa7e7b411.tar.lz
marcuscom-ports-eeca4e6f1e7db962f9c2cc5752d8911aa7e7b411.tar.xz
marcuscom-ports-eeca4e6f1e7db962f9c2cc5752d8911aa7e7b411.tar.zst
marcuscom-ports-eeca4e6f1e7db962f9c2cc5752d8911aa7e7b411.zip
Update to 2.9.0.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@3194 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r--sysutils/gnome-system-monitor/Makefile33
-rw-r--r--sysutils/gnome-system-monitor/distinfo2
-rw-r--r--sysutils/gnome-system-monitor/files/patch-configure20
-rw-r--r--sysutils/gnome-system-monitor/files/patch-src::proctable.c31
-rw-r--r--sysutils/gnome-system-monitor/files/patch-src_interface.c21
-rw-r--r--sysutils/gnome-system-monitor/files/patch-src_util.c34
-rw-r--r--sysutils/gnome-system-monitor/pkg-descr1
-rw-r--r--sysutils/gnome-system-monitor/pkg-plist82
-rw-r--r--sysutils/gnomesystemmonitor/Makefile33
-rw-r--r--sysutils/gnomesystemmonitor/distinfo2
-rw-r--r--sysutils/gnomesystemmonitor/files/patch-configure20
-rw-r--r--sysutils/gnomesystemmonitor/files/patch-src::proctable.c31
-rw-r--r--sysutils/gnomesystemmonitor/files/patch-src_interface.c21
-rw-r--r--sysutils/gnomesystemmonitor/files/patch-src_util.c34
-rw-r--r--sysutils/gnomesystemmonitor/pkg-descr1
-rw-r--r--sysutils/gnomesystemmonitor/pkg-plist82
16 files changed, 448 insertions, 0 deletions
diff --git a/sysutils/gnome-system-monitor/Makefile b/sysutils/gnome-system-monitor/Makefile
new file mode 100644
index 000000000..6324c47d4
--- /dev/null
+++ b/sysutils/gnome-system-monitor/Makefile
@@ -0,0 +1,33 @@
+# New ports collection makefile for: gnomesystemmonitor
+# Date created: 09 May 2002
+# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
+#
+# $FreeBSD: ports/sysutils/gnomesystemmonitor/Makefile,v 1.58 2004/11/23 02:23:05 mezz Exp $
+#
+
+PORTNAME= gnomesystemmonitor
+PORTVERSION= 2.9.0
+CATEGORIES= sysutils gnome
+MASTER_SITES= ${MASTER_SITE_GNOME}
+MASTER_SITE_SUBDIR= sources/gnome-system-monitor/2.9
+DISTNAME= gnome-system-monitor-${PORTVERSION}
+DIST_SUBDIR= gnome2
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= GNOME 2 system monitor program
+
+LIB_DEPENDS= gtop-2.0.2:${PORTSDIR}/devel/libgtop2
+
+USE_BZIP2= yes
+USE_X_PREFIX= yes
+INSTALLS_OMF= yes
+USE_GMAKE= yes
+USE_REINPLACE= yes
+USE_GNOME= gnomeprefix intlhack gnomehack libgnomeui libwnck
+USE_LIBTOOL_VER=15
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LIBS="-L${LOCALBASE}/lib -lutil"
+
+GCONF_SCHEMAS= gnome-system-monitor.schemas
+
+.include <bsd.port.mk>
diff --git a/sysutils/gnome-system-monitor/distinfo b/sysutils/gnome-system-monitor/distinfo
new file mode 100644
index 000000000..c5803db59
--- /dev/null
+++ b/sysutils/gnome-system-monitor/distinfo
@@ -0,0 +1,2 @@
+MD5 (gnome2/gnome-system-monitor-2.9.0.tar.bz2) = 9ae8cb955d2055bae80151a39dcb76c7
+SIZE (gnome2/gnome-system-monitor-2.9.0.tar.bz2) = 667173
diff --git a/sysutils/gnome-system-monitor/files/patch-configure b/sysutils/gnome-system-monitor/files/patch-configure
new file mode 100644
index 000000000..504276306
--- /dev/null
+++ b/sysutils/gnome-system-monitor/files/patch-configure
@@ -0,0 +1,20 @@
+--- configure.orig Mon Nov 25 21:02:50 2002
++++ configure Fri Nov 29 20:30:44 2002
+@@ -3731,7 +3731,7 @@
+
+
+ cat >>confdefs.h <<_ACEOF
+-#define GNOME_ICONDIR "${prefix}/share/pixmaps"
++#define GNOME_ICONDIR "${datadir}/pixmaps"
+ _ACEOF
+
+
+@@ -6630,7 +6630,7 @@
+ s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
+ s,@PKG_CONFIG@,$PKG_CONFIG,;t t
+ s,@PROCMAN_CFLAGS@,$PROCMAN_CFLAGS,;t t
+-s,@PROCMAN_LIBS@,$PROCMAN_LIBS,;t t
++s,@PROCMAN_LIBS@, $PROCMAN_LIBS,;t t
+ s,@GCONF_SCHEMA_CONFIG_SOURCE@,$GCONF_SCHEMA_CONFIG_SOURCE,;t t
+ s,@GCONF_SCHEMA_FILE_DIR@,$GCONF_SCHEMA_FILE_DIR,;t t
+ s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
diff --git a/sysutils/gnome-system-monitor/files/patch-src::proctable.c b/sysutils/gnome-system-monitor/files/patch-src::proctable.c
new file mode 100644
index 000000000..49a699641
--- /dev/null
+++ b/sysutils/gnome-system-monitor/files/patch-src::proctable.c
@@ -0,0 +1,31 @@
+--- src/proctable.c.orig Tue Nov 30 01:28:31 2004
++++ src/proctable.c Wed Dec 1 13:25:55 2004
+@@ -772,6 +772,12 @@
+
+
+
++static int
++pid_compare(const void* first, const void* second)
++{
++ return *(unsigned*)first - *(unsigned*)second;
++}
++
+ static void
+ refresh_list (ProcData *procdata, const unsigned *pid_list, const guint n)
+ {
+@@ -863,10 +869,15 @@
+
+ pid_list = glibtop_get_proclist (&proclist, which, arg);
+
++ qsort(pid_list, proclist.number, sizeof (*pid_list), pid_compare);
++
+ /* FIXME: total cpu time elapsed should be calculated on an individual basis here
+ ** should probably have a total_time_last gint in the ProcInfo structure */
+ glibtop_get_cpu (&cpu);
+ total_time = cpu.total - total_time_last;
++ if (cpu.frequency) {
++ total_time /= (cpu.frequency/100);
++ }
+ total_time_last = cpu.total;
+
+ refresh_list (procdata, pid_list, proclist.number);
diff --git a/sysutils/gnome-system-monitor/files/patch-src_interface.c b/sysutils/gnome-system-monitor/files/patch-src_interface.c
new file mode 100644
index 000000000..1b4276e7e
--- /dev/null
+++ b/sysutils/gnome-system-monitor/files/patch-src_interface.c
@@ -0,0 +1,21 @@
+--- src/interface.c.orig Wed Dec 1 13:23:26 2004
++++ src/interface.c Wed Dec 1 13:24:00 2004
+@@ -529,12 +529,12 @@
+
+ model = gtk_tree_store_new (10,
+ GDK_TYPE_PIXBUF,
+- G_TYPE_STRING, // device name
+- G_TYPE_STRING, // directory
+- G_TYPE_STRING, // type
+- G_TYPE_STRING, // total
+- G_TYPE_STRING, // free
+- G_TYPE_STRING, // used
++ G_TYPE_STRING, /* device name */
++ G_TYPE_STRING, /* directory */
++ G_TYPE_STRING, /* type */
++ G_TYPE_STRING, /* total */
++ G_TYPE_STRING, /* free */
++ G_TYPE_STRING, /* used */
+ G_TYPE_FLOAT,
+ G_TYPE_FLOAT,
+ G_TYPE_FLOAT);
diff --git a/sysutils/gnome-system-monitor/files/patch-src_util.c b/sysutils/gnome-system-monitor/files/patch-src_util.c
new file mode 100644
index 000000000..288ccc26a
--- /dev/null
+++ b/sysutils/gnome-system-monitor/files/patch-src_util.c
@@ -0,0 +1,34 @@
+--- src/util.c.orig Fri Dec 12 02:26:57 2003
++++ src/util.c Fri Dec 12 02:35:38 2003
+@@ -16,6 +16,7 @@
+
+ #ifdef __FreeBSD__
+ # include <errno.h>
++# include <termios.h>
+ # include <libutil.h>
+ #endif
+
+@@ -181,7 +182,11 @@
+ * Make su think we're sending the password from a terminal:
+ */
+
++#ifndef __FreeBSD__
+ if (((t_fd = OPEN_TTY()) < 0) || (grantpt(t_fd) < 0) || (unlockpt(t_fd) < 0)) {
++#else
++ if ((t_fd = OPEN_TTY()) < 0) {
++#endif
+ fprintf (stderr, "Unable to open a terminal\n");
+ ABORT (root);
+ }
+@@ -259,7 +264,11 @@
+ }
+ }
+
++#ifndef __FreeBSD__
+ if(((pts = ptsname(t_fd)) == NULL) || ((t_fd = open(pts, O_RDWR | O_NOCTTY)) < 0)) {
++#else
++ if (((pts = ttyname(t_fd)) == NULL) || ((t_fd = open(pts, O_RDWR | O_NOCTTY)) < 0)) {
++#endif
+ perror ("Unable to open pseudo slave terminal");
+ _exit (-1);
+ }
diff --git a/sysutils/gnome-system-monitor/pkg-descr b/sysutils/gnome-system-monitor/pkg-descr
new file mode 100644
index 000000000..40caee647
--- /dev/null
+++ b/sysutils/gnome-system-monitor/pkg-descr
@@ -0,0 +1 @@
+GNOME 2.0 system monitor program.
diff --git a/sysutils/gnome-system-monitor/pkg-plist b/sysutils/gnome-system-monitor/pkg-plist
new file mode 100644
index 000000000..b0fa0b688
--- /dev/null
+++ b/sysutils/gnome-system-monitor/pkg-plist
@@ -0,0 +1,82 @@
+bin/gnome-system-monitor
+share/gnome/applications/gnome-system-monitor.desktop
+share/gnome/help/gnome-system-monitor/C/figures/addColumn.png
+share/gnome/help/gnome-system-monitor/C/figures/changePriority.png
+share/gnome/help/gnome-system-monitor/C/figures/colorPanel.png
+share/gnome/help/gnome-system-monitor/C/figures/columnContextMenu.png
+share/gnome/help/gnome-system-monitor/C/figures/gnome-system-monitor_window.png
+share/gnome/help/gnome-system-monitor/C/figures/memoryMaps.png
+share/gnome/help/gnome-system-monitor/C/figures/moreInfo.png
+share/gnome/help/gnome-system-monitor/C/figures/processListing.png
+share/gnome/help/gnome-system-monitor/C/figures/sortButton.png
+share/gnome/help/gnome-system-monitor/C/figures/sortMenu.png
+share/gnome/help/gnome-system-monitor/C/figures/sortMenu2.png
+share/gnome/help/gnome-system-monitor/C/figures/systemMonitor.png
+share/gnome/help/gnome-system-monitor/C/figures/viewMenu.png
+share/gnome/help/gnome-system-monitor/C/gnome-system-monitor.xml
+share/gnome/help/gnome-system-monitor/C/legal.xml
+share/gnome/omf/gnome-system-monitor/gnome-system-monitor-C.omf
+share/gnome/pixmaps/procman.png
+share/locale/am/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/ar/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/az/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/be/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/bg/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/bn/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/bs/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/ca/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/cs/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/cy/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/da/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/de/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/el/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/en_CA/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/en_GB/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/es/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/eu/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/fa/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/fi/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/fr/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/ga/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/gl/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/gu/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/he/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/hi/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/hr/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/hu/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/id/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/it/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/ja/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/ko/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/li/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/lt/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/lv/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/mk/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/ml/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/mn/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/ms/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/nb/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/nl/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/no/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/pa/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/pl/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/pt/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/pt_BR/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/ro/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/ru/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/sk/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/sl/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/sq/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/sr/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/sr@Latn/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/sv/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/ta/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/tr/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/uk/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/vi/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/zh_CN/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/zh_TW/LC_MESSAGES/gnome-system-monitor.mo
+@dirrm share/gnome/omf/gnome-system-monitor
+@dirrm share/gnome/help/gnome-system-monitor/C/figures
+@dirrm share/gnome/help/gnome-system-monitor/C
+@dirrm share/gnome/help/gnome-system-monitor
diff --git a/sysutils/gnomesystemmonitor/Makefile b/sysutils/gnomesystemmonitor/Makefile
new file mode 100644
index 000000000..6324c47d4
--- /dev/null
+++ b/sysutils/gnomesystemmonitor/Makefile
@@ -0,0 +1,33 @@
+# New ports collection makefile for: gnomesystemmonitor
+# Date created: 09 May 2002
+# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
+#
+# $FreeBSD: ports/sysutils/gnomesystemmonitor/Makefile,v 1.58 2004/11/23 02:23:05 mezz Exp $
+#
+
+PORTNAME= gnomesystemmonitor
+PORTVERSION= 2.9.0
+CATEGORIES= sysutils gnome
+MASTER_SITES= ${MASTER_SITE_GNOME}
+MASTER_SITE_SUBDIR= sources/gnome-system-monitor/2.9
+DISTNAME= gnome-system-monitor-${PORTVERSION}
+DIST_SUBDIR= gnome2
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= GNOME 2 system monitor program
+
+LIB_DEPENDS= gtop-2.0.2:${PORTSDIR}/devel/libgtop2
+
+USE_BZIP2= yes
+USE_X_PREFIX= yes
+INSTALLS_OMF= yes
+USE_GMAKE= yes
+USE_REINPLACE= yes
+USE_GNOME= gnomeprefix intlhack gnomehack libgnomeui libwnck
+USE_LIBTOOL_VER=15
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LIBS="-L${LOCALBASE}/lib -lutil"
+
+GCONF_SCHEMAS= gnome-system-monitor.schemas
+
+.include <bsd.port.mk>
diff --git a/sysutils/gnomesystemmonitor/distinfo b/sysutils/gnomesystemmonitor/distinfo
new file mode 100644
index 000000000..c5803db59
--- /dev/null
+++ b/sysutils/gnomesystemmonitor/distinfo
@@ -0,0 +1,2 @@
+MD5 (gnome2/gnome-system-monitor-2.9.0.tar.bz2) = 9ae8cb955d2055bae80151a39dcb76c7
+SIZE (gnome2/gnome-system-monitor-2.9.0.tar.bz2) = 667173
diff --git a/sysutils/gnomesystemmonitor/files/patch-configure b/sysutils/gnomesystemmonitor/files/patch-configure
new file mode 100644
index 000000000..504276306
--- /dev/null
+++ b/sysutils/gnomesystemmonitor/files/patch-configure
@@ -0,0 +1,20 @@
+--- configure.orig Mon Nov 25 21:02:50 2002
++++ configure Fri Nov 29 20:30:44 2002
+@@ -3731,7 +3731,7 @@
+
+
+ cat >>confdefs.h <<_ACEOF
+-#define GNOME_ICONDIR "${prefix}/share/pixmaps"
++#define GNOME_ICONDIR "${datadir}/pixmaps"
+ _ACEOF
+
+
+@@ -6630,7 +6630,7 @@
+ s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
+ s,@PKG_CONFIG@,$PKG_CONFIG,;t t
+ s,@PROCMAN_CFLAGS@,$PROCMAN_CFLAGS,;t t
+-s,@PROCMAN_LIBS@,$PROCMAN_LIBS,;t t
++s,@PROCMAN_LIBS@, $PROCMAN_LIBS,;t t
+ s,@GCONF_SCHEMA_CONFIG_SOURCE@,$GCONF_SCHEMA_CONFIG_SOURCE,;t t
+ s,@GCONF_SCHEMA_FILE_DIR@,$GCONF_SCHEMA_FILE_DIR,;t t
+ s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
diff --git a/sysutils/gnomesystemmonitor/files/patch-src::proctable.c b/sysutils/gnomesystemmonitor/files/patch-src::proctable.c
new file mode 100644
index 000000000..49a699641
--- /dev/null
+++ b/sysutils/gnomesystemmonitor/files/patch-src::proctable.c
@@ -0,0 +1,31 @@
+--- src/proctable.c.orig Tue Nov 30 01:28:31 2004
++++ src/proctable.c Wed Dec 1 13:25:55 2004
+@@ -772,6 +772,12 @@
+
+
+
++static int
++pid_compare(const void* first, const void* second)
++{
++ return *(unsigned*)first - *(unsigned*)second;
++}
++
+ static void
+ refresh_list (ProcData *procdata, const unsigned *pid_list, const guint n)
+ {
+@@ -863,10 +869,15 @@
+
+ pid_list = glibtop_get_proclist (&proclist, which, arg);
+
++ qsort(pid_list, proclist.number, sizeof (*pid_list), pid_compare);
++
+ /* FIXME: total cpu time elapsed should be calculated on an individual basis here
+ ** should probably have a total_time_last gint in the ProcInfo structure */
+ glibtop_get_cpu (&cpu);
+ total_time = cpu.total - total_time_last;
++ if (cpu.frequency) {
++ total_time /= (cpu.frequency/100);
++ }
+ total_time_last = cpu.total;
+
+ refresh_list (procdata, pid_list, proclist.number);
diff --git a/sysutils/gnomesystemmonitor/files/patch-src_interface.c b/sysutils/gnomesystemmonitor/files/patch-src_interface.c
new file mode 100644
index 000000000..1b4276e7e
--- /dev/null
+++ b/sysutils/gnomesystemmonitor/files/patch-src_interface.c
@@ -0,0 +1,21 @@
+--- src/interface.c.orig Wed Dec 1 13:23:26 2004
++++ src/interface.c Wed Dec 1 13:24:00 2004
+@@ -529,12 +529,12 @@
+
+ model = gtk_tree_store_new (10,
+ GDK_TYPE_PIXBUF,
+- G_TYPE_STRING, // device name
+- G_TYPE_STRING, // directory
+- G_TYPE_STRING, // type
+- G_TYPE_STRING, // total
+- G_TYPE_STRING, // free
+- G_TYPE_STRING, // used
++ G_TYPE_STRING, /* device name */
++ G_TYPE_STRING, /* directory */
++ G_TYPE_STRING, /* type */
++ G_TYPE_STRING, /* total */
++ G_TYPE_STRING, /* free */
++ G_TYPE_STRING, /* used */
+ G_TYPE_FLOAT,
+ G_TYPE_FLOAT,
+ G_TYPE_FLOAT);
diff --git a/sysutils/gnomesystemmonitor/files/patch-src_util.c b/sysutils/gnomesystemmonitor/files/patch-src_util.c
new file mode 100644
index 000000000..288ccc26a
--- /dev/null
+++ b/sysutils/gnomesystemmonitor/files/patch-src_util.c
@@ -0,0 +1,34 @@
+--- src/util.c.orig Fri Dec 12 02:26:57 2003
++++ src/util.c Fri Dec 12 02:35:38 2003
+@@ -16,6 +16,7 @@
+
+ #ifdef __FreeBSD__
+ # include <errno.h>
++# include <termios.h>
+ # include <libutil.h>
+ #endif
+
+@@ -181,7 +182,11 @@
+ * Make su think we're sending the password from a terminal:
+ */
+
++#ifndef __FreeBSD__
+ if (((t_fd = OPEN_TTY()) < 0) || (grantpt(t_fd) < 0) || (unlockpt(t_fd) < 0)) {
++#else
++ if ((t_fd = OPEN_TTY()) < 0) {
++#endif
+ fprintf (stderr, "Unable to open a terminal\n");
+ ABORT (root);
+ }
+@@ -259,7 +264,11 @@
+ }
+ }
+
++#ifndef __FreeBSD__
+ if(((pts = ptsname(t_fd)) == NULL) || ((t_fd = open(pts, O_RDWR | O_NOCTTY)) < 0)) {
++#else
++ if (((pts = ttyname(t_fd)) == NULL) || ((t_fd = open(pts, O_RDWR | O_NOCTTY)) < 0)) {
++#endif
+ perror ("Unable to open pseudo slave terminal");
+ _exit (-1);
+ }
diff --git a/sysutils/gnomesystemmonitor/pkg-descr b/sysutils/gnomesystemmonitor/pkg-descr
new file mode 100644
index 000000000..40caee647
--- /dev/null
+++ b/sysutils/gnomesystemmonitor/pkg-descr
@@ -0,0 +1 @@
+GNOME 2.0 system monitor program.
diff --git a/sysutils/gnomesystemmonitor/pkg-plist b/sysutils/gnomesystemmonitor/pkg-plist
new file mode 100644
index 000000000..b0fa0b688
--- /dev/null
+++ b/sysutils/gnomesystemmonitor/pkg-plist
@@ -0,0 +1,82 @@
+bin/gnome-system-monitor
+share/gnome/applications/gnome-system-monitor.desktop
+share/gnome/help/gnome-system-monitor/C/figures/addColumn.png
+share/gnome/help/gnome-system-monitor/C/figures/changePriority.png
+share/gnome/help/gnome-system-monitor/C/figures/colorPanel.png
+share/gnome/help/gnome-system-monitor/C/figures/columnContextMenu.png
+share/gnome/help/gnome-system-monitor/C/figures/gnome-system-monitor_window.png
+share/gnome/help/gnome-system-monitor/C/figures/memoryMaps.png
+share/gnome/help/gnome-system-monitor/C/figures/moreInfo.png
+share/gnome/help/gnome-system-monitor/C/figures/processListing.png
+share/gnome/help/gnome-system-monitor/C/figures/sortButton.png
+share/gnome/help/gnome-system-monitor/C/figures/sortMenu.png
+share/gnome/help/gnome-system-monitor/C/figures/sortMenu2.png
+share/gnome/help/gnome-system-monitor/C/figures/systemMonitor.png
+share/gnome/help/gnome-system-monitor/C/figures/viewMenu.png
+share/gnome/help/gnome-system-monitor/C/gnome-system-monitor.xml
+share/gnome/help/gnome-system-monitor/C/legal.xml
+share/gnome/omf/gnome-system-monitor/gnome-system-monitor-C.omf
+share/gnome/pixmaps/procman.png
+share/locale/am/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/ar/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/az/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/be/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/bg/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/bn/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/bs/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/ca/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/cs/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/cy/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/da/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/de/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/el/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/en_CA/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/en_GB/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/es/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/eu/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/fa/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/fi/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/fr/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/ga/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/gl/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/gu/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/he/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/hi/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/hr/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/hu/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/id/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/it/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/ja/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/ko/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/li/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/lt/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/lv/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/mk/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/ml/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/mn/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/ms/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/nb/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/nl/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/no/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/pa/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/pl/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/pt/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/pt_BR/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/ro/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/ru/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/sk/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/sl/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/sq/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/sr/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/sr@Latn/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/sv/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/ta/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/tr/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/uk/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/vi/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/zh_CN/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/zh_TW/LC_MESSAGES/gnome-system-monitor.mo
+@dirrm share/gnome/omf/gnome-system-monitor
+@dirrm share/gnome/help/gnome-system-monitor/C/figures
+@dirrm share/gnome/help/gnome-system-monitor/C
+@dirrm share/gnome/help/gnome-system-monitor