Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 May 2001 22:54:16 -0400 (EDT)
From:      petef@databits.net
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/27484: New port: net/p5-File-Rsync
Message-ID:  <200105210254.f4L2sGE00620@electron.databits.net>

next in thread | raw e-mail | index | archive | help

>Number:         27484
>Category:       ports
>Synopsis:       New port: net/p5-File-Rsync
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 20 20:00:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Pete Fritchman
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
Databits Network Services, Inc.
>Environment:
System: FreeBSD electron.databits.net 4.3-STABLE FreeBSD 4.3-STABLE #4: Sun Apr 22 21:17:37 EDT 2001 root@electron.databits.net:/usr/obj/usr/src/sys/ELECTRON i386

>Description:

Perl convenience wrapper for the rsync(1) program

>How-To-Repeat:

N/A

>Fix:

(http://hex.databits.net/~petef/freebsd/p5-File-Rsync.shar)

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	p5-File-Rsync
#	p5-File-Rsync/Makefile
#	p5-File-Rsync/distinfo
#	p5-File-Rsync/pkg-comment
#	p5-File-Rsync/pkg-descr
#	p5-File-Rsync/pkg-plist
#	p5-File-Rsync/files
#	p5-File-Rsync/files/patch-Makefile.PL
#	p5-File-Rsync/files/patch-makepm.PL
#
echo c - p5-File-Rsync
mkdir -p p5-File-Rsync > /dev/null 2>&1
echo x - p5-File-Rsync/Makefile
sed 's/^X//' >p5-File-Rsync/Makefile << 'END-of-p5-File-Rsync/Makefile'
X# New ports collection makefile for:	p5-File-Rsync
X# Date created:				20 May 2001
X# Whom:					petef@databits.net
X#
X# $FreeBSD$
X#
X
XPORTNAME=	File-Rsync
XPORTVERSION= 	0.19
XCATEGORIES=	net perl5
XMASTER_SITES=	${MASTER_SITE_PERL_CPAN}
XMASTER_SITE_SUBDIR=	File
XPKGNAMEPREFIX=	p5-
X
XMAINTAINER=     petef@databits.net
X
XRUN_DEPENDS=	rsync:${PORTSDIR}/net/rsync
X
XPERL_CONFIGURE=	yes
XMAN3=		File::Rsync.3
XMANPREFIX=	${PREFIX}/lib/perl5/${PERL_VERSION}
X
X.include <bsd.port.mk>
END-of-p5-File-Rsync/Makefile
echo x - p5-File-Rsync/distinfo
sed 's/^X//' >p5-File-Rsync/distinfo << 'END-of-p5-File-Rsync/distinfo'
XMD5 (File-Rsync-0.19.tar.gz) = 7cbbc1388c2704d6d7041241b3f98917
END-of-p5-File-Rsync/distinfo
echo x - p5-File-Rsync/pkg-comment
sed 's/^X//' >p5-File-Rsync/pkg-comment << 'END-of-p5-File-Rsync/pkg-comment'
XPerl convenience wrapper for the rsync(1) program
END-of-p5-File-Rsync/pkg-comment
echo x - p5-File-Rsync/pkg-descr
sed 's/^X//' >p5-File-Rsync/pkg-descr << 'END-of-p5-File-Rsync/pkg-descr'
XThe File::Rsync Perl module is a convenience wrapper to the rsync(1)
Xcommand.  It has wrappers for almost all the rsync commands and features,
Xas well as detecting errors.
X
XFor more details, type 'perldoc File::Rsync' or see the CPAN homepage:
X
XWWW: http://search.cpan.org/search?dist=File-Rsync
X
X- Pete 
Xpetef@databits.net
END-of-p5-File-Rsync/pkg-descr
echo x - p5-File-Rsync/pkg-plist
sed 's/^X//' >p5-File-Rsync/pkg-plist << 'END-of-p5-File-Rsync/pkg-plist'
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/File/Rsync/.packlist
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/File/Rsync.pm
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/File/Rsync/Config.pm
X@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/File/Rsync
X@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/File 2>/dev/null || true
X@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/File/Rsync
X@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/File 2>/dev/null || true
END-of-p5-File-Rsync/pkg-plist
echo c - p5-File-Rsync/files
mkdir -p p5-File-Rsync/files > /dev/null 2>&1
echo x - p5-File-Rsync/files/patch-Makefile.PL
sed 's/^X//' >p5-File-Rsync/files/patch-Makefile.PL << 'END-of-p5-File-Rsync/files/patch-Makefile.PL'
X--- Makefile.PL.orig	Sun May 20 10:30:46 2001
X+++ Makefile.PL	Sun May 20 10:33:25 2001
X@@ -16,7 +16,7 @@
X       DISTNAME       => $DISTNAME,
X       AUTHOR         => $AUTHOR,
X       ABSTRACT       => $ABSTRACT,
X-      PL_FILES       => { 'makepm.PL' => 'Config.pm' },
X+      PL_FILES       => { 'makepm.PL ${LOCALBASE}' => 'Config.pm' },
X       PM             => { 'Rsync.pm'  => '$(INST_LIB)/File/Rsync.pm',
X      			  'Config.pm' => '$(INST_ARCHLIB)/File/Rsync/Config.pm' },
X       dist           => { COMPRESS => 'gzip', SUFFIX => 'gz' },
END-of-p5-File-Rsync/files/patch-Makefile.PL
echo x - p5-File-Rsync/files/patch-makepm.PL
sed 's/^X//' >p5-File-Rsync/files/patch-makepm.PL << 'END-of-p5-File-Rsync/files/patch-makepm.PL'
X--- makepm.PL.orig	Sun May 20 10:23:34 2001
X+++ makepm.PL	Sun May 20 10:30:05 2001
X@@ -1,32 +1,8 @@
X # makepm.PL -- Builds Rsync.pm from Rsync.in.  -*- perl -*-
X-sub find_rsync {
X-   my @dirs = map { s/^$/./; $_ } split (':', $ENV{PATH});
X-   push (@dirs, qw(/usr/local/bin /usr/bin /opt/bin));
X-   for my $dir (@dirs) {
X-      next unless -d $dir;
X-      next unless -x "$dir/rsync";
X-      return "$dir/rsync";
X-   }
X-}
X $|=1;
X-$RSYNC=&find_rsync;
X-print <<'EOT';
X-
X-File::Rsync needs to know the path to the rsync binary.  This path is encoded
X-in the installed module as the default path to rsync (it can be overridden
X-at runtime).  Please enter the full path to the rsync program or just hit
X-Enter if the guess is correct.  (If you always want the module to depend on
X-the $PATH environment variable at runtime, just set the path to 'rsync'
X-(this is not recommended)).
X-
X-EOT
X-$RSYNC||='/usr/local/bin/rsync';
X-print "Path to rsync [$RSYNC]: ";
X-my $ans=<STDIN>;
X-chomp $ans;
X-$RSYNC=$ans || $RSYNC;
X-$RSYNC=~s/\\/\\\\/g;
X-$RSYNC=~s/\'/\\\'/g;
X+$PREFIX=@ARGV[0];
X+$RSYNC=$PREFIX . "/rsync";
X+print "Path to rsync [$RSYNC]";
X open IN,'Config.in' or die "Cannot read Config.in: $!\n";
X open OUT,'>Config.pm' or die "Cannot write Config.pm: $!\n";
X while (<IN>) {
END-of-p5-File-Rsync/files/patch-makepm.PL
exit

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105210254.f4L2sGE00620>