[csw-devel] SF.net SVN: gar:[9605] csw/mgar/pkg/cpan

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Sat Apr 10 11:19:46 CEST 2010


Revision: 9605
          http://gar.svn.sourceforge.net/gar/?rev=9605&view=rev
Author:   dmichelsen
Date:     2010-04-10 09:19:45 +0000 (Sat, 10 Apr 2010)

Log Message:
-----------
cpan/Net-Daemon: Initial commit

Added Paths:
-----------
    csw/mgar/pkg/cpan/Net-Daemon/
    csw/mgar/pkg/cpan/Net-Daemon/branches/
    csw/mgar/pkg/cpan/Net-Daemon/tags/
    csw/mgar/pkg/cpan/Net-Daemon/trunk/
    csw/mgar/pkg/cpan/Net-Daemon/trunk/Makefile
    csw/mgar/pkg/cpan/Net-Daemon/trunk/checksums
    csw/mgar/pkg/cpan/Net-Daemon/trunk/files/
    csw/mgar/pkg/cpan/Net-Daemon/trunk/files/COPYING
    csw/mgar/pkg/cpan/Net-Daemon/trunk/files/Net-Daemon-5.10-support.patch


Property changes on: csw/mgar/pkg/cpan/Net-Daemon/trunk
___________________________________________________________________
Added: svn:ignore
   + cookies
download
work


Added: svn:externals
   + gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2


Added: csw/mgar/pkg/cpan/Net-Daemon/trunk/Makefile
===================================================================
--- csw/mgar/pkg/cpan/Net-Daemon/trunk/Makefile	                        (rev 0)
+++ csw/mgar/pkg/cpan/Net-Daemon/trunk/Makefile	2010-04-10 09:19:45 UTC (rev 9605)
@@ -0,0 +1,24 @@
+GARNAME = Net-Daemon
+GARVERSION = 0.43
+CATEGORIES = cpan
+AUTHOR = MNOONING
+
+DESCRIPTION = Perl extension for portable daemons
+define BLURB
+endef
+
+# Good thing the locations have standards. But why have a standard when
+# people don't use it? :-(
+MASTER_SITES = $(addsuffix $(GARNAME)/,$(CPAN_MIRRORS))
+DISTNAME = $(GARNAME)
+
+DISTFILES = COPYING
+
+PATCHFILES = Net-Daemon-5.10-support.patch
+
+PACKAGES = CSWpmnetdaemon
+CATALOGNAME = pm_netdaemon
+
+ARCHALL = 1
+
+include gar/category.mk

Added: csw/mgar/pkg/cpan/Net-Daemon/trunk/checksums
===================================================================
--- csw/mgar/pkg/cpan/Net-Daemon/trunk/checksums	                        (rev 0)
+++ csw/mgar/pkg/cpan/Net-Daemon/trunk/checksums	2010-04-10 09:19:45 UTC (rev 9605)
@@ -0,0 +1,3 @@
+39d56829aa3534d7374f4deca992ddaf  COPYING
+a173a8407fb7b049aa465598eca6dfd7  Net-Daemon-0.43.tar.gz
+eeb72b048f2e65bc159dfcef3531a135  Net-Daemon-5.10-support.patch

Added: csw/mgar/pkg/cpan/Net-Daemon/trunk/files/COPYING
===================================================================
--- csw/mgar/pkg/cpan/Net-Daemon/trunk/files/COPYING	                        (rev 0)
+++ csw/mgar/pkg/cpan/Net-Daemon/trunk/files/COPYING	2010-04-10 09:19:45 UTC (rev 9605)
@@ -0,0 +1,3 @@
+You may distribute this package under the terms of either the GNU
+General Public License or the Artistic License, as specified in the
+Perl README file.

Added: csw/mgar/pkg/cpan/Net-Daemon/trunk/files/Net-Daemon-5.10-support.patch
===================================================================
--- csw/mgar/pkg/cpan/Net-Daemon/trunk/files/Net-Daemon-5.10-support.patch	                        (rev 0)
+++ csw/mgar/pkg/cpan/Net-Daemon/trunk/files/Net-Daemon-5.10-support.patch	2010-04-10 09:19:45 UTC (rev 9605)
@@ -0,0 +1,88 @@
+diff -ruad Net-Daemon/ChangeLog Net-Daemon-fixed/ChangeLog
+--- Net-Daemon/ChangeLog	2010-03-12 14:38:33.000000000 -0800
++++ Net-Daemon-fixed/ChangeLog	2010-03-12 14:45:56.000000000 -0800
+@@ -1,4 +1,7 @@
+-
++2009-03-12  Joe McMahon     <mcmahon at blekko.com> (0.44)
++	* Added necessary thread sharing to work with 5.10
++	  threads model: regexp-threads, 
++	* Bumped minimum required perl to 5.10.
+ 2007-06-17  Malcolm Nooning  <m.nooning at comcast.net> (0.43)
+         * lib/Net/Daemon.pm  Needed to up the VERSION number
+ 2007-06-16  Malcolm Nooning  <m.nooning at comcast.net> (0.42)
+diff -ruad Net-Daemon/lib/Net/Daemon.pm Net-Daemon-fixed/lib/Net/Daemon.pm
+--- Net-Daemon/lib/Net/Daemon.pm	2010-03-12 14:38:33.000000000 -0800
++++ Net-Daemon-fixed/lib/Net/Daemon.pm	2010-03-12 15:13:14.000000000 -0800
+@@ -20,7 +20,6 @@
+ #
+ ############################################################################
+ 
+-require 5.004;
+ use strict;
+ 
+ use Getopt::Long ();
+@@ -30,10 +29,21 @@
+ use Net::Daemon::Log ();
+ use POSIX ();
+ 
+-
+ package Net::Daemon;
+ 
+-$Net::Daemon::VERSION = '0.43';
++# Dummy share() in case we're not 5.10. If we are, require/import of 
++# threads::shared will replace it appropriately.
++my $this_is_510 = $^V ge v5.10.0;
++if ($this_is_510) {
++ no warnings 'redefine';
++ eval { require threads; };
++ eval { require threads::shared; };
++}
++else {
++  eval { require Threads; };
++}
++
++$Net::Daemon::VERSION = '0.43';
+ @Net::Daemon::ISA = qw(Net::Daemon::Log);
+ 
+ #
+@@ -41,6 +51,7 @@
+ #   regexp-threads.)
+ #
+ $Net::Daemon::RegExpLock = 1;
++threads::shared::share(\$Net::Daemon::RegExpLock) if $this_is_510;
+ 
+ use vars qw($exit);
+ 
+diff -ruad Net-Daemon/regexp-threads Net-Daemon-fixed/regexp-threads
+--- Net-Daemon/regexp-threads	2010-03-12 14:38:33.000000000 -0800
++++ Net-Daemon-fixed/regexp-threads	2010-03-12 15:11:30.000000000 -0800
+@@ -13,9 +13,18 @@
+ #
+ #
+ 
++my $this_is_510 = $^V ge v5.10.0;
++
+ use Thread ();
++if ($this_is_510) {
++  eval {require threads::shared};
++}
+ 
+ my $numChilds;
++if ($this_is_510) {
++  eval { threads::shared::share($numChilds) };
++}
++
+ my $regExpLock = @ARGV ? 1 : 0;
+ 
+ # Repeat generating a random number and check if it contains the
+diff -ruad Net-Daemon/t/threadm.t Net-Daemon-fixed/t/threadm.t
+--- Net-Daemon/t/threadm.t	2010-03-12 14:38:33.000000000 -0800
++++ Net-Daemon-fixed/t/threadm.t	2010-03-12 14:47:19.000000000 -0800
+@@ -24,7 +24,6 @@
+     exit 0;
+ }
+ 
+-
+ my($handle, $port);
+ if (@ARGV) {
+     $port = shift @ARGV;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list