diff options
author | kim <kim@pkgsrc.org> | 2004-10-11 09:44:12 +0000 |
---|---|---|
committer | kim <kim@pkgsrc.org> | 2004-10-11 09:44:12 +0000 |
commit | 944568d594142b5bf16d69cdaabdd25ac5e50881 (patch) | |
tree | 0c37dfc3c9117b9fc62c1efd3290cb0bcc2549ec /sysutils/rsnapshot | |
parent | de39686019cede5140a5cd2157f08d7581ddbb29 (diff) | |
download | pkgsrc-944568d594142b5bf16d69cdaabdd25ac5e50881.tar.gz |
Yikes, use lchown!
Diffstat (limited to 'sysutils/rsnapshot')
-rw-r--r-- | sysutils/rsnapshot/Makefile | 4 | ||||
-rw-r--r-- | sysutils/rsnapshot/distinfo | 3 | ||||
-rw-r--r-- | sysutils/rsnapshot/patches/patch-aa | 51 |
3 files changed, 56 insertions, 2 deletions
diff --git a/sysutils/rsnapshot/Makefile b/sysutils/rsnapshot/Makefile index afd566357ff..6b3b8041269 100644 --- a/sysutils/rsnapshot/Makefile +++ b/sysutils/rsnapshot/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.1.1.1 2004/10/10 17:28:14 kim Exp $ +# $NetBSD: Makefile,v 1.2 2004/10/11 09:44:12 kim Exp $ # DISTNAME= rsnapshot-1.1.6 +PKGREVISION= 1 CATEGORIES= net MASTER_SITES= http://www.rsnapshot.org/downloads/ @@ -10,6 +11,7 @@ HOMEPAGE= http://www.rsnapshot.org/ COMMENT= Filesystem snapshot utility DEPENDS+= rsync>=2.3.1:../../net/rsync +DEPENDS+= p5-Lchown>=0.07:../../sysutils/p5-Lchown GNU_CONFIGURE= yes USE_PERL5= yes diff --git a/sysutils/rsnapshot/distinfo b/sysutils/rsnapshot/distinfo index 7507e9a8efd..18454e1c244 100644 --- a/sysutils/rsnapshot/distinfo +++ b/sysutils/rsnapshot/distinfo @@ -1,4 +1,5 @@ -$NetBSD: distinfo,v 1.1.1.1 2004/10/10 17:28:14 kim Exp $ +$NetBSD: distinfo,v 1.2 2004/10/11 09:44:12 kim Exp $ SHA1 (rsnapshot-1.1.6.tar.gz) = 6813c68df1ff82df79682c0aaa6012f189c7eeb5 Size (rsnapshot-1.1.6.tar.gz) = 88871 bytes +SHA1 (patch-aa) = 54f91858948e46288fe8d47f825e69db3ef56387 diff --git a/sysutils/rsnapshot/patches/patch-aa b/sysutils/rsnapshot/patches/patch-aa new file mode 100644 index 00000000000..9ae67a29b49 --- /dev/null +++ b/sysutils/rsnapshot/patches/patch-aa @@ -0,0 +1,51 @@ +$NetBSD: patch-aa,v 1.1 2004/10/11 09:44:50 kim Exp $ + +--- rsnapshot-program.pl.orig 2004-07-05 19:43:18.000000000 -0400 ++++ rsnapshot-program.pl 2004-10-11 05:13:15.000000000 -0400 +@@ -32,6 +32,7 @@ + use File::Path; # mkpath(), rmtree() + use File::stat; # stat(), lstat() + use POSIX qw(locale_h); # setlocale() ++use Lchown qw(lchown LCHOWN_AVAILABLE); + + ######################################## + ### DECLARE GLOBAL VARIABLES ### +@@ -2934,7 +2935,11 @@ + } + } + +- $result = chown($st->uid, $st->gid, "$dest"); ++ if (Lchown::LCHOWN_AVAILABLE) { ++ $result = lchown($st->uid, $st->gid, "$dest"); ++ } else { ++ $result = chown($st->uid, $st->gid, "$dest"); ++ } + if (! $result) { + print_err("Warning! Could not chown(" . $st->uid . ", " . $st->gid . ", \"$dest\");", 2); + return(0); +@@ -3284,7 +3289,11 @@ + + # CHOWN DEST (if root) + if (0 == $<) { +- $result = chown($st->uid, $st->gid, "$dest"); ++ if (Lchown::LCHOWN_AVAILABLE) { ++ $result = lchown($st->uid, $st->gid, "$dest"); ++ } else { ++ $result = chown($st->uid, $st->gid, "$dest"); ++ } + if (! $result) { + print_err("Warning! Could not chown(" . $st->uid . ", " . $st->gid . ", \"$dest\");", 2); + return(0); +@@ -3513,7 +3522,11 @@ + } + } + +- $result = chown($st->uid, $st->gid, "$dest"); ++ if (Lchown::LCHOWN_AVAILABLE) { ++ $result = lchown($st->uid, $st->gid, "$dest"); ++ } else { ++ $result = chown($st->uid, $st->gid, "$dest"); ++ } + + if (! $result) { + print_err("Warning! Could not chown(" . $st->uid . ", " . $st->gid . ", \"$dest\")", 2); |