aboutsummaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2007-04-29 05:29:45 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2007-04-29 05:29:45 +0000
commit8fa633153d0ee99af7f9cd01768efe6fa955184b (patch)
treee0bb0d199137163d21879dfe1e2872bb6ae327e9 /sysutils
parent6418e652538d97320b2233aefc48473c901b3c75 (diff)
downloadports-8fa633153d0ee99af7f9cd01768efe6fa955184b.tar.gz
ports-8fa633153d0ee99af7f9cd01768efe6fa955184b.zip
Notes
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/system-tools-backends/Makefile2
-rw-r--r--sysutils/system-tools-backends/files/patch-Users_Users.pm47
2 files changed, 48 insertions, 1 deletions
diff --git a/sysutils/system-tools-backends/Makefile b/sysutils/system-tools-backends/Makefile
index c30c1689e10a..a735308960ee 100644
--- a/sysutils/system-tools-backends/Makefile
+++ b/sysutils/system-tools-backends/Makefile
@@ -8,7 +8,7 @@
PORTNAME= system-tools-backends
PORTVERSION= 2.2.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= sysutils gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
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 000000000000..5e2598972c24
--- /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];