diff options
-rw-r--r-- | doc/CHANGES-2006 | 3 | ||||
-rw-r--r-- | doc/TODO | 3 | ||||
-rw-r--r-- | sysutils/rsnapshot/Makefile | 9 | ||||
-rw-r--r-- | sysutils/rsnapshot/distinfo | 10 | ||||
-rw-r--r-- | sysutils/rsnapshot/patches/patch-aa | 139 |
5 files changed, 23 insertions, 141 deletions
diff --git a/doc/CHANGES-2006 b/doc/CHANGES-2006 index 0e9737637f7..890e4431e6e 100644 --- a/doc/CHANGES-2006 +++ b/doc/CHANGES-2006 @@ -1,4 +1,4 @@ ->$NetBSD: CHANGES-2006,v 1.1384 2006/10/02 19:36:36 abs Exp $ +>$NetBSD: CHANGES-2006,v 1.1385 2006/10/02 19:52:21 abs Exp $ Changes to the packages collection and infrastructure in 2006: @@ -4538,3 +4538,4 @@ Changes to the packages collection and infrastructure in 2006: Added devel/p5-Carp-Clan version 5.4 [rillig 2006-10-02] Updated devel/p5-Carp-Clan to 5.4 [rillig 2006-10-02] Updated pkgtools/pkglint to 4.71 [abs 2006-10-02] + Updated sysutils/rsnapshot to 1.2.9 [abs 2006-10-02] @@ -1,4 +1,4 @@ -$NetBSD: TODO,v 1.5500 2006/10/02 18:26:45 wiz Exp $ +$NetBSD: TODO,v 1.5501 2006/10/02 19:52:21 abs Exp $ Suggested new packages ====================== @@ -1087,7 +1087,6 @@ Suggested package updates o rp-pppoe-3.8 o rpc2-1.28 o rpm-4.4.6 - o rsnapshot-1.2.9 o rt3-3.6.1 o rtcw-1.41.3 o ruby-1.8.5 diff --git a/sysutils/rsnapshot/Makefile b/sysutils/rsnapshot/Makefile index 76df3dc83db..6632e371d0c 100644 --- a/sysutils/rsnapshot/Makefile +++ b/sysutils/rsnapshot/Makefile @@ -1,8 +1,7 @@ -# $NetBSD: Makefile,v 1.8 2005/12/29 06:22:18 jlam Exp $ +# $NetBSD: Makefile,v 1.9 2006/10/02 19:51:37 abs Exp $ # -DISTNAME= rsnapshot-1.2.1 -PKGREVISION= 1 +DISTNAME= rsnapshot-1.2.9 CATEGORIES= net MASTER_SITES= http://www.rsnapshot.org/downloads/ @@ -28,11 +27,11 @@ CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} CONFIGURE_ARGS+= --with-perl=${PERL5:Q} CONFIGURE_ARGS+= --with-rsync=${LOCALBASE}/bin/rsync -INSTALLATION_DIRS= bin man/man1 +INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 do-install: ${INSTALL_SCRIPT} ${WRKSRC}/rsnapshot ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/rsnapshot.1 ${PREFIX}/man/man1 + ${INSTALL_MAN} ${WRKSRC}/rsnapshot.1 ${PREFIX}/${PKGMANDIR}/man1 ${INSTALL_DATA_DIR} ${EGDIR} ${INSTALL_DATA} ${WRKSRC}/rsnapshot.conf.default ${EGDIR} ${INSTALL_DATA_DIR} ${DOCDIR} diff --git a/sysutils/rsnapshot/distinfo b/sysutils/rsnapshot/distinfo index 390b60b82c2..3f39ce3f933 100644 --- a/sysutils/rsnapshot/distinfo +++ b/sysutils/rsnapshot/distinfo @@ -1,6 +1,6 @@ -$NetBSD: distinfo,v 1.5 2005/12/27 08:56:47 kim Exp $ +$NetBSD: distinfo,v 1.6 2006/10/02 19:51:37 abs Exp $ -SHA1 (rsnapshot-1.2.1.tar.gz) = 4e13d6a828012b869fa0709f651e3b11c40d0c91 -RMD160 (rsnapshot-1.2.1.tar.gz) = 78d365b45c3a7dbe2034d901afe4937b39687946 -Size (rsnapshot-1.2.1.tar.gz) = 137194 bytes -SHA1 (patch-aa) = 7b6fb79ce5e47cc552ee3634598b2e2101dc8919 +SHA1 (rsnapshot-1.2.9.tar.gz) = eadf8c68eeba5e75ef84179d54666214ff9e7eb2 +RMD160 (rsnapshot-1.2.9.tar.gz) = 8574739936b6e6b802cbf66f0609807e1b60ee11 +Size (rsnapshot-1.2.9.tar.gz) = 177971 bytes +SHA1 (patch-aa) = 60fb3b966727ef46bc7c5ea33c2171bb9b102b53 diff --git a/sysutils/rsnapshot/patches/patch-aa b/sysutils/rsnapshot/patches/patch-aa index 8aff79aba77..6c38aeb1e41 100644 --- a/sysutils/rsnapshot/patches/patch-aa +++ b/sysutils/rsnapshot/patches/patch-aa @@ -1,130 +1,13 @@ -$NetBSD: patch-aa,v 1.3 2005/12/27 08:56:47 kim Exp $ +$NetBSD: patch-aa,v 1.4 2006/10/02 19:51:37 abs Exp $ ---- rsnapshot-program.pl.orig 2005-04-10 01:22:29.000000000 +0300 -+++ rsnapshot-program.pl 2005-12-25 11:16:47.000000000 +0200 -@@ -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); +--- Makefile.in.orig 2006-05-18 11:19:45.000000000 +0100 ++++ Makefile.in +@@ -546,7 +546,7 @@ doc: man html + man: rsnapshot.1 + rsnapshot.1 : rsnapshot + @# perl 5.8 for this +- /usr/bin/pod2man -c '' -n 'rsnapshot' -r '' rsnapshot > rsnapshot.1 ++ pod2man -c '' -n 'rsnapshot' -r '' rsnapshot > rsnapshot.1 - ######################################## - ### DECLARE GLOBAL VARIABLES ### -@@ -3277,24 +3278,9 @@ - - # CHOWN DEST (if root) - if (0 == $<) { -- # make sure destination is not a symlink -- if ( ! -l "$dest" ) { -- # print and/or log this if necessary -- if (($verbose > 4) or ($loglevel > 4)) { -- my $cmd_string = "chown(" . $st->uid . ", " . $st->gid . ", \"$dest\")"; -- -- if ($verbose > 4) { -- print_cmd($cmd_string); -- } elsif ($loglevel > 4) { -- log_msg($cmd_string, 4); -- } -- } -- -- $result = chown($st->uid, $st->gid, "$dest"); -- if (! $result) { -- print_err("Warning! Could not chown(" . $st->uid . ", " . $st->gid . ", \"$dest\");", 2); -- return(0); -- } -+ $result = safe_chown($st->uid, $st->gid, $dest); -+ if (! $result) { -+ return(0); - } - } - -@@ -3501,6 +3487,43 @@ - return (1); - } - -+# choose between lchown or chown -+sub safe_chown { -+ my $uid = shift(@_); -+ my $gid = shift(@_); -+ my $dest = shift(@_); -+ -+ my $result = 0; -+ -+ # logging -+ if (LCHOWN_AVAILABLE || ! -l $dest) { -+ # print and/or log this if necessary -+ if (($verbose > 4) or ($loglevel > 4)) { -+ my $cmd_string = 'chown(' . $uid . ', ' . $gid . ', "' . $dest . '")'; -+ if ($verbose > 4) { -+ print_cmd($cmd_string); -+ } elsif ($loglevel > 4) { -+ log_msg($cmd_string, 4); -+ } -+ } -+ } -+ -+ if (LCHOWN_AVAILABLE) { -+ $result = lchown($uid, $gid, $dest); -+ } else { -+ # make sure destination is not a symlink -+ if ( ! -l $dest ) { -+ $result = chown($uid, $gid, $dest); -+ } -+ } -+ -+ if (! $result) { -+ print_err('Warning! Could not safe_chown(' . $uid . ', ' . $gid . ', "' . $dest . '")', 2); -+ } -+ -+ return($result); -+} -+ - # accepts a path - # displays the rm command according to the config file - sub display_rm_rf { -@@ -3777,13 +3800,9 @@ - - # CHOWN DEST (if root) - if (0 == $<) { -- # make sure dest is not a symlink -- if ( ! -l "$dest" ) { -- $result = chown($st->uid, $st->gid, "$dest"); -- if (! $result) { -- print_err("Warning! Could not chown(" . $st->uid . ", " . $st->gid . ", \"$dest\");", 2); -- return(0); -- } -+ $result = safe_chown($st->uid, $st->gid, $dest); -+ if (! $result) { -+ return(0); - } - } - -@@ -3998,25 +4017,9 @@ - # CHOWN DEST (if root) - if (0 == $<) { - if ( -e "$dest" ) { -- # make sure destination is not a symlink -- if ( ! -l "$dest" ) { -- # print and/or log this if necessary -- if (($verbose > 4) or ($loglevel > 4)) { -- my $cmd_string = "chown(" . $st->uid . ", " . $st->gid . ", \"$dest\");"; -- -- if ($verbose > 4) { -- print_cmd($cmd_string); -- } elsif ($loglevel > 4) { -- log_msg($cmd_string, 4); -- } -- } -- -- $result = chown($st->uid, $st->gid, "$dest"); -- -- if (! $result) { -- print_err("Warning! Could not chown(" . $st->uid . ", " . $st->gid . ", \"$dest\")", 2); -- return (0); -- } -+ $result = safe_chown($st->uid, $st->gid, $dest); -+ if (! $result) { -+ return (0); - } - } - } + html: rsnapshot.html + rsnapshot.html: rsnapshot |