summaryrefslogtreecommitdiffstats
path: root/sysutils/system-tools-backends
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/system-tools-backends')
-rw-r--r--sysutils/system-tools-backends/Makefile41
-rw-r--r--sysutils/system-tools-backends/distinfo3
-rw-r--r--sysutils/system-tools-backends/files/patch-Users_Users.pm47
-rw-r--r--sysutils/system-tools-backends/files/patch-dispatcher_main.c11
-rw-r--r--sysutils/system-tools-backends/files/system-tools-backends.in26
-rw-r--r--sysutils/system-tools-backends/pkg-descr4
-rw-r--r--sysutils/system-tools-backends/pkg-plist57
7 files changed, 189 insertions, 0 deletions
diff --git a/sysutils/system-tools-backends/Makefile b/sysutils/system-tools-backends/Makefile
new file mode 100644
index 000000000..d82db2db9
--- /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: ports/sysutils/system-tools-backends/Makefile,v 1.40 2007/10/04 11:32:48 ahze Exp $
+#
+
+PORTNAME= system-tools-backends
+PORTVERSION= 2.5.1
+CATEGORIES= sysutils gnome
+MASTER_SITES= ${MASTER_SITE_GNOME}
+MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
+DIST_SUBDIR= gnome2
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= Backend system admin scripts for gnome-system-tools
+
+BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Net/DBus.pm:${PORTSDIR}/devel/p5-Net-DBus
+LIB_DEPENDS= dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib
+RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Net/DBus.pm:${PORTSDIR}/devel/p5-Net-DBus
+
+USE_BZIP2= yes
+USE_GMAKE= yes
+USE_PERL5= yes
+USE_GNOME= gnomehack intlhack glib20
+GNU_CONFIGURE= yes
+USE_RC_SUBR= system-tools-backends
+USE_GNOME_SUBR= yes
+CONFIGURE_ARGS= --with-stb-group=wheel \
+ --localstatedir=/var
+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
+
+.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..7088d2cd5
--- /dev/null
+++ b/sysutils/system-tools-backends/distinfo
@@ -0,0 +1,3 @@
+MD5 (gnome2/system-tools-backends-2.5.1.tar.bz2) = 9c0ef303ac67cb6eace41e5aefad6f1b
+SHA256 (gnome2/system-tools-backends-2.5.1.tar.bz2) = 973168c4501f4319c8e667a53a2c5e2696b6e2173e7792c94731e48f364714ab
+SIZE (gnome2/system-tools-backends-2.5.1.tar.bz2) = 413038
diff --git a/sysutils/system-tools-backends/files/patch-Users_Users.pm b/sysutils/system-tools-backends/files/patch-Users_Users.pm
new file mode 100644
index 000000000..5e2598972
--- /dev/null
+++ b/sysutils/system-tools-backends/files/patch-Users_Users.pm
@@ -0,0 +1,47 @@
+--- Users/Users.pm.orig Thu Oct 5 09:27:21 2006
++++ Users/Users.pm Sun Apr 22 23:05:41 2007
+@@ -458,7 +458,7 @@
+
+ if ($Utils::Backend::tool{"system"} eq "FreeBSD")
+ {
+- $command = "$cmd_pw userdel -n \'" . $$user[$LOGIN] . "\' ";
++ $command = "$cmd_pw userdel -n \'" . $$user[$LOGIN] . "\' -r ";
+ }
+ else
+ {
+@@ -538,10 +538,10 @@
+ {
+ my $pwdpipe;
+ my $home;
++ my $user;
+
+- # FreeBSD doesn't create the home directory
+ $home = $$user[$HOME];
+- &Utils::File::run ("$tool_mkdir -p $home");
++ $user = $$user[$LOGIN];
+
+ $command = "$cmd_pw useradd " .
+ " -n \'" . $$user[$LOGIN] . "\'" .
+@@ -549,11 +549,12 @@
+ " -d \'" . $$user[$HOME] . "\'" .
+ " -g \'" . $$user[$GID] . "\'" .
+ " -s \'" . $$user[$SHELL] . "\'" .
+- " -H 0"; # pw(8) reads password from STDIN
++ " -m -h 0"; # pw(8) reads password from STDIN
+
+ $pwdpipe = &Utils::File::run_pipe_write ($command);
+ print $pwdpipe $$user[$PASSWD];
+ &Utils::File::close_file ($pwdpipe);
++ &Utils::File::run ("chown -R $user $home");
+ }
+ elsif ($Utils::Backend::tool{"system"} eq "SunOS")
+ {
+@@ -629,7 +630,7 @@
+ " -d \'" . $$new_user[$HOME] . "\'" .
+ " -g \'" . $$new_user[$GID] . "\'" .
+ " -s \'" . $$new_user[$SHELL] . "\'" .
+- " -H 0"; # pw(8) reads password from STDIN
++ " -h 0"; # pw(8) reads password from STDIN
+
+ $pwdpipe = &Utils::File::run_pipe_write ($command);
+ print $pwdpipe $$new_user[$PASSWD];
diff --git a/sysutils/system-tools-backends/files/patch-dispatcher_main.c b/sysutils/system-tools-backends/files/patch-dispatcher_main.c
new file mode 100644
index 000000000..b575cbfd4
--- /dev/null
+++ b/sysutils/system-tools-backends/files/patch-dispatcher_main.c
@@ -0,0 +1,11 @@
+--- dispatcher/main.c.orig 2007-10-29 20:36:16.890317344 -0400
++++ dispatcher/main.c 2007-10-29 20:37:02.584773483 -0400
+@@ -47,7 +47,7 @@
+
+ setsid ();
+
+- if ((pidfile_fd = open (LOCALSTATEDIR "/run/system-tools-backends.pid", O_CREAT | O_WRONLY)) != -1)
++ if ((pidfile_fd = open (LOCALSTATEDIR "/run/system-tools-backends.pid", O_CREAT | O_WRONLY, 0600)) != -1)
+ {
+ str = g_strdup_printf ("%d", getpid ());
+ write (pidfile_fd, str, strlen (str));
diff --git a/sysutils/system-tools-backends/files/system-tools-backends.in b/sysutils/system-tools-backends/files/system-tools-backends.in
new file mode 100644
index 000000000..b23f16bb2
--- /dev/null
+++ b/sysutils/system-tools-backends/files/system-tools-backends.in
@@ -0,0 +1,26 @@
+#!/bin/sh
+# $FreeBSD$
+# $MCom: ports/sysutils/system-tools-backends/files/system-tools-backends.in,v 1.5 2007/07/10 16:47:46 ahze Exp $
+
+# PROVIDE: system-tools-backends
+# REQUIRE: DAEMON dbus
+#
+# Add the following to /etc/rc.conf to start SystemToolsBackends at boot time:
+#
+# system_tools_backends_enable="YES"
+#
+
+. %%RC_SUBR%%
+. %%GNOME_SUBR%%
+
+export PATH=${PATH}:%%PREFIX%%/bin
+
+system_tools_backends_enable=${system_tools_backends_enable-${gnome_enable}}
+
+name=system_tools_backends
+rcvar=`set_rcvar`
+command="%%PREFIX%%/bin/system-tools-backends"
+pidfile="/var/run/system-tools-backends.pid"
+
+load_rc_config ${name}
+run_rc_command "$1"
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..31f146f16
--- /dev/null
+++ b/sysutils/system-tools-backends/pkg-plist
@@ -0,0 +1,57 @@
+bin/system-tools-backends
+etc/dbus-1/system.d/system-tools-backends.conf
+libdata/pkgconfig/system-tools-backends-2.0.pc
+share/dbus-1/services/org.freedesktop.SystemToolsBackends.GroupsConfig.service
+share/dbus-1/services/org.freedesktop.SystemToolsBackends.HostsConfig.service
+share/dbus-1/services/org.freedesktop.SystemToolsBackends.IfacesConfig.service
+share/dbus-1/services/org.freedesktop.SystemToolsBackends.NFSConfig.service
+share/dbus-1/services/org.freedesktop.SystemToolsBackends.NTPConfig.service
+share/dbus-1/services/org.freedesktop.SystemToolsBackends.Platform.service
+share/dbus-1/services/org.freedesktop.SystemToolsBackends.SMBConfig.service
+share/dbus-1/services/org.freedesktop.SystemToolsBackends.ServicesConfig.service
+share/dbus-1/services/org.freedesktop.SystemToolsBackends.TimeConfig.service
+share/dbus-1/services/org.freedesktop.SystemToolsBackends.UsersConfig.service
+share/dbus-1/services/org.freedesktop.SystemToolsBackends.service
+share/system-tools-backends-2.0/files/general_isdn_ppp_options
+share/system-tools-backends-2.0/scripts/GroupsConfig.pm
+share/system-tools-backends-2.0/scripts/HostsConfig.pm
+share/system-tools-backends-2.0/scripts/IfacesConfig.pm
+share/system-tools-backends-2.0/scripts/Init/Services.pm
+share/system-tools-backends-2.0/scripts/Init/ServicesList.pm
+share/system-tools-backends-2.0/scripts/NFSConfig.pm
+share/system-tools-backends-2.0/scripts/NTPConfig.pm
+share/system-tools-backends-2.0/scripts/Network/Hosts.pm
+share/system-tools-backends-2.0/scripts/Network/Ifaces.pm
+share/system-tools-backends-2.0/scripts/Platform.pm
+share/system-tools-backends-2.0/scripts/SMBConfig.pm
+share/system-tools-backends-2.0/scripts/ServicesConfig.pm
+share/system-tools-backends-2.0/scripts/Shares/NFS.pm
+share/system-tools-backends-2.0/scripts/Shares/SMB.pm
+share/system-tools-backends-2.0/scripts/StbObject.pm
+share/system-tools-backends-2.0/scripts/SystemToolsBackends.pl
+share/system-tools-backends-2.0/scripts/Time/NTP.pm
+share/system-tools-backends-2.0/scripts/Time/TimeDate.pm
+share/system-tools-backends-2.0/scripts/TimeConfig.pm
+share/system-tools-backends-2.0/scripts/Users/Groups.pm
+share/system-tools-backends-2.0/scripts/Users/Shells.pm
+share/system-tools-backends-2.0/scripts/Users/Users.pm
+share/system-tools-backends-2.0/scripts/UsersConfig.pm
+share/system-tools-backends-2.0/scripts/Utils/Backend.pm
+share/system-tools-backends-2.0/scripts/Utils/DBus.pm
+share/system-tools-backends-2.0/scripts/Utils/File.pm
+share/system-tools-backends-2.0/scripts/Utils/Monitor.pm
+share/system-tools-backends-2.0/scripts/Utils/Parse.pm
+share/system-tools-backends-2.0/scripts/Utils/Platform.pm
+share/system-tools-backends-2.0/scripts/Utils/Replace.pm
+share/system-tools-backends-2.0/scripts/Utils/Report.pm
+share/system-tools-backends-2.0/scripts/Utils/Util.pm
+share/system-tools-backends-2.0/scripts/Utils/XML.pm
+@dirrm share/system-tools-backends-2.0/scripts/Utils
+@dirrm share/system-tools-backends-2.0/scripts/Users
+@dirrm share/system-tools-backends-2.0/scripts/Time
+@dirrm share/system-tools-backends-2.0/scripts/Shares
+@dirrm share/system-tools-backends-2.0/scripts/Network
+@dirrm share/system-tools-backends-2.0/scripts/Init
+@dirrm share/system-tools-backends-2.0/scripts
+@dirrm share/system-tools-backends-2.0/files
+@dirrm share/system-tools-backends-2.0