diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-07-27 08:40:38 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-07-27 08:40:38 +0800 |
commit | b184511825c4aff876fe0fa2b9542ea120bd4b23 (patch) | |
tree | 65adca2a39a1eaf8db3a38741efabd7006cde950 | |
parent | ca103a94cf939627dc2968e65ee86eebd9b37ff1 (diff) | |
download | marcuscom-ports-b184511825c4aff876fe0fa2b9542ea120bd4b23.tar marcuscom-ports-b184511825c4aff876fe0fa2b9542ea120bd4b23.tar.gz marcuscom-ports-b184511825c4aff876fe0fa2b9542ea120bd4b23.tar.bz2 marcuscom-ports-b184511825c4aff876fe0fa2b9542ea120bd4b23.tar.lz marcuscom-ports-b184511825c4aff876fe0fa2b9542ea120bd4b23.tar.xz marcuscom-ports-b184511825c4aff876fe0fa2b9542ea120bd4b23.tar.zst marcuscom-ports-b184511825c4aff876fe0fa2b9542ea120bd4b23.zip |
Re-add the GNOME 2.14 version of g-s-t, and update for LOCALBASE.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@6834 df743ca5-7f9a-e211-a948-0013205c9059
21 files changed, 815 insertions, 0 deletions
diff --git a/sysutils/gnome-system-tools/Makefile b/sysutils/gnome-system-tools/Makefile new file mode 100644 index 000000000..8cb6c9f3c --- /dev/null +++ b/sysutils/gnome-system-tools/Makefile @@ -0,0 +1,44 @@ +# New ports collection makefile for: gnomesystemtools +# Date created: 17 May 2004 +# Whom: Adam Weinberger <adamw@FreeBSD.org> +# +# $FreeBSD$ +# $MCom$ +# + +PORTNAME= gnome-system-tools +PORTVERSION= 2.14.0 +PORTREVISION= 1 +CATEGORIES= sysutils gnome +MASTER_SITES= ${MASTER_SITE_GNOME} +MASTER_SITE_SUBDIR= sources/gnome-system-tools/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/} +DISTNAME= gnome-system-tools-${PORTVERSION} +DIST_SUBDIR= gnome2 + +MAINTAINER= gnome@FreeBSD.org +COMMENT= Tools to configure workstations + +BUILD_DEPENDS= ${LOCALBASE}/share/setup-tool-backends/scripts/xml.pl:${PORTSDIR}/sysutils/system-tools-backends +RUN_DEPENDS= ${LOCALBASE}/share/setup-tool-backends/scripts/xml.pl:${PORTSDIR}/sysutils/system-tools-backends + +USE_BZIP2= yes +USE_GMAKE= yes +USE_GETTEXT= yes +USE_XLIB= 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..dea2f0713 --- /dev/null +++ b/sysutils/gnome-system-tools/distinfo @@ -0,0 +1,3 @@ +MD5 (gnome2/gnome-system-tools-2.14.0.tar.bz2) = 3aded3a37f4f5b4962bf253d25cebea1 +SHA256 (gnome2/gnome-system-tools-2.14.0.tar.bz2) = 39f37363001b1cc2f5d2f5d2d7024a7a36e7dd227862b1dd9ce8c3325157ea7c +SIZE (gnome2/gnome-system-tools-2.14.0.tar.bz2) = 2120911 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..7954d30d1 --- /dev/null +++ b/sysutils/gnome-system-tools/pkg-plist @@ -0,0 +1,229 @@ +bin/network-admin +bin/services-admin +bin/shares-admin +bin/time-admin +bin/users-admin +lib/nautilus/extensions-1.0/libnautilus-gst-shares.a +lib/nautilus/extensions-1.0/libnautilus-gst-shares.la +lib/nautilus/extensions-1.0/libnautilus-gst-shares.so +libdata/pkgconfig/gnome-system-tools.pc +%%DATADIR%%/interfaces/boot.glade +%%DATADIR%%/interfaces/common.glade +%%DATADIR%%/interfaces/disks.glade +%%DATADIR%%/interfaces/network.glade +%%DATADIR%%/interfaces/services.glade +%%DATADIR%%/interfaces/shares.glade +%%DATADIR%%/interfaces/time.glade +%%DATADIR%%/interfaces/users.glade +%%DATADIR%%/pixmaps/16_ethernet.xpm +%%DATADIR%%/pixmaps/16_loopback.xpm +%%DATADIR%%/pixmaps/16_plip.xpm +%%DATADIR%%/pixmaps/16_ppp.xpm +%%DATADIR%%/pixmaps/archlinux.png +%%DATADIR%%/pixmaps/black_panther.png +%%DATADIR%%/pixmaps/boot.png +%%DATADIR%%/pixmaps/computer.png +%%DATADIR%%/pixmaps/conectiva.png +%%DATADIR%%/pixmaps/connection-ethernet.png +%%DATADIR%%/pixmaps/connection-modem.png +%%DATADIR%%/pixmaps/debian.png +%%DATADIR%%/pixmaps/disks.png +%%DATADIR%%/pixmaps/fedora.png +%%DATADIR%%/pixmaps/freebsd.png +%%DATADIR%%/pixmaps/gentoo.png +%%DATADIR%%/pixmaps/gnome-dev-cdrom-data.png +%%DATADIR%%/pixmaps/gnome-dev-cdrom-mixed.png +%%DATADIR%%/pixmaps/irda-16.png +%%DATADIR%%/pixmaps/irda-48.png +%%DATADIR%%/pixmaps/mandrake.png +%%DATADIR%%/pixmaps/nameresolution.png +%%DATADIR%%/pixmaps/nameresolution_alias.png +%%DATADIR%%/pixmaps/nameresolution_id.png +%%DATADIR%%/pixmaps/network.png +%%DATADIR%%/pixmaps/openna.png +%%DATADIR%%/pixmaps/pld.png +%%DATADIR%%/pixmaps/plip-48.png +%%DATADIR%%/pixmaps/ppp.png +%%DATADIR%%/pixmaps/reading.png +%%DATADIR%%/pixmaps/redhat.png +%%DATADIR%%/pixmaps/server.png +%%DATADIR%%/pixmaps/services.png +%%DATADIR%%/pixmaps/settings.png +%%DATADIR%%/pixmaps/shares.png +%%DATADIR%%/pixmaps/slackware.png +%%DATADIR%%/pixmaps/specifix.png +%%DATADIR%%/pixmaps/suse.png +%%DATADIR%%/pixmaps/talk-userlist.png +%%DATADIR%%/pixmaps/time.png +%%DATADIR%%/pixmaps/timezone.png +%%DATADIR%%/pixmaps/turbolinux.png +%%DATADIR%%/pixmaps/unsupported-distro.png +%%DATADIR%%/pixmaps/users-groups.png +%%DATADIR%%/pixmaps/users.png +%%DATADIR%%/pixmaps/vidalinux.png +%%DATADIR%%/pixmaps/vine.png +%%DATADIR%%/pixmaps/wavelan-16.png +%%DATADIR%%/pixmaps/wavelan-48.png +%%DATADIR%%/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/boot-admin/es/boot-admin.xml +share/gnome/help/boot-admin/es/figures/boot-tool.png +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/network-admin/es/figures/network-tool.png +share/gnome/help/network-admin/es/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/es/figures/service-properties.png +share/gnome/help/services-admin/es/figures/services-tool.png +share/gnome/help/services-admin/es/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/es/figures/time-map.png +share/gnome/help/time-admin/es/figures/time-servers.png +share/gnome/help/time-admin/es/figures/time-tool.png +share/gnome/help/time-admin/es/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/help/users-admin/es/figures/users-tool.png +share/gnome/help/users-admin/es/users-admin.xml +share/gnome/omf/boot-admin/boot-admin-C.omf +share/gnome/omf/boot-admin/boot-admin-es.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/network-admin/network-admin-es.omf +share/gnome/omf/services-admin/services-admin-C.omf +share/gnome/omf/services-admin/services-admin-es.omf +share/gnome/omf/time-admin/time-admin-C.omf +share/gnome/omf/time-admin/time-admin-es.omf +share/gnome/omf/users-admin/users-admin-C.omf +share/gnome/omf/users-admin/users-admin-es.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/cy/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_HK/LC_MESSAGES/gnome-system-tools.mo +share/locale/zh_TW/LC_MESSAGES/gnome-system-tools.mo +@dirrmtry share/locale/zh_HK/LC_MESSAGES +@dirrmtry share/locale/zh_HK +@dirrmtry share/locale/ku/LC_MESSAGES +@dirrmtry share/locale/ku +@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/es/figures +@dirrm share/gnome/help/users-admin/es +@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/es/figures +@dirrm share/gnome/help/time-admin/es +@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/es/figures +@dirrm share/gnome/help/services-admin/es +@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/es/figures +@dirrm share/gnome/help/network-admin/es +@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/es/figures +@dirrm share/gnome/help/boot-admin/es +@dirrm share/gnome/help/boot-admin/C/figures +@dirrm share/gnome/help/boot-admin/C +@dirrm share/gnome/help/boot-admin +@dirrm %%DATADIR%%/pixmaps +@dirrm %%DATADIR%%/interfaces +@dirrm %%DATADIR%% diff --git a/sysutils/system-tools-backends/Makefile b/sysutils/system-tools-backends/Makefile new file mode 100644 index 000000000..ef85bdbc3 --- /dev/null +++ b/sysutils/system-tools-backends/Makefile @@ -0,0 +1,41 @@ +# New ports collection makefile for: system-tools-backends +# Date created: 11 February 2005 +# Whom: Joe Marcus Clarke <marcus@FreeBSD.org> +# +# $FreeBSD$ +# $MCom$ +# + +PORTNAME= system-tools-backends +PORTVERSION= 1.4.2 +PORTREVISION= 1 +CATEGORIES= sysutils gnome +MASTER_SITES= ${MASTER_SITE_GNOME} +MASTER_SITE_SUBDIR= sources/${PORTNAME}/1.4 +DIST_SUBDIR= gnome2 + +MAINTAINER= gnome@FreeBSD.org +COMMENT= Backend system admin scripts for gnome-system-tools + +USE_BZIP2= yes +USE_GMAKE= yes +USE_PERL5= yes +USE_GETTEXT= yes +USE_GNOME= gnomehack gnometarget intlhack +GNU_CONFIGURE= yes +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" + +.include <bsd.port.pre.mk> + +.if ${PERL_LEVEL} <= 500800 +RUN_DEPENDS+= ${SITE_PERL}/File/Temp.pm:${PORTSDIR}/devel/p5-File-Temp +.endif + +.if ${PERL_LEVEL} < 500600 +post-configure: + @${FIND} ${WRKSRC} \( -name "*.pl" -or -name "*-conf" \) | \ + ${XARGS} ${REINPLACE_CMD} -e 's|@scriptsdir|[@]scriptsdir|g' +.endif + +.include <bsd.port.post.mk> diff --git a/sysutils/system-tools-backends/distinfo b/sysutils/system-tools-backends/distinfo new file mode 100644 index 000000000..44f78389f --- /dev/null +++ b/sysutils/system-tools-backends/distinfo @@ -0,0 +1,3 @@ +MD5 (gnome2/system-tools-backends-1.4.2.tar.bz2) = a0af1513becdf3b9bfed3535ad8f7dab +SHA256 (gnome2/system-tools-backends-1.4.2.tar.bz2) = 32762567ece8c0ab59dc1b2186ee8cfeac6d1f92574dfb3011483431135d8940 +SIZE (gnome2/system-tools-backends-1.4.2.tar.bz2) = 708733 diff --git a/sysutils/system-tools-backends/files/patch-network-conf.in b/sysutils/system-tools-backends/files/patch-network-conf.in new file mode 100644 index 000000000..51f4ac249 --- /dev/null +++ b/sysutils/system-tools-backends/files/patch-network-conf.in @@ -0,0 +1,11 @@ +--- network-conf.in.orig Sun Nov 20 20:27:32 2005 ++++ network-conf.in Mon Nov 28 13:34:34 2005 +@@ -75,7 +75,7 @@ + "conectiva-9", "conectiva-10", + "vine-3.0", "vine-3.1", + "slackware-9.1.0", "slackware-10.0.0", "slackware-10.1.0", "slackware-10.2.0", +- "gentoo", "vlos-1.2", "freebsd-5", "freebsd-6"); ++ "gentoo", "vlos-1.2", "freebsd-5", "freebsd-6", "freebsd-7"); + + $description =<<"end_of_description;"; + Configures all network parameters and interfaces. diff --git a/sysutils/system-tools-backends/files/patch-network.pl.in b/sysutils/system-tools-backends/files/patch-network.pl.in new file mode 100644 index 000000000..79ac9dfbe --- /dev/null +++ b/sysutils/system-tools-backends/files/patch-network.pl.in @@ -0,0 +1,76 @@ +--- network.pl.in.orig Mon Jan 2 10:50:54 2006 ++++ network.pl.in Fri Jan 6 01:11:58 2006 +@@ -94,7 +94,7 @@ + my ($fd, $line, $iface); + my (@ifaces, $command); + +- $command = &gst_file_get_cmd_path ("iwconfig"); ++ $command = &gst_file_get_cmd_path ("ifconfig"); + open $fd, "$command |"; + return @ifaces if $fd eq undef; + +@@ -535,6 +535,7 @@ + "vlos-1.2" => "debian-2.2", + "freebsd-5" => "debian-2.2", + "freebsd-6" => "debian-2.2", ++ "freebsd-7" => "debian-2.2", + ); + + return $cmd_map{$dist_map{$gst_dist}}; +@@ -804,7 +805,7 @@ + $types_cache{$dev} = "modem"; + } + } +- elsif ($dev =~ /^(eth|dc|ed|bfe|em|fxp|bge|de|xl|ixgb|txp|vx|lge|nge|pcn|re|rl|sf|sis|sk|ste|ti|tl|tx|vge|vr|wb|cs|ex|ep|fe|ie|lnc|sn|xe|le|an|awi|wi|ndis|wlaue|axe|cue|kue|rue|fwe|nve)[0-9]/) ++ elsif ($dev =~ /(eth|dc|ed|bfe|em|fxp|bge|de|xl|ixgb|txp|vx|lge|nge|pcn|re|rl|sf|sis|sk|ste|ti|tl|tx|vge|vr|wb|cs|ex|ep|fe|ie|lnc|sn|xe|le|an|awi|wi|ndis|wl|aue|axe|cue|kue|rue|fwe|nve|hme|ath|iwi|ipw|ral|ural|my)[0-9]/) + { + $types_cache{$dev} = "ethernet"; + } +@@ -1838,6 +1839,7 @@ + "gentoo" => \&gst_network_deb22_get_file, + "freebsd-5" => \&gst_network_deb22_get_file, + "freebsd-6" => \&gst_network_deb22_get_file, ++ "freebsd-7" => \&gst_network_deb22_get_file, + ); + + $proc = $dist_map{$gst_dist}; +@@ -3959,6 +3961,7 @@ + "vlos-1.2" => "", + "freebsd-5" => "", + "freebsd-6" => "", ++ "freebsd-7" => "", + ); + + $dev = $dist_map {$gst_dist}; +@@ -4124,6 +4127,7 @@ + "vlos-1.2" => "gentoo", + "freebsd-5" => "freebsd-5", + "freebsd-6" => "freebsd-5", ++ "freebsd-7" => "freebsd-5", + ); + + my %dist_tables = +@@ -4545,6 +4549,7 @@ + "vlos-1.2" => "gentoo", + "freebsd-5" => "freebsd-5", + "freebsd-6" => "freebsd-5", ++ "freebsd-7" => "freebsd-5", + ); + + my %dist_tables = +@@ -5383,6 +5388,7 @@ + "vlos-1.2" => "gentoo", + "freebsd-5" => "freebsd-5", + "freebsd-6" => "freebsd-5", ++ "freebsd-7" => "freebsd-5", + ); + + my %dist_tables = +@@ -5789,6 +5795,7 @@ + "vlos-1.2" => "gentoo", + "freebsd-5" => "freebsd-5", + "freebsd-6" => "freebsd-5", ++ "freebsd-7" => "freebsd-5", + ); + + my %dist_tables = diff --git a/sysutils/system-tools-backends/files/patch-platform.pl.in b/sysutils/system-tools-backends/files/patch-platform.pl.in new file mode 100644 index 000000000..81ad3b2e9 --- /dev/null +++ b/sysutils/system-tools-backends/files/patch-platform.pl.in @@ -0,0 +1,10 @@ +--- platform.pl.in.orig Fri Aug 26 00:56:21 2005 ++++ platform.pl.in Fri Aug 26 00:56:36 2005 +@@ -77,6 +77,7 @@ + "freebsd-4" => "FreeBSD 4", + "freebsd-5" => "FreeBSD 5", + "freebsd-6" => "FreeBSD 6", ++ "freebsd-7" => "FreeBSD 7", + "gentoo" => "Gentoo Linux", + "vlos-1.2" => "Vida Linux OS 1.2", + "archlinux-0.7" => "Arch Linux 0.7", diff --git a/sysutils/system-tools-backends/files/patch-replace.pl.in b/sysutils/system-tools-backends/files/patch-replace.pl.in new file mode 100644 index 000000000..9487b290d --- /dev/null +++ b/sysutils/system-tools-backends/files/patch-replace.pl.in @@ -0,0 +1,29 @@ +--- replace.pl.in.orig Tue Dec 21 11:17:14 2004 ++++ replace.pl.in Thu Dec 23 13:14:41 2004 +@@ -1128,7 +1128,7 @@ + + while ($line_no < $line_end) + { +- delete $$buff[$line_no]; ++ splice @{$buff},$line_no,1; + $line_no++; + } + +@@ -1140,7 +1140,7 @@ + + while ($line_no < $line_end) + { +- delete $$buff[$line_no]; ++ splice @{$buff},$line_no,1; + $line_no++; + } + } +@@ -1680,7 +1680,7 @@ + } + else + { +- delete $$buff[$i]; ++ splice @{$buff},$i,1; + } + } + } diff --git a/sysutils/system-tools-backends/files/patch-service-list.pl.in b/sysutils/system-tools-backends/files/patch-service-list.pl.in new file mode 100644 index 000000000..5590c5637 --- /dev/null +++ b/sysutils/system-tools-backends/files/patch-service-list.pl.in @@ -0,0 +1,20 @@ +--- service-list.pl.in.orig Mon Aug 8 13:59:07 2005 ++++ service-list.pl.in Sun Nov 13 17:11:02 2005 +@@ -105,6 +105,7 @@ + "atm3\.sh", + "ccd", + "cleanvar", ++ "cleartmp", + "devdb", + "devfs", + "dhclient", +@@ -139,7 +140,9 @@ + "swap1", + "syscons", + "sysctl", ++ "tmp", + "ttys", ++ "var", + "virecover", + # These are the services found in SuSE + "rc[sS0-9]\.d", diff --git a/sysutils/system-tools-backends/files/patch-service.pl.in b/sysutils/system-tools-backends/files/patch-service.pl.in new file mode 100644 index 000000000..1162f2730 --- /dev/null +++ b/sysutils/system-tools-backends/files/patch-service.pl.in @@ -0,0 +1,18 @@ +--- service.pl.in.orig Fri Aug 26 00:57:01 2005 ++++ service.pl.in Fri Aug 26 00:57:13 2005 +@@ -227,6 +227,7 @@ + + "freebsd-5" => "freebsd-5", + "freebsd-6" => "freebsd-5", ++ "freebsd-7" => "freebsd-5", + ); + + %runlevels= +@@ -1571,6 +1572,7 @@ + + "freebsd-5" => \&gst_service_rcng_get_status, + "freebsd-6" => \&gst_service_rcng_get_status, ++ "freebsd-7" => \&gst_service_rcng_get_status, + ); + my $proc; + diff --git a/sysutils/system-tools-backends/files/patch-services-conf.in b/sysutils/system-tools-backends/files/patch-services-conf.in new file mode 100644 index 000000000..d66514307 --- /dev/null +++ b/sysutils/system-tools-backends/files/patch-services-conf.in @@ -0,0 +1,11 @@ +--- services-conf.in.orig Mon Jan 2 10:32:34 2006 ++++ services-conf.in Fri Jan 6 01:08:21 2006 +@@ -55,7 +55,7 @@ + "pld-1.0", "pld-1.1", "pld-1.99", + "slackware-9.1.0", "slackware-10.0.0", "slackware-10.1.0", "slackware-10.2.0", + "vine-3.0", "vine-3.1", +- "gentoo", "archlinux", "vlos-1.2", "freebsd-5", "freebsd-6", "suse-9.0", "suse-9.1"); ++ "gentoo", "archlinux", "vlos-1.2", "freebsd-5", "freebsd-6", "freebsd-7", "suse-9.0", "suse-9.1"); + + $description =<<"end_of_description;"; + Configures which services are to be started or stopped at which runlevels diff --git a/sysutils/system-tools-backends/files/patch-shares-conf.in b/sysutils/system-tools-backends/files/patch-shares-conf.in new file mode 100644 index 000000000..5fa1e78a5 --- /dev/null +++ b/sysutils/system-tools-backends/files/patch-shares-conf.in @@ -0,0 +1,10 @@ +--- shares-conf.in.orig Fri Aug 26 00:57:50 2005 ++++ shares-conf.in Fri Aug 26 00:57:57 2005 +@@ -557,6 +557,7 @@ + "vlos-1.2" => "gentoo", + "freebsd-5" => "freebsd-5", + "freebsd-6" => "freebsd-5", ++ "freebsd-7" => "freebsd-5", + ); + + my %dist_table = diff --git a/sysutils/system-tools-backends/files/patch-time-conf.in b/sysutils/system-tools-backends/files/patch-time-conf.in new file mode 100644 index 000000000..716bd5ac4 --- /dev/null +++ b/sysutils/system-tools-backends/files/patch-time-conf.in @@ -0,0 +1,27 @@ +--- time-conf.in.orig Mon Jan 2 10:47:30 2006 ++++ time-conf.in Fri Jan 6 01:09:09 2006 +@@ -72,7 +72,7 @@ + "gentoo", "vlos-1.2", "pld-1.0", "pld-1.1", "pld-1.99", "fedora-1", "fedora-2", "fedora-3", "rpath", + "vine-3.0", "vine-3.1", + "archlinux", +- "freebsd-5", "freebsd-6"); ++ "freebsd-5", "freebsd-6", "freebsd-7"); + + $description =<<"end_of_description;"; + Configures your system clock, timezone and time server list. +@@ -591,6 +591,7 @@ + + "freebsd-5" => "freebsd-5", + "freebsd-6" => "freebsd-5", ++ "freebsd-7" => "freebsd-5", + ); + + my %dist_tables = +@@ -842,6 +843,7 @@ + + "freebsd-5" => "freebsd-5", + "freebsd-6" => "freebsd-5", ++ "freebsd-7" => "freebsd-5", + ); + + my %dist_tables = diff --git a/sysutils/system-tools-backends/files/patch-users-conf.in b/sysutils/system-tools-backends/files/patch-users-conf.in new file mode 100644 index 000000000..eaa6b3739 --- /dev/null +++ b/sysutils/system-tools-backends/files/patch-users-conf.in @@ -0,0 +1,19 @@ +--- users-conf.in.orig Sun Nov 20 20:27:32 2005 ++++ users-conf.in Mon Nov 28 13:35:33 2005 +@@ -76,7 +76,7 @@ + "debian-2.2", "debian-3.0", "debian-sarge", + "suse-7.0", "suse-9.0", "suse-9.1", "turbolinux-7.0", + "slackware-8.0.0", "slackware-8.1", "slackware-9.0.0", "slackware-9.1.0", "slackware-10.0.0", "slackware-10.1.0", "slackware-10.2.0", +- "freebsd-4", "freebsd-5", "freebsd-6", ++ "freebsd-4", "freebsd-5", "freebsd-6", "freebsd-7", + "gentoo", "vlos-1.2", + "archlinux-0.7", + "pld-1.0", "pld-1.1", "pld-1.99", "fedora-1", "fedora-2", "fedora-3", "rpath", "vine-3.0", "vine-3.1"); +@@ -374,6 +374,7 @@ + 'freebsd-4' => $freebsd_logindefs_defaults, + 'freebsd-5' => $freebsd_logindefs_defaults, + 'freebsd-6' => $freebsd_logindefs_defaults, ++ 'freebsd-7' => $freebsd_logindefs_defaults, + 'suse-7.0' => $gentoo_logindefs_defaults, + 'suse-9.0' => $gentoo_logindefs_defaults, + 'suse-9.1' => $gentoo_logindefs_defaults, diff --git a/sysutils/system-tools-backends/pkg-descr b/sysutils/system-tools-backends/pkg-descr new file mode 100644 index 000000000..3434030ae --- /dev/null +++ b/sysutils/system-tools-backends/pkg-descr @@ -0,0 +1,4 @@ +System-tools-backends is a collection of scripts (mostly Perl) used by +gnome-system-tools to perform system administration tasks. + +WWW: http://www.gnome.org/projects/gst/ diff --git a/sysutils/system-tools-backends/pkg-plist b/sysutils/system-tools-backends/pkg-plist new file mode 100644 index 000000000..92fa9e5ef --- /dev/null +++ b/sysutils/system-tools-backends/pkg-plist @@ -0,0 +1,103 @@ +libdata/pkgconfig/system-tools-backends.pc +share/aclocal/system-tools-backends.m4 +share/locale/ar/LC_MESSAGES/system-tools-backends.mo +share/locale/az/LC_MESSAGES/system-tools-backends.mo +share/locale/bg/LC_MESSAGES/system-tools-backends.mo +share/locale/bn/LC_MESSAGES/system-tools-backends.mo +share/locale/bs/LC_MESSAGES/system-tools-backends.mo +share/locale/ca/LC_MESSAGES/system-tools-backends.mo +share/locale/cs/LC_MESSAGES/system-tools-backends.mo +share/locale/da/LC_MESSAGES/system-tools-backends.mo +share/locale/de/LC_MESSAGES/system-tools-backends.mo +share/locale/el/LC_MESSAGES/system-tools-backends.mo +share/locale/en_CA/LC_MESSAGES/system-tools-backends.mo +share/locale/en_GB/LC_MESSAGES/system-tools-backends.mo +share/locale/es/LC_MESSAGES/system-tools-backends.mo +share/locale/eu/LC_MESSAGES/system-tools-backends.mo +share/locale/fi/LC_MESSAGES/system-tools-backends.mo +share/locale/fr/LC_MESSAGES/system-tools-backends.mo +share/locale/gu/LC_MESSAGES/system-tools-backends.mo +share/locale/hi/LC_MESSAGES/system-tools-backends.mo +share/locale/hr/LC_MESSAGES/system-tools-backends.mo +share/locale/hu/LC_MESSAGES/system-tools-backends.mo +share/locale/id/LC_MESSAGES/system-tools-backends.mo +share/locale/it/LC_MESSAGES/system-tools-backends.mo +share/locale/ja/LC_MESSAGES/system-tools-backends.mo +share/locale/ko/LC_MESSAGES/system-tools-backends.mo +share/locale/lt/LC_MESSAGES/system-tools-backends.mo +share/locale/ms/LC_MESSAGES/system-tools-backends.mo +share/locale/nb/LC_MESSAGES/system-tools-backends.mo +share/locale/ne/LC_MESSAGES/system-tools-backends.mo +share/locale/nl/LC_MESSAGES/system-tools-backends.mo +share/locale/no/LC_MESSAGES/system-tools-backends.mo +share/locale/pa/LC_MESSAGES/system-tools-backends.mo +share/locale/pl/LC_MESSAGES/system-tools-backends.mo +share/locale/pt/LC_MESSAGES/system-tools-backends.mo +share/locale/pt_BR/LC_MESSAGES/system-tools-backends.mo +share/locale/ro/LC_MESSAGES/system-tools-backends.mo +share/locale/rw/LC_MESSAGES/system-tools-backends.mo +share/locale/sk/LC_MESSAGES/system-tools-backends.mo +share/locale/sq/LC_MESSAGES/system-tools-backends.mo +share/locale/sr/LC_MESSAGES/system-tools-backends.mo +share/locale/sr@Latn/LC_MESSAGES/system-tools-backends.mo +share/locale/sv/LC_MESSAGES/system-tools-backends.mo +share/locale/ta/LC_MESSAGES/system-tools-backends.mo +share/locale/th/LC_MESSAGES/system-tools-backends.mo +share/locale/tr/LC_MESSAGES/system-tools-backends.mo +share/locale/uk/LC_MESSAGES/system-tools-backends.mo +share/locale/vi/LC_MESSAGES/system-tools-backends.mo +share/locale/xh/LC_MESSAGES/system-tools-backends.mo +share/locale/zh_CN/LC_MESSAGES/system-tools-backends.mo +share/locale/zh_TW/LC_MESSAGES/system-tools-backends.mo +share/setup-tool-backends/files/general_isdn_ppp_options +share/setup-tool-backends/scripts/boot-conf +share/setup-tool-backends/scripts/boot-grub.pl +share/setup-tool-backends/scripts/boot-lilo.pl +share/setup-tool-backends/scripts/boot-yaboot.pl +share/setup-tool-backends/scripts/boot.pl +share/setup-tool-backends/scripts/debug.pl +share/setup-tool-backends/scripts/dhcpd-conf +share/setup-tool-backends/scripts/dhcpd.pl +share/setup-tool-backends/scripts/disks-conf +share/setup-tool-backends/scripts/display-conf +share/setup-tool-backends/scripts/file.pl +share/setup-tool-backends/scripts/filesys.pl +share/setup-tool-backends/scripts/font-conf +share/setup-tool-backends/scripts/font.pl +share/setup-tool-backends/scripts/general.pl +share/setup-tool-backends/scripts/guess_system.sh +share/setup-tool-backends/scripts/internetsharing-conf +share/setup-tool-backends/scripts/ishare.pl +share/setup-tool-backends/scripts/media.pl +share/setup-tool-backends/scripts/memory-conf +share/setup-tool-backends/scripts/mouse-conf +share/setup-tool-backends/scripts/network-conf +share/setup-tool-backends/scripts/network.pl +share/setup-tool-backends/scripts/package-conf +share/setup-tool-backends/scripts/parse.pl +share/setup-tool-backends/scripts/partition.pl +share/setup-tool-backends/scripts/platform.pl +share/setup-tool-backends/scripts/print-conf +share/setup-tool-backends/scripts/print.pl +share/setup-tool-backends/scripts/process.pl +share/setup-tool-backends/scripts/replace.pl +share/setup-tool-backends/scripts/report.pl +share/setup-tool-backends/scripts/service-list.pl +share/setup-tool-backends/scripts/service.pl +share/setup-tool-backends/scripts/services-conf +share/setup-tool-backends/scripts/share.pl +share/setup-tool-backends/scripts/shares-conf +share/setup-tool-backends/scripts/time-conf +share/setup-tool-backends/scripts/tokenizer.pl +share/setup-tool-backends/scripts/type1inst +share/setup-tool-backends/scripts/users-conf +share/setup-tool-backends/scripts/util.pl +share/setup-tool-backends/scripts/x.pl +share/setup-tool-backends/scripts/xml.pl +@dirrm share/setup-tool-backends/scripts +@dirrm share/setup-tool-backends/files +@dirrm share/setup-tool-backends +@dirrmtry share/locale/xh/LC_MESSAGES +@dirrmtry share/locale/xh +@dirrmtry share/locale/rw/LC_MESSAGES +@dirrmtry share/locale/rw |