pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/p5-File-Rsync Drop PLIST, since PERL5_PACKLIST mag...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7fafc9ab6cbe
branches:  trunk
changeset: 358266:7fafc9ab6cbe
user:      hauke <hauke%pkgsrc.org@localhost>
date:      Wed Feb 08 10:35:21 2017 +0000

description:
Drop PLIST, since PERL5_PACKLIST magic will take care of things.

Default to an absolute path for rsync. We explicitly depend on it,
and it may not be first in PATH, or not at all.

diffstat:

 net/p5-File-Rsync/Makefile               |  11 +++++++++--
 net/p5-File-Rsync/PLIST                  |   4 ----
 net/p5-File-Rsync/distinfo               |   3 ++-
 net/p5-File-Rsync/patches/patch-Rsync.pm |  16 ++++++++++++++++
 4 files changed, 27 insertions(+), 7 deletions(-)

diffs (70 lines):

diff -r 9b42d466fbe9 -r 7fafc9ab6cbe net/p5-File-Rsync/Makefile
--- a/net/p5-File-Rsync/Makefile        Wed Feb 08 10:13:29 2017 +0000
+++ b/net/p5-File-Rsync/Makefile        Wed Feb 08 10:35:21 2017 +0000
@@ -1,10 +1,11 @@
-# $NetBSD: Makefile,v 1.1 2017/02/07 09:50:32 hauke Exp $
+# $NetBSD: Makefile,v 1.2 2017/02/08 10:35:21 hauke Exp $
 
 DISTNAME=      File-Rsync-0.49
 PKGNAME=       p5-${DISTNAME}
-#PKGREVISION=  1
+PKGREVISION=   1
 CATEGORIES=    net perl5
 MASTER_SITES=  ${MASTER_SITE_PERL_CPAN:=../..//authors/id/L/LE/LEAKIN/}
+
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=      http://search.cpan.org/~leakin/File-Rsync/Rsync.pm
 COMMENT=       Perl module interface to rsync(1)
@@ -14,6 +15,12 @@
 
 REPLACE_PERL+=         test.pl
 
+SUBST_CLASSES+=                        fix-paths
+SUBST_STAGE.fix-paths=         pre-install
+SUBST_MESSAGE.fix-paths=       Fixing absolute paths
+SUBST_FILES.fix-paths=         Rsync.pm
+SUBST_SED.fix-paths+=          -e 's,@PREFIX@,${PREFIX},g'
+
 PERL5_MODULE_TYPE=      MakeMaker
 PERL5_PACKLIST=         auto/File/Rsync/.packlist
 
diff -r 9b42d466fbe9 -r 7fafc9ab6cbe net/p5-File-Rsync/PLIST
--- a/net/p5-File-Rsync/PLIST   Wed Feb 08 10:13:29 2017 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
-@comment $NetBSD: PLIST,v 1.1 2017/02/07 09:50:32 hauke Exp $
-${PERL5_SUB_INSTALLVENDORLIB}/File/Rsync.pm
-${PERL5_SUB_INSTALLVENDORARCH}/auto/File/Rsync/.packlist
-${PERL5_SUB_INSTALLVENDORMAN3DIR}/File::Rsync.3
diff -r 9b42d466fbe9 -r 7fafc9ab6cbe net/p5-File-Rsync/distinfo
--- a/net/p5-File-Rsync/distinfo        Wed Feb 08 10:13:29 2017 +0000
+++ b/net/p5-File-Rsync/distinfo        Wed Feb 08 10:35:21 2017 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.1 2017/02/07 09:50:32 hauke Exp $
+$NetBSD: distinfo,v 1.2 2017/02/08 10:35:21 hauke Exp $
 
 SHA1 (File-Rsync-0.49.tar.gz) = fee1c985bd3f5064cd47f2a9f10fd3d256b50e77
 RMD160 (File-Rsync-0.49.tar.gz) = 9953e960bb1132aaee9e6dd5fe56415e9416d7eb
 SHA512 (File-Rsync-0.49.tar.gz) = 2d8d227a5f7bedc97be678250b741c11279105f191ea773fb45b48fc8f3a3bf8f14e96103aa33fe8a6a5b2ae99e622dc2001f4df33a9de7b09d560f5b490cdb1
 Size (File-Rsync-0.49.tar.gz) = 21914 bytes
+SHA1 (patch-Rsync.pm) = 144875c61e2f119d2ac65a321472c355374ea8c3
diff -r 9b42d466fbe9 -r 7fafc9ab6cbe net/p5-File-Rsync/patches/patch-Rsync.pm
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/p5-File-Rsync/patches/patch-Rsync.pm  Wed Feb 08 10:35:21 2017 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-Rsync.pm,v 1.1 2017/02/08 10:35:21 hauke Exp $
+
+Default to an absolute path for rsync. We explicitly depend on it,
+and it may not be first in PATH, or not at all.
+
+--- Rsync.pm.orig      2016-03-09 20:36:13.000000000 +0000
++++ Rsync.pm
+@@ -241,7 +241,7 @@ sub new {
+       },
+       _perlopts => {
+          # the path name to the rsync binary (default is to use $PATH)
+-         'path-to-rsync' => 'rsync',
++         'path-to-rsync' => '@PREFIX@/bin/rsync',
+          # hostname of source, used if 'source' is an array reference
+          'srchost' => '',
+          # double-quote source and/or destination paths



Home | Main Index | Thread Index | Old Index