summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sysutils/gnome-system-tools/Makefile42
-rw-r--r--sysutils/gnome-system-tools/distinfo3
-rw-r--r--sysutils/gnome-system-tools/files/patch-configure11
-rw-r--r--sysutils/gnome-system-tools/files/patch-src_common_gst-auth.c110
-rw-r--r--sysutils/gnome-system-tools/files/patch-src_common_gst-tool.c26
-rw-r--r--sysutils/gnome-system-tools/pkg-descr10
-rw-r--r--sysutils/gnome-system-tools/pkg-plist195
-rw-r--r--sysutils/gnomesystemtools/Makefile42
-rw-r--r--sysutils/gnomesystemtools/distinfo3
-rw-r--r--sysutils/gnomesystemtools/files/patch-configure11
-rw-r--r--sysutils/gnomesystemtools/files/patch-src_common_gst-auth.c110
-rw-r--r--sysutils/gnomesystemtools/files/patch-src_common_gst-tool.c26
-rw-r--r--sysutils/gnomesystemtools/pkg-descr10
-rw-r--r--sysutils/gnomesystemtools/pkg-plist195
14 files changed, 794 insertions, 0 deletions
diff --git a/sysutils/gnome-system-tools/Makefile b/sysutils/gnome-system-tools/Makefile
new file mode 100644
index 000000000..3ad857e70
--- /dev/null
+++ b/sysutils/gnome-system-tools/Makefile
@@ -0,0 +1,42 @@
+# New ports collection makefile for: gnomesystemtools
+# Date created: 17 May 2004
+# Whom: Adam Weinberger <adamw@FreeBSD.org>
+#
+# $FreeBSD$
+# $MCom$
+#
+
+PORTNAME= gnomesystemtools
+PORTVERSION= 2.13.0
+CATEGORIES= sysutils gnome
+MASTER_SITES= ${MASTER_SITE_GNOME}
+MASTER_SITE_SUBDIR= sources/gnome-system-tools/2.13
+DISTNAME= gnome-system-tools-${PORTVERSION}
+DIST_SUBDIR= gnome2
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= Tools to configure workstations
+
+BUILD_DEPENDS= ${X11BASE}/share/setup-tool-backends/scripts/xml.pl:${PORTSDIR}/sysutils/system-tools-backends
+RUN_DEPENDS= ${X11BASE}/share/setup-tool-backends/scripts/xml.pl:${PORTSDIR}/sysutils/system-tools-backends
+
+USE_BZIP2= yes
+USE_GMAKE= yes
+USE_X_PREFIX= yes
+GNOME_DESKTOP_VERSION=2
+USE_GNOME= gnomehack gnomeprefix gnometarget intlhack nautilus2
+USE_AUTOTOOLS= libtool:15
+INSTALLS_OMF= yes
+CONFIGURE_ARGS= --enable-services
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+
+GCONF_SCHEMAS= gnome-system-tools.schemas
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 500000
+IGNORE= Uses symbols not present in 4.X
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/sysutils/gnome-system-tools/distinfo b/sysutils/gnome-system-tools/distinfo
new file mode 100644
index 000000000..f96fbcd5d
--- /dev/null
+++ b/sysutils/gnome-system-tools/distinfo
@@ -0,0 +1,3 @@
+MD5 (gnome2/gnome-system-tools-2.13.0.tar.bz2) = d748e0861f9266ad2ad026166e2397e8
+SHA256 (gnome2/gnome-system-tools-2.13.0.tar.bz2) = b5393d037ae4e33c12de69f12ce35551a6d6c4f9913d92825e9072bd26c4a347
+SIZE (gnome2/gnome-system-tools-2.13.0.tar.bz2) = 2090596
diff --git a/sysutils/gnome-system-tools/files/patch-configure b/sysutils/gnome-system-tools/files/patch-configure
new file mode 100644
index 000000000..712bb1def
--- /dev/null
+++ b/sysutils/gnome-system-tools/files/patch-configure
@@ -0,0 +1,11 @@
+--- configure.orig Thu Jan 13 17:15:39 2005
++++ configure Thu Jan 13 17:17:13 2005
+@@ -22990,7 +22990,7 @@
+ GST_CFLAGS="$GST_DEPENDS_CFLAGS $GST_CRACK_LIB_CFLAGS $GST_DEPRECATED_FLAGS"
+
+ GST_TOOL_LIBS="$GST_LIBS -lutil \$(top_builddir)/src/common/libsetuptool.a"
+-GST_TOOL_CFLAGS="$GST_CFLAGS -I\$(top_srcdir)/src/common"
++GST_TOOL_CFLAGS="-I\$(top_srcdir)/src/common $GST_CFLAGS"
+
+ GST_TOOL_CLEANFILES="\$(desktop) \$(desktop).in"
+ GST_TOOL_EXTRA_DIST="\$(toolpixmaps) \$(desktop).in.in"
diff --git a/sysutils/gnome-system-tools/files/patch-src_common_gst-auth.c b/sysutils/gnome-system-tools/files/patch-src_common_gst-auth.c
new file mode 100644
index 000000000..f73b28ae4
--- /dev/null
+++ b/sysutils/gnome-system-tools/files/patch-src_common_gst-auth.c
@@ -0,0 +1,110 @@
+--- src/common/gst-auth.c.orig Mon Aug 8 15:00:01 2005
++++ src/common/gst-auth.c Sat Sep 10 01:47:35 2005
+@@ -55,6 +55,82 @@
+ static int root; /* if we are root, no password is
+ required */
+
++#ifdef __FreeBSD__
++static int
++_forkpty (int *amaster, char *name,
++ struct termios *termp, struct winsize *winp)
++{
++ int master, slave;
++ char *line;
++ pid_t pid;
++
++ master = posix_openpt (O_RDWR);
++ if (master == -1)
++ return (-1);
++
++ if (grantpt (master) == -1)
++ {
++ (void) close (master);
++ return (-1);
++ }
++
++ if (unlockpt (master) == -1)
++ {
++ (void) close (master);
++ return (-1);
++ }
++
++ line = ptsname (master);
++ if (line == NULL)
++ {
++ (void) close (master);
++ return (-1);
++ }
++
++ slave = open (line, O_RDWR);
++ if (slave < 0)
++ {
++ (void) close (master);
++ return (-1);
++ }
++
++ if (amaster)
++ *amaster = master;
++
++ if (name)
++ strcpy (name, line);
++
++ if (termp)
++ (void) tcsetattr(slave, TCSAFLUSH, termp);
++
++ if (winp)
++ (void) ioctl(slave, TIOCSWINSZ, (char *) winp);
++
++ pid = fork ();
++ switch (pid)
++ {
++ case -1:
++ (void) close (slave);
++ (void) close (master);
++ return (-1);
++ case 0:
++ (void) close (master);
++ dup2 (slave, STDIN_FILENO);
++ dup2 (slave, STDOUT_FILENO);
++ dup2 (slave, STDERR_FILENO);
++ return (0);
++ default:
++ (void) close (slave);
++ return (pid);
++ }
++
++ (void) close (master);
++ return (-1);
++}
++#else
++#define _forkpty forkpty
++#endif
++
+ static void
+ gst_auth_display_error_message (GstTool *tool, gchar *primary_text, gchar *secondary_text)
+ {
+@@ -125,7 +201,7 @@ gst_auth_run_term (GstTool *tool, gchar
+ int p[2];
+
+ pipe (p);
+- tool->backend_pid = forkpty (&tool->write_fd, NULL, NULL, NULL);
++ tool->backend_pid = _forkpty (&tool->write_fd, NULL, NULL, NULL);
+
+ if (tool->backend_pid < 0) {
+ gst_auth_display_error_message (tool,
+@@ -142,12 +218,12 @@ gst_auth_run_term (GstTool *tool, gchar
+ unsetenv("LANG");
+ unsetenv("LANGUAGE");
+
+- dup2 (p[1], 1);
+- dup2 (p[1], 2);
++ dup2 (p[1], STDOUT_FILENO);
++ dup2 (p[1], STDERR_FILENO);
+ close (p[0]);
+
+ execv (args[0], args);
+- exit (255);
++ _exit (255);
+ } else {
+ #ifndef __FreeBSD__
+ /* Linux's su works ok with echo disabling */
diff --git a/sysutils/gnome-system-tools/files/patch-src_common_gst-tool.c b/sysutils/gnome-system-tools/files/patch-src_common_gst-tool.c
new file mode 100644
index 000000000..9aaef1503
--- /dev/null
+++ b/sysutils/gnome-system-tools/files/patch-src_common_gst-tool.c
@@ -0,0 +1,26 @@
+--- src/common/gst-tool.c.orig Tue Jun 21 15:07:05 2005
++++ src/common/gst-tool.c Wed Jul 6 01:28:22 2005
+@@ -598,7 +598,14 @@ gst_tool_kill_backend_cb (GstDirectiveEn
+ if (tool->root_access == ROOT_ACCESS_SIMULATED_DISABLED)
+ tool->root_access = ROOT_ACCESS_SIMULATED;
+
++#if 0
++ /*
++ * We do not need to wait for the tool,
++ * as it will get SIGPIPE anyway.
++ * This waitpid causes problems on FreeBSD.
++ */
+ waitpid (tool->backend_pid, NULL, 0);
++#endif
+ }
+ }
+
+@@ -1655,7 +1662,7 @@ poll_backend (GstTool *tool)
+ struct pollfd fd;
+
+ fd.fd = tool->read_fd;
+- fd.events = POLLIN || POLLPRI;
++ fd.events = POLLIN | POLLPRI;
+
+ while (poll (&fd, 1, 100) <= 0) {
+ while (gtk_events_pending ())
diff --git a/sysutils/gnome-system-tools/pkg-descr b/sysutils/gnome-system-tools/pkg-descr
new file mode 100644
index 000000000..b0b69e539
--- /dev/null
+++ b/sysutils/gnome-system-tools/pkg-descr
@@ -0,0 +1,10 @@
+Various tools to assist in administration and configuration of a workstation.
+Included are tools to:
+
+ * Administer user and group accounts
+ * Change the date, time, and time zone
+ * Set up and configure network interfaces
+ * Modify bootloader settings
+ * Start, stop, and modify system services
+
+WWW: http://www.gnome.org/projects/gst/
diff --git a/sysutils/gnome-system-tools/pkg-plist b/sysutils/gnome-system-tools/pkg-plist
new file mode 100644
index 000000000..bfbac3c97
--- /dev/null
+++ b/sysutils/gnome-system-tools/pkg-plist
@@ -0,0 +1,195 @@
+bin/network-admin
+bin/services-admin
+bin/shares-admin
+bin/time-admin
+bin/users-admin
+lib/nautilus/extensions-1.0/libnautilus-gst-shares.so
+libdata/pkgconfig/gnome-system-tools.pc
+share/gnome-system-tools/interfaces/boot.glade
+share/gnome-system-tools/interfaces/common.glade
+share/gnome-system-tools/interfaces/disks.glade
+share/gnome-system-tools/interfaces/network.glade
+share/gnome-system-tools/interfaces/services.glade
+share/gnome-system-tools/interfaces/shares.glade
+share/gnome-system-tools/interfaces/time.glade
+share/gnome-system-tools/interfaces/users.glade
+share/gnome-system-tools/pixmaps/16_ethernet.xpm
+share/gnome-system-tools/pixmaps/16_loopback.xpm
+share/gnome-system-tools/pixmaps/16_plip.xpm
+share/gnome-system-tools/pixmaps/16_ppp.xpm
+share/gnome-system-tools/pixmaps/archlinux.png
+share/gnome-system-tools/pixmaps/black_panther.png
+share/gnome-system-tools/pixmaps/boot.png
+share/gnome-system-tools/pixmaps/computer.png
+share/gnome-system-tools/pixmaps/conectiva.png
+share/gnome-system-tools/pixmaps/connection-ethernet.png
+share/gnome-system-tools/pixmaps/connection-modem.png
+share/gnome-system-tools/pixmaps/debian.png
+share/gnome-system-tools/pixmaps/disks.png
+share/gnome-system-tools/pixmaps/fedora.png
+share/gnome-system-tools/pixmaps/freebsd.png
+share/gnome-system-tools/pixmaps/gentoo.png
+share/gnome-system-tools/pixmaps/gnome-dev-cdrom-data.png
+share/gnome-system-tools/pixmaps/gnome-dev-cdrom-mixed.png
+share/gnome-system-tools/pixmaps/irda-16.png
+share/gnome-system-tools/pixmaps/irda-48.png
+share/gnome-system-tools/pixmaps/mandrake.png
+share/gnome-system-tools/pixmaps/nameresolution.png
+share/gnome-system-tools/pixmaps/nameresolution_alias.png
+share/gnome-system-tools/pixmaps/nameresolution_id.png
+share/gnome-system-tools/pixmaps/network.png
+share/gnome-system-tools/pixmaps/openna.png
+share/gnome-system-tools/pixmaps/pld.png
+share/gnome-system-tools/pixmaps/plip-48.png
+share/gnome-system-tools/pixmaps/ppp.png
+share/gnome-system-tools/pixmaps/reading.png
+share/gnome-system-tools/pixmaps/redhat.png
+share/gnome-system-tools/pixmaps/server.png
+share/gnome-system-tools/pixmaps/services.png
+share/gnome-system-tools/pixmaps/settings.png
+share/gnome-system-tools/pixmaps/shares.png
+share/gnome-system-tools/pixmaps/slackware.png
+share/gnome-system-tools/pixmaps/specifix.png
+share/gnome-system-tools/pixmaps/suse.png
+share/gnome-system-tools/pixmaps/talk-userlist.png
+share/gnome-system-tools/pixmaps/time.png
+share/gnome-system-tools/pixmaps/timezone.png
+share/gnome-system-tools/pixmaps/turbolinux.png
+share/gnome-system-tools/pixmaps/unsupported-distro.png
+share/gnome-system-tools/pixmaps/users-groups.png
+share/gnome-system-tools/pixmaps/users.png
+share/gnome-system-tools/pixmaps/vidalinux.png
+share/gnome-system-tools/pixmaps/vine.png
+share/gnome-system-tools/pixmaps/wavelan-16.png
+share/gnome-system-tools/pixmaps/wavelan-48.png
+share/gnome-system-tools/pixmaps/world_map-960.png
+share/gnome/applications/network.desktop
+share/gnome/applications/services.desktop
+share/gnome/applications/shares.desktop
+share/gnome/applications/time.desktop
+share/gnome/applications/users.desktop
+share/gnome/help/boot-admin/C/boot-admin.xml
+share/gnome/help/boot-admin/C/figures/boot-tool.png
+share/gnome/help/boot-admin/C/legal.xml
+share/gnome/help/network-admin/C/figures/network-tool.png
+share/gnome/help/network-admin/C/legal.xml
+share/gnome/help/network-admin/C/network-admin.xml
+share/gnome/help/services-admin/C/figures/service-properties.png
+share/gnome/help/services-admin/C/figures/services-tool.png
+share/gnome/help/services-admin/C/legal.xml
+share/gnome/help/services-admin/C/services-admin.xml
+share/gnome/help/services-admin/nl/figures/service-properties.png
+share/gnome/help/services-admin/nl/figures/services-tool.png
+share/gnome/help/services-admin/nl/legal.xml
+share/gnome/help/services-admin/nl/services-admin.xml
+share/gnome/help/time-admin/C/figures/time-map.png
+share/gnome/help/time-admin/C/figures/time-servers.png
+share/gnome/help/time-admin/C/figures/time-tool.png
+share/gnome/help/time-admin/C/legal.xml
+share/gnome/help/time-admin/C/time-admin.xml
+share/gnome/help/time-admin/nl/figures/time-map.png
+share/gnome/help/time-admin/nl/figures/time-servers.png
+share/gnome/help/time-admin/nl/figures/time-tool.png
+share/gnome/help/time-admin/nl/legal.xml
+share/gnome/help/time-admin/nl/time-admin.xml
+share/gnome/help/users-admin/C/figures/users-tool.png
+share/gnome/help/users-admin/C/legal.xml
+share/gnome/help/users-admin/C/users-admin.xml
+share/gnome/omf/boot-admin/boot-admin-C.omf
+share/gnome/omf/gnome-system-tools/services-admin-nl.omf
+share/gnome/omf/gnome-system-tools/time-admin-nl.omf
+share/gnome/omf/network-admin/network-admin-C.omf
+share/gnome/omf/services-admin/services-admin-C.omf
+share/gnome/omf/time-admin/time-admin-C.omf
+share/gnome/omf/users-admin/users-admin-C.omf
+share/locale/am/LC_MESSAGES/gnome-system-tools.mo
+share/locale/ar/LC_MESSAGES/gnome-system-tools.mo
+share/locale/az/LC_MESSAGES/gnome-system-tools.mo
+share/locale/bg/LC_MESSAGES/gnome-system-tools.mo
+share/locale/bn/LC_MESSAGES/gnome-system-tools.mo
+share/locale/ca/LC_MESSAGES/gnome-system-tools.mo
+share/locale/cs/LC_MESSAGES/gnome-system-tools.mo
+share/locale/da/LC_MESSAGES/gnome-system-tools.mo
+share/locale/de/LC_MESSAGES/gnome-system-tools.mo
+share/locale/el/LC_MESSAGES/gnome-system-tools.mo
+share/locale/en_CA/LC_MESSAGES/gnome-system-tools.mo
+share/locale/en_GB/LC_MESSAGES/gnome-system-tools.mo
+share/locale/es/LC_MESSAGES/gnome-system-tools.mo
+share/locale/et/LC_MESSAGES/gnome-system-tools.mo
+share/locale/eu/LC_MESSAGES/gnome-system-tools.mo
+share/locale/fi/LC_MESSAGES/gnome-system-tools.mo
+share/locale/fr/LC_MESSAGES/gnome-system-tools.mo
+share/locale/ga/LC_MESSAGES/gnome-system-tools.mo
+share/locale/gl/LC_MESSAGES/gnome-system-tools.mo
+share/locale/gu/LC_MESSAGES/gnome-system-tools.mo
+share/locale/he/LC_MESSAGES/gnome-system-tools.mo
+share/locale/hi/LC_MESSAGES/gnome-system-tools.mo
+share/locale/hr/LC_MESSAGES/gnome-system-tools.mo
+share/locale/hu/LC_MESSAGES/gnome-system-tools.mo
+share/locale/id/LC_MESSAGES/gnome-system-tools.mo
+share/locale/it/LC_MESSAGES/gnome-system-tools.mo
+share/locale/ja/LC_MESSAGES/gnome-system-tools.mo
+share/locale/ko/LC_MESSAGES/gnome-system-tools.mo
+share/locale/ku/LC_MESSAGES/gnome-system-tools.mo
+share/locale/lt/LC_MESSAGES/gnome-system-tools.mo
+share/locale/lv/LC_MESSAGES/gnome-system-tools.mo
+share/locale/mk/LC_MESSAGES/gnome-system-tools.mo
+share/locale/ml/LC_MESSAGES/gnome-system-tools.mo
+share/locale/mn/LC_MESSAGES/gnome-system-tools.mo
+share/locale/ms/LC_MESSAGES/gnome-system-tools.mo
+share/locale/nb/LC_MESSAGES/gnome-system-tools.mo
+share/locale/ne/LC_MESSAGES/gnome-system-tools.mo
+share/locale/nl/LC_MESSAGES/gnome-system-tools.mo
+share/locale/nn/LC_MESSAGES/gnome-system-tools.mo
+share/locale/no/LC_MESSAGES/gnome-system-tools.mo
+share/locale/pa/LC_MESSAGES/gnome-system-tools.mo
+share/locale/pl/LC_MESSAGES/gnome-system-tools.mo
+share/locale/pt/LC_MESSAGES/gnome-system-tools.mo
+share/locale/pt_BR/LC_MESSAGES/gnome-system-tools.mo
+share/locale/ro/LC_MESSAGES/gnome-system-tools.mo
+share/locale/ru/LC_MESSAGES/gnome-system-tools.mo
+share/locale/rw/LC_MESSAGES/gnome-system-tools.mo
+share/locale/sk/LC_MESSAGES/gnome-system-tools.mo
+share/locale/sq/LC_MESSAGES/gnome-system-tools.mo
+share/locale/sr/LC_MESSAGES/gnome-system-tools.mo
+share/locale/sr@Latn/LC_MESSAGES/gnome-system-tools.mo
+share/locale/sv/LC_MESSAGES/gnome-system-tools.mo
+share/locale/ta/LC_MESSAGES/gnome-system-tools.mo
+share/locale/th/LC_MESSAGES/gnome-system-tools.mo
+share/locale/tr/LC_MESSAGES/gnome-system-tools.mo
+share/locale/uk/LC_MESSAGES/gnome-system-tools.mo
+share/locale/vi/LC_MESSAGES/gnome-system-tools.mo
+share/locale/wa/LC_MESSAGES/gnome-system-tools.mo
+share/locale/xh/LC_MESSAGES/gnome-system-tools.mo
+share/locale/zh_CN/LC_MESSAGES/gnome-system-tools.mo
+share/locale/zh_TW/LC_MESSAGES/gnome-system-tools.mo
+@unexec rmdir %D/share/locale/ku/LC_MESSAGES 2> /dev/null || true
+@unexec rmdir %D/share/locale/ku 2> /dev/null || true
+@dirrm share/gnome/omf/users-admin
+@dirrm share/gnome/omf/time-admin
+@dirrm share/gnome/omf/services-admin
+@dirrm share/gnome/omf/network-admin
+@dirrm share/gnome/omf/gnome-system-tools
+@dirrm share/gnome/omf/boot-admin
+@dirrm share/gnome/help/users-admin/C/figures
+@dirrm share/gnome/help/users-admin/C
+@dirrm share/gnome/help/users-admin
+@dirrm share/gnome/help/time-admin/nl/figures
+@dirrm share/gnome/help/time-admin/nl
+@dirrm share/gnome/help/time-admin/C/figures
+@dirrm share/gnome/help/time-admin/C
+@dirrm share/gnome/help/time-admin
+@dirrm share/gnome/help/services-admin/nl/figures
+@dirrm share/gnome/help/services-admin/nl
+@dirrm share/gnome/help/services-admin/C/figures
+@dirrm share/gnome/help/services-admin/C
+@dirrm share/gnome/help/services-admin
+@dirrm share/gnome/help/network-admin/C/figures
+@dirrm share/gnome/help/network-admin/C
+@dirrm share/gnome/help/network-admin
+@dirrm share/gnome/help/boot-admin/C/figures
+@dirrm share/gnome/help/boot-admin/C
+@dirrm share/gnome/help/boot-admin
+@dirrm share/gnome-system-tools/pixmaps
+@dirrm share/gnome-system-tools/interfaces
+@dirrm share/gnome-system-tools
diff --git a/sysutils/gnomesystemtools/Makefile b/sysutils/gnomesystemtools/Makefile
new file mode 100644
index 000000000..3ad857e70
--- /dev/null
+++ b/sysutils/gnomesystemtools/Makefile
@@ -0,0 +1,42 @@
+# New ports collection makefile for: gnomesystemtools
+# Date created: 17 May 2004
+# Whom: Adam Weinberger <adamw@FreeBSD.org>
+#
+# $FreeBSD$
+# $MCom$
+#
+
+PORTNAME= gnomesystemtools
+PORTVERSION= 2.13.0
+CATEGORIES= sysutils gnome
+MASTER_SITES= ${MASTER_SITE_GNOME}
+MASTER_SITE_SUBDIR= sources/gnome-system-tools/2.13
+DISTNAME= gnome-system-tools-${PORTVERSION}
+DIST_SUBDIR= gnome2
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= Tools to configure workstations
+
+BUILD_DEPENDS= ${X11BASE}/share/setup-tool-backends/scripts/xml.pl:${PORTSDIR}/sysutils/system-tools-backends
+RUN_DEPENDS= ${X11BASE}/share/setup-tool-backends/scripts/xml.pl:${PORTSDIR}/sysutils/system-tools-backends
+
+USE_BZIP2= yes
+USE_GMAKE= yes
+USE_X_PREFIX= yes
+GNOME_DESKTOP_VERSION=2
+USE_GNOME= gnomehack gnomeprefix gnometarget intlhack nautilus2
+USE_AUTOTOOLS= libtool:15
+INSTALLS_OMF= yes
+CONFIGURE_ARGS= --enable-services
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+
+GCONF_SCHEMAS= gnome-system-tools.schemas
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 500000
+IGNORE= Uses symbols not present in 4.X
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/sysutils/gnomesystemtools/distinfo b/sysutils/gnomesystemtools/distinfo
new file mode 100644
index 000000000..f96fbcd5d
--- /dev/null
+++ b/sysutils/gnomesystemtools/distinfo
@@ -0,0 +1,3 @@
+MD5 (gnome2/gnome-system-tools-2.13.0.tar.bz2) = d748e0861f9266ad2ad026166e2397e8
+SHA256 (gnome2/gnome-system-tools-2.13.0.tar.bz2) = b5393d037ae4e33c12de69f12ce35551a6d6c4f9913d92825e9072bd26c4a347
+SIZE (gnome2/gnome-system-tools-2.13.0.tar.bz2) = 2090596
diff --git a/sysutils/gnomesystemtools/files/patch-configure b/sysutils/gnomesystemtools/files/patch-configure
new file mode 100644
index 000000000..712bb1def
--- /dev/null
+++ b/sysutils/gnomesystemtools/files/patch-configure
@@ -0,0 +1,11 @@
+--- configure.orig Thu Jan 13 17:15:39 2005
++++ configure Thu Jan 13 17:17:13 2005
+@@ -22990,7 +22990,7 @@
+ GST_CFLAGS="$GST_DEPENDS_CFLAGS $GST_CRACK_LIB_CFLAGS $GST_DEPRECATED_FLAGS"
+
+ GST_TOOL_LIBS="$GST_LIBS -lutil \$(top_builddir)/src/common/libsetuptool.a"
+-GST_TOOL_CFLAGS="$GST_CFLAGS -I\$(top_srcdir)/src/common"
++GST_TOOL_CFLAGS="-I\$(top_srcdir)/src/common $GST_CFLAGS"
+
+ GST_TOOL_CLEANFILES="\$(desktop) \$(desktop).in"
+ GST_TOOL_EXTRA_DIST="\$(toolpixmaps) \$(desktop).in.in"
diff --git a/sysutils/gnomesystemtools/files/patch-src_common_gst-auth.c b/sysutils/gnomesystemtools/files/patch-src_common_gst-auth.c
new file mode 100644
index 000000000..f73b28ae4
--- /dev/null
+++ b/sysutils/gnomesystemtools/files/patch-src_common_gst-auth.c
@@ -0,0 +1,110 @@
+--- src/common/gst-auth.c.orig Mon Aug 8 15:00:01 2005
++++ src/common/gst-auth.c Sat Sep 10 01:47:35 2005
+@@ -55,6 +55,82 @@
+ static int root; /* if we are root, no password is
+ required */
+
++#ifdef __FreeBSD__
++static int
++_forkpty (int *amaster, char *name,
++ struct termios *termp, struct winsize *winp)
++{
++ int master, slave;
++ char *line;
++ pid_t pid;
++
++ master = posix_openpt (O_RDWR);
++ if (master == -1)
++ return (-1);
++
++ if (grantpt (master) == -1)
++ {
++ (void) close (master);
++ return (-1);
++ }
++
++ if (unlockpt (master) == -1)
++ {
++ (void) close (master);
++ return (-1);
++ }
++
++ line = ptsname (master);
++ if (line == NULL)
++ {
++ (void) close (master);
++ return (-1);
++ }
++
++ slave = open (line, O_RDWR);
++ if (slave < 0)
++ {
++ (void) close (master);
++ return (-1);
++ }
++
++ if (amaster)
++ *amaster = master;
++
++ if (name)
++ strcpy (name, line);
++
++ if (termp)
++ (void) tcsetattr(slave, TCSAFLUSH, termp);
++
++ if (winp)
++ (void) ioctl(slave, TIOCSWINSZ, (char *) winp);
++
++ pid = fork ();
++ switch (pid)
++ {
++ case -1:
++ (void) close (slave);
++ (void) close (master);
++ return (-1);
++ case 0:
++ (void) close (master);
++ dup2 (slave, STDIN_FILENO);
++ dup2 (slave, STDOUT_FILENO);
++ dup2 (slave, STDERR_FILENO);
++ return (0);
++ default:
++ (void) close (slave);
++ return (pid);
++ }
++
++ (void) close (master);
++ return (-1);
++}
++#else
++#define _forkpty forkpty
++#endif
++
+ static void
+ gst_auth_display_error_message (GstTool *tool, gchar *primary_text, gchar *secondary_text)
+ {
+@@ -125,7 +201,7 @@ gst_auth_run_term (GstTool *tool, gchar
+ int p[2];
+
+ pipe (p);
+- tool->backend_pid = forkpty (&tool->write_fd, NULL, NULL, NULL);
++ tool->backend_pid = _forkpty (&tool->write_fd, NULL, NULL, NULL);
+
+ if (tool->backend_pid < 0) {
+ gst_auth_display_error_message (tool,
+@@ -142,12 +218,12 @@ gst_auth_run_term (GstTool *tool, gchar
+ unsetenv("LANG");
+ unsetenv("LANGUAGE");
+
+- dup2 (p[1], 1);
+- dup2 (p[1], 2);
++ dup2 (p[1], STDOUT_FILENO);
++ dup2 (p[1], STDERR_FILENO);
+ close (p[0]);
+
+ execv (args[0], args);
+- exit (255);
++ _exit (255);
+ } else {
+ #ifndef __FreeBSD__
+ /* Linux's su works ok with echo disabling */
diff --git a/sysutils/gnomesystemtools/files/patch-src_common_gst-tool.c b/sysutils/gnomesystemtools/files/patch-src_common_gst-tool.c
new file mode 100644
index 000000000..9aaef1503
--- /dev/null
+++ b/sysutils/gnomesystemtools/files/patch-src_common_gst-tool.c
@@ -0,0 +1,26 @@
+--- src/common/gst-tool.c.orig Tue Jun 21 15:07:05 2005
++++ src/common/gst-tool.c Wed Jul 6 01:28:22 2005
+@@ -598,7 +598,14 @@ gst_tool_kill_backend_cb (GstDirectiveEn
+ if (tool->root_access == ROOT_ACCESS_SIMULATED_DISABLED)
+ tool->root_access = ROOT_ACCESS_SIMULATED;
+
++#if 0
++ /*
++ * We do not need to wait for the tool,
++ * as it will get SIGPIPE anyway.
++ * This waitpid causes problems on FreeBSD.
++ */
+ waitpid (tool->backend_pid, NULL, 0);
++#endif
+ }
+ }
+
+@@ -1655,7 +1662,7 @@ poll_backend (GstTool *tool)
+ struct pollfd fd;
+
+ fd.fd = tool->read_fd;
+- fd.events = POLLIN || POLLPRI;
++ fd.events = POLLIN | POLLPRI;
+
+ while (poll (&fd, 1, 100) <= 0) {
+ while (gtk_events_pending ())
diff --git a/sysutils/gnomesystemtools/pkg-descr b/sysutils/gnomesystemtools/pkg-descr
new file mode 100644
index 000000000..b0b69e539
--- /dev/null
+++ b/sysutils/gnomesystemtools/pkg-descr
@@ -0,0 +1,10 @@
+Various tools to assist in administration and configuration of a workstation.
+Included are tools to:
+
+ * Administer user and group accounts
+ * Change the date, time, and time zone
+ * Set up and configure network interfaces
+ * Modify bootloader settings
+ * Start, stop, and modify system services
+
+WWW: http://www.gnome.org/projects/gst/
diff --git a/sysutils/gnomesystemtools/pkg-plist b/sysutils/gnomesystemtools/pkg-plist
new file mode 100644
index 000000000..bfbac3c97
--- /dev/null
+++ b/sysutils/gnomesystemtools/pkg-plist
@@ -0,0 +1,195 @@
+bin/network-admin
+bin/services-admin
+bin/shares-admin
+bin/time-admin
+bin/users-admin
+lib/nautilus/extensions-1.0/libnautilus-gst-shares.so
+libdata/pkgconfig/gnome-system-tools.pc
+share/gnome-system-tools/interfaces/boot.glade
+share/gnome-system-tools/interfaces/common.glade
+share/gnome-system-tools/interfaces/disks.glade
+share/gnome-system-tools/interfaces/network.glade
+share/gnome-system-tools/interfaces/services.glade
+share/gnome-system-tools/interfaces/shares.glade
+share/gnome-system-tools/interfaces/time.glade
+share/gnome-system-tools/interfaces/users.glade
+share/gnome-system-tools/pixmaps/16_ethernet.xpm
+share/gnome-system-tools/pixmaps/16_loopback.xpm
+share/gnome-system-tools/pixmaps/16_plip.xpm
+share/gnome-system-tools/pixmaps/16_ppp.xpm
+share/gnome-system-tools/pixmaps/archlinux.png
+share/gnome-system-tools/pixmaps/black_panther.png
+share/gnome-system-tools/pixmaps/boot.png
+share/gnome-system-tools/pixmaps/computer.png
+share/gnome-system-tools/pixmaps/conectiva.png
+share/gnome-system-tools/pixmaps/connection-ethernet.png
+share/gnome-system-tools/pixmaps/connection-modem.png
+share/gnome-system-tools/pixmaps/debian.png
+share/gnome-system-tools/pixmaps/disks.png
+share/gnome-system-tools/pixmaps/fedora.png
+share/gnome-system-tools/pixmaps/freebsd.png
+share/gnome-system-tools/pixmaps/gentoo.png
+share/gnome-system-tools/pixmaps/gnome-dev-cdrom-data.png
+share/gnome-system-tools/pixmaps/gnome-dev-cdrom-mixed.png
+share/gnome-system-tools/pixmaps/irda-16.png
+share/gnome-system-tools/pixmaps/irda-48.png
+share/gnome-system-tools/pixmaps/mandrake.png
+share/gnome-system-tools/pixmaps/nameresolution.png
+share/gnome-system-tools/pixmaps/nameresolution_alias.png
+share/gnome-system-tools/pixmaps/nameresolution_id.png
+share/gnome-system-tools/pixmaps/network.png
+share/gnome-system-tools/pixmaps/openna.png
+share/gnome-system-tools/pixmaps/pld.png
+share/gnome-system-tools/pixmaps/plip-48.png
+share/gnome-system-tools/pixmaps/ppp.png
+share/gnome-system-tools/pixmaps/reading.png
+share/gnome-system-tools/pixmaps/redhat.png
+share/gnome-system-tools/pixmaps/server.png
+share/gnome-system-tools/pixmaps/services.png
+share/gnome-system-tools/pixmaps/settings.png
+share/gnome-system-tools/pixmaps/shares.png
+share/gnome-system-tools/pixmaps/slackware.png
+share/gnome-system-tools/pixmaps/specifix.png
+share/gnome-system-tools/pixmaps/suse.png
+share/gnome-system-tools/pixmaps/talk-userlist.png
+share/gnome-system-tools/pixmaps/time.png
+share/gnome-system-tools/pixmaps/timezone.png
+share/gnome-system-tools/pixmaps/turbolinux.png
+share/gnome-system-tools/pixmaps/unsupported-distro.png
+share/gnome-system-tools/pixmaps/users-groups.png
+share/gnome-system-tools/pixmaps/users.png
+share/gnome-system-tools/pixmaps/vidalinux.png
+share/gnome-system-tools/pixmaps/vine.png
+share/gnome-system-tools/pixmaps/wavelan-16.png
+share/gnome-system-tools/pixmaps/wavelan-48.png
+share/gnome-system-tools/pixmaps/world_map-960.png
+share/gnome/applications/network.desktop
+share/gnome/applications/services.desktop
+share/gnome/applications/shares.desktop
+share/gnome/applications/time.desktop
+share/gnome/applications/users.desktop
+share/gnome/help/boot-admin/C/boot-admin.xml
+share/gnome/help/boot-admin/C/figures/boot-tool.png
+share/gnome/help/boot-admin/C/legal.xml
+share/gnome/help/network-admin/C/figures/network-tool.png
+share/gnome/help/network-admin/C/legal.xml
+share/gnome/help/network-admin/C/network-admin.xml
+share/gnome/help/services-admin/C/figures/service-properties.png
+share/gnome/help/services-admin/C/figures/services-tool.png
+share/gnome/help/services-admin/C/legal.xml
+share/gnome/help/services-admin/C/services-admin.xml
+share/gnome/help/services-admin/nl/figures/service-properties.png
+share/gnome/help/services-admin/nl/figures/services-tool.png
+share/gnome/help/services-admin/nl/legal.xml
+share/gnome/help/services-admin/nl/services-admin.xml
+share/gnome/help/time-admin/C/figures/time-map.png
+share/gnome/help/time-admin/C/figures/time-servers.png
+share/gnome/help/time-admin/C/figures/time-tool.png
+share/gnome/help/time-admin/C/legal.xml
+share/gnome/help/time-admin/C/time-admin.xml
+share/gnome/help/time-admin/nl/figures/time-map.png
+share/gnome/help/time-admin/nl/figures/time-servers.png
+share/gnome/help/time-admin/nl/figures/time-tool.png
+share/gnome/help/time-admin/nl/legal.xml
+share/gnome/help/time-admin/nl/time-admin.xml
+share/gnome/help/users-admin/C/figures/users-tool.png
+share/gnome/help/users-admin/C/legal.xml
+share/gnome/help/users-admin/C/users-admin.xml
+share/gnome/omf/boot-admin/boot-admin-C.omf
+share/gnome/omf/gnome-system-tools/services-admin-nl.omf
+share/gnome/omf/gnome-system-tools/time-admin-nl.omf
+share/gnome/omf/network-admin/network-admin-C.omf
+share/gnome/omf/services-admin/services-admin-C.omf
+share/gnome/omf/time-admin/time-admin-C.omf
+share/gnome/omf/users-admin/users-admin-C.omf
+share/locale/am/LC_MESSAGES/gnome-system-tools.mo
+share/locale/ar/LC_MESSAGES/gnome-system-tools.mo
+share/locale/az/LC_MESSAGES/gnome-system-tools.mo
+share/locale/bg/LC_MESSAGES/gnome-system-tools.mo
+share/locale/bn/LC_MESSAGES/gnome-system-tools.mo
+share/locale/ca/LC_MESSAGES/gnome-system-tools.mo
+share/locale/cs/LC_MESSAGES/gnome-system-tools.mo
+share/locale/da/LC_MESSAGES/gnome-system-tools.mo
+share/locale/de/LC_MESSAGES/gnome-system-tools.mo
+share/locale/el/LC_MESSAGES/gnome-system-tools.mo
+share/locale/en_CA/LC_MESSAGES/gnome-system-tools.mo
+share/locale/en_GB/LC_MESSAGES/gnome-system-tools.mo
+share/locale/es/LC_MESSAGES/gnome-system-tools.mo
+share/locale/et/LC_MESSAGES/gnome-system-tools.mo
+share/locale/eu/LC_MESSAGES/gnome-system-tools.mo
+share/locale/fi/LC_MESSAGES/gnome-system-tools.mo
+share/locale/fr/LC_MESSAGES/gnome-system-tools.mo
+share/locale/ga/LC_MESSAGES/gnome-system-tools.mo
+share/locale/gl/LC_MESSAGES/gnome-system-tools.mo
+share/locale/gu/LC_MESSAGES/gnome-system-tools.mo
+share/locale/he/LC_MESSAGES/gnome-system-tools.mo
+share/locale/hi/LC_MESSAGES/gnome-system-tools.mo
+share/locale/hr/LC_MESSAGES/gnome-system-tools.mo
+share/locale/hu/LC_MESSAGES/gnome-system-tools.mo
+share/locale/id/LC_MESSAGES/gnome-system-tools.mo
+share/locale/it/LC_MESSAGES/gnome-system-tools.mo
+share/locale/ja/LC_MESSAGES/gnome-system-tools.mo
+share/locale/ko/LC_MESSAGES/gnome-system-tools.mo
+share/locale/ku/LC_MESSAGES/gnome-system-tools.mo
+share/locale/lt/LC_MESSAGES/gnome-system-tools.mo
+share/locale/lv/LC_MESSAGES/gnome-system-tools.mo
+share/locale/mk/LC_MESSAGES/gnome-system-tools.mo
+share/locale/ml/LC_MESSAGES/gnome-system-tools.mo
+share/locale/mn/LC_MESSAGES/gnome-system-tools.mo
+share/locale/ms/LC_MESSAGES/gnome-system-tools.mo
+share/locale/nb/LC_MESSAGES/gnome-system-tools.mo
+share/locale/ne/LC_MESSAGES/gnome-system-tools.mo
+share/locale/nl/LC_MESSAGES/gnome-system-tools.mo
+share/locale/nn/LC_MESSAGES/gnome-system-tools.mo
+share/locale/no/LC_MESSAGES/gnome-system-tools.mo
+share/locale/pa/LC_MESSAGES/gnome-system-tools.mo
+share/locale/pl/LC_MESSAGES/gnome-system-tools.mo
+share/locale/pt/LC_MESSAGES/gnome-system-tools.mo
+share/locale/pt_BR/LC_MESSAGES/gnome-system-tools.mo
+share/locale/ro/LC_MESSAGES/gnome-system-tools.mo
+share/locale/ru/LC_MESSAGES/gnome-system-tools.mo
+share/locale/rw/LC_MESSAGES/gnome-system-tools.mo
+share/locale/sk/LC_MESSAGES/gnome-system-tools.mo
+share/locale/sq/LC_MESSAGES/gnome-system-tools.mo
+share/locale/sr/LC_MESSAGES/gnome-system-tools.mo
+share/locale/sr@Latn/LC_MESSAGES/gnome-system-tools.mo
+share/locale/sv/LC_MESSAGES/gnome-system-tools.mo
+share/locale/ta/LC_MESSAGES/gnome-system-tools.mo
+share/locale/th/LC_MESSAGES/gnome-system-tools.mo
+share/locale/tr/LC_MESSAGES/gnome-system-tools.mo
+share/locale/uk/LC_MESSAGES/gnome-system-tools.mo
+share/locale/vi/LC_MESSAGES/gnome-system-tools.mo
+share/locale/wa/LC_MESSAGES/gnome-system-tools.mo
+share/locale/xh/LC_MESSAGES/gnome-system-tools.mo
+share/locale/zh_CN/LC_MESSAGES/gnome-system-tools.mo
+share/locale/zh_TW/LC_MESSAGES/gnome-system-tools.mo
+@unexec rmdir %D/share/locale/ku/LC_MESSAGES 2> /dev/null || true
+@unexec rmdir %D/share/locale/ku 2> /dev/null || true
+@dirrm share/gnome/omf/users-admin
+@dirrm share/gnome/omf/time-admin
+@dirrm share/gnome/omf/services-admin
+@dirrm share/gnome/omf/network-admin
+@dirrm share/gnome/omf/gnome-system-tools
+@dirrm share/gnome/omf/boot-admin
+@dirrm share/gnome/help/users-admin/C/figures
+@dirrm share/gnome/help/users-admin/C
+@dirrm share/gnome/help/users-admin
+@dirrm share/gnome/help/time-admin/nl/figures
+@dirrm share/gnome/help/time-admin/nl
+@dirrm share/gnome/help/time-admin/C/figures
+@dirrm share/gnome/help/time-admin/C
+@dirrm share/gnome/help/time-admin
+@dirrm share/gnome/help/services-admin/nl/figures
+@dirrm share/gnome/help/services-admin/nl
+@dirrm share/gnome/help/services-admin/C/figures
+@dirrm share/gnome/help/services-admin/C
+@dirrm share/gnome/help/services-admin
+@dirrm share/gnome/help/network-admin/C/figures
+@dirrm share/gnome/help/network-admin/C
+@dirrm share/gnome/help/network-admin
+@dirrm share/gnome/help/boot-admin/C/figures
+@dirrm share/gnome/help/boot-admin/C
+@dirrm share/gnome/help/boot-admin
+@dirrm share/gnome-system-tools/pixmaps
+@dirrm share/gnome-system-tools/interfaces
+@dirrm share/gnome-system-tools