aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2002-05-24 20:54:34 +0800
committerijliao <ijliao@FreeBSD.org>2002-05-24 20:54:34 +0800
commit62d117d71c32d127c8ddcc7405c17a910dca90d1 (patch)
treefe7767b0dc59cc14a23de31dc2c78f8fda324683 /net
parentc5519ffd68f5057c8797fcb19195a17f404ef2a8 (diff)
downloadfreebsd-ports-gnome-62d117d71c32d127c8ddcc7405c17a910dca90d1.tar.gz
freebsd-ports-gnome-62d117d71c32d127c8ddcc7405c17a910dca90d1.tar.zst
freebsd-ports-gnome-62d117d71c32d127c8ddcc7405c17a910dca90d1.zip
add p5-Spread-Session 0.2
Perl OO wrapper for Spread messaging toolkit PR: 36815 Submitted by: Joshua Goodall <joshua@roughtrade.net>
Diffstat (limited to 'net')
-rw-r--r--net/Makefile1
-rw-r--r--net/p5-Spread-Session/Makefile26
-rw-r--r--net/p5-Spread-Session/distinfo1
-rw-r--r--net/p5-Spread-Session/files/patch-Makefile.PL13
-rw-r--r--net/p5-Spread-Session/files/patch-Session.pm30
-rw-r--r--net/p5-Spread-Session/pkg-comment1
-rw-r--r--net/p5-Spread-Session/pkg-descr6
-rw-r--r--net/p5-Spread-Session/pkg-plist5
8 files changed, 83 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile
index 3ef2d045f65a..d020f279e8db 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -354,6 +354,7 @@
SUBDIR += p5-SOAP-Lite
SUBDIR += p5-Socket6
SUBDIR += p5-Socks
+ SUBDIR += p5-Spread-Session
SUBDIR += p5-Telnet-Cisco
SUBDIR += p5-Tie-NetAddr-IP
SUBDIR += p5-URI
diff --git a/net/p5-Spread-Session/Makefile b/net/p5-Spread-Session/Makefile
new file mode 100644
index 000000000000..bec40bc472a3
--- /dev/null
+++ b/net/p5-Spread-Session/Makefile
@@ -0,0 +1,26 @@
+# New ports collection makefile for: p5-Spread-Session
+# Date created: May 24th 2002
+# Whom: Joshua Goodall <joshua@roughtrade.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= Spread-Session
+PORTVERSION= 0.2
+CATEGORIES= net perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN} \
+ http://www.roughtrade.net/distfiles/
+MASTER_SITE_SUBDIR= ../by-authors/id/J/JM/JMAY
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= joshua@roughtrade.net
+
+BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Spread.pm:${PORTSDIR}/net/spread
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+PERL_CONFIGURE= yes
+
+MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
+MAN3= Spread::Session.3
+
+.include <bsd.port.mk>
diff --git a/net/p5-Spread-Session/distinfo b/net/p5-Spread-Session/distinfo
new file mode 100644
index 000000000000..47643bf23a39
--- /dev/null
+++ b/net/p5-Spread-Session/distinfo
@@ -0,0 +1 @@
+MD5 (Spread-Session-0.2.tar.gz) = 1ac0f4f0beb0bf31e3538c287dc8903e
diff --git a/net/p5-Spread-Session/files/patch-Makefile.PL b/net/p5-Spread-Session/files/patch-Makefile.PL
new file mode 100644
index 000000000000..dad8489981d9
--- /dev/null
+++ b/net/p5-Spread-Session/files/patch-Makefile.PL
@@ -0,0 +1,13 @@
+--- Makefile.PL.orig Mon Mar 25 08:47:50 2002
++++ Makefile.PL Wed Apr 3 01:03:40 2002
+@@ -4,10 +4,6 @@
+ WriteMakefile(
+ 'NAME' => 'Spread::Session',
+ 'VERSION_FROM' => 'Session.pm', # finds $VERSION
+- 'PREREQ_PM' => {
+- Log::Channel => 0.4,
+- Event => 0.85, # for test cases
+- },
+ ($] >= 5.005 ? ## Add these new keywords supported since 5.005
+ (ABSTRACT_FROM => 'Session.pm', # retrieve abstract from module
+ AUTHOR => 'Jason W. May <jmay@pobox.com>') : ()),
diff --git a/net/p5-Spread-Session/files/patch-Session.pm b/net/p5-Spread-Session/files/patch-Session.pm
new file mode 100644
index 000000000000..4afd3d9bd0d4
--- /dev/null
+++ b/net/p5-Spread-Session/files/patch-Session.pm
@@ -0,0 +1,30 @@
+--- Session.pm.orig Sat Apr 6 16:12:24 2002
++++ Session.pm Sat Apr 6 16:13:03 2002
+@@ -46,7 +46,6 @@
+ use strict;
+ #use warnings;
+ use Carp;
+-use Log::Channel;
+ use Spread;
+
+ use vars qw($VERSION);
+@@ -55,9 +54,17 @@
+ my $DEFAULT_TIMEOUT = 5;
+
+ BEGIN {
+- my $log = new Log::Channel;
++ my ($log, $msglog);
++ if (defined eval "require Log::Channel") {
++ $log = new Log::Channel;
++ $msglog = new Log::Channel("message");
++ } else {
++ # no log::channel, disable all the logging
++ $log = sub {};
++ $msglog = sub {};
++ }
++
+ sub sslog { $log->(@_) }
+- my $msglog = new Log::Channel("message");
+ sub msglog { $msglog->(@_) }
+ }
+
diff --git a/net/p5-Spread-Session/pkg-comment b/net/p5-Spread-Session/pkg-comment
new file mode 100644
index 000000000000..abd1f3101077
--- /dev/null
+++ b/net/p5-Spread-Session/pkg-comment
@@ -0,0 +1 @@
+Perl OO wrapper for Spread messaging toolkit
diff --git a/net/p5-Spread-Session/pkg-descr b/net/p5-Spread-Session/pkg-descr
new file mode 100644
index 000000000000..49bae11496da
--- /dev/null
+++ b/net/p5-Spread-Session/pkg-descr
@@ -0,0 +1,6 @@
+This is a wrapper module for Spread.pm (part of the standard Spread
+distribution), providing an object-oriented interface to the Spread
+messaging toolkit instead of Spread.pm's more direct interface
+to the C API's.
+
+- Joshua Goodall <joshua@roughtrade.net>
diff --git a/net/p5-Spread-Session/pkg-plist b/net/p5-Spread-Session/pkg-plist
new file mode 100644
index 000000000000..6fd057a70d8f
--- /dev/null
+++ b/net/p5-Spread-Session/pkg-plist
@@ -0,0 +1,5 @@
+lib/perl5/site_perl/%%PERL_VER%%/Spread/Session.pm
+lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Spread/Session/.packlist
+@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Spread/Session
+@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Spread 2>/dev/null || true
+@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/Spread 2>/dev/null || true