summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorsten Veller <tove@gentoo.org>2008-10-23 07:24:03 +0000
committerTorsten Veller <tove@gentoo.org>2008-10-23 07:24:03 +0000
commit33805320a946b2ae2ed2dc1f825284c3a2c03c93 (patch)
tree1299c1d97184e58d23ac7b382ae319ef7fa38d75 /dev-perl/HTTP-Server-Simple
parentVersion bump (diff)
downloadhistorical-33805320a946b2ae2ed2dc1f825284c3a2c03c93.tar.gz
historical-33805320a946b2ae2ed2dc1f825284c3a2c03c93.tar.bz2
historical-33805320a946b2ae2ed2dc1f825284c3a2c03c93.zip
Version bump
Package-Manager: portage-2.2_rc12/cvs/Linux 2.6.26-tuxonice i686
Diffstat (limited to 'dev-perl/HTTP-Server-Simple')
-rw-r--r--dev-perl/HTTP-Server-Simple/ChangeLog8
-rw-r--r--dev-perl/HTTP-Server-Simple/HTTP-Server-Simple-0.35.ebuild22
-rw-r--r--dev-perl/HTTP-Server-Simple/Manifest11
-rw-r--r--dev-perl/HTTP-Server-Simple/files/0.35-debian.patch87
4 files changed, 123 insertions, 5 deletions
diff --git a/dev-perl/HTTP-Server-Simple/ChangeLog b/dev-perl/HTTP-Server-Simple/ChangeLog
index 22c9cb807e30..fa5ddba0b879 100644
--- a/dev-perl/HTTP-Server-Simple/ChangeLog
+++ b/dev-perl/HTTP-Server-Simple/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-perl/HTTP-Server-Simple
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-perl/HTTP-Server-Simple/ChangeLog,v 1.30 2008/09/15 18:55:18 tove Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-perl/HTTP-Server-Simple/ChangeLog,v 1.31 2008/10/23 07:24:03 tove Exp $
+
+*HTTP-Server-Simple-0.35 (23 Oct 2008)
+
+ 23 Oct 2008; Torsten Veller <tove@gentoo.org> +files/0.35-debian.patch,
+ +HTTP-Server-Simple-0.35.ebuild:
+ Version bump
15 Sep 2008; Torsten Veller <tove@gentoo.org>
-HTTP-Server-Simple-0.16.ebuild, -HTTP-Server-Simple-0.20.ebuild,
diff --git a/dev-perl/HTTP-Server-Simple/HTTP-Server-Simple-0.35.ebuild b/dev-perl/HTTP-Server-Simple/HTTP-Server-Simple-0.35.ebuild
new file mode 100644
index 000000000000..9a266da34c72
--- /dev/null
+++ b/dev-perl/HTTP-Server-Simple/HTTP-Server-Simple-0.35.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-perl/HTTP-Server-Simple/HTTP-Server-Simple-0.35.ebuild,v 1.1 2008/10/23 07:24:03 tove Exp $
+
+MODULE_AUTHOR=ALEXMV
+inherit perl-module eutils
+
+DESCRIPTION="Lightweight HTTP Server"
+
+SLOT="0"
+LICENSE="|| ( Artistic GPL-2 )"
+KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86"
+IUSE="test"
+
+RDEPEND="dev-lang/perl
+ dev-perl/URI"
+DEPEND="${RDEPEND}
+ test? ( dev-perl/Test-Pod
+ dev-perl/Test-Pod-Coverage )"
+
+SRC_TEST="do"
+PATCHES="${FILESDIR}/${PV}-debian.patch"
diff --git a/dev-perl/HTTP-Server-Simple/Manifest b/dev-perl/HTTP-Server-Simple/Manifest
index 0988f9e06ab6..7e25ff7875ee 100644
--- a/dev-perl/HTTP-Server-Simple/Manifest
+++ b/dev-perl/HTTP-Server-Simple/Manifest
@@ -2,16 +2,19 @@
Hash: SHA1
AUX 0.34-debian.patch 2190 RMD160 d37db966c37e3ad34484e888789085a8030cf2e4 SHA1 9c3e9e236cf08ad004719f320b272719d669b7f1 SHA256 ac354c155ec2de028989d4a3c29cc3acf699266fd167b1910598acbe84f109de
+AUX 0.35-debian.patch 2056 RMD160 d8fb522ba9c82231349fbc9673e4cc2fca61a0d4 SHA1 26b7cd29d5a727670a0c0f3e33bed8462a0012db SHA256 5e9282c45278e17b96bc678a79b17e23bdfb1b60efe9be328794929ab06d0922
DIST HTTP-Server-Simple-0.27.tar.gz 23330 RMD160 909115066240d9956bf02e46dd03ada4d7b21763 SHA1 aed637669d1a3ff7a350d78ad64dffb47f95fdb9 SHA256 5848cc49e600795e22db40c2aafc1e6d0da5bd6b04aa29f98393adf2fddf000f
DIST HTTP-Server-Simple-0.34.tar.gz 25734 RMD160 2cbb505a3ca6f2950fecb444985f94b6bb676690 SHA1 80c2a02d482e07a37861fc6146d62c561704db11 SHA256 df31c42b6bd59a52b2e91dbf25e6f2718c03a1ff0e2104a27e909eb6c0753039
+DIST HTTP-Server-Simple-0.35.tar.gz 25526 RMD160 4215a7aaddde38dbb430c5019d505110a039a7b7 SHA1 a5ce0761aa150878b47170e8b64f733e78889d35 SHA256 c3eaf03b58a277d2f573a1763810469f33c40309f9b94fdd4ded1a179e16c125
EBUILD HTTP-Server-Simple-0.27.ebuild 526 RMD160 8788b1344ea4836ce81d6c78dbf0ce632a7350d7 SHA1 b42d398ce10ae93186da97b5d66198e8a2c5e50e SHA256 4ff858058256fa2ae853087f03521a364af7a3b2027681d2f04ab6d07dc502a8
EBUILD HTTP-Server-Simple-0.34.ebuild 510 RMD160 e9d074808d6365e147879d82461213b68ee5692c SHA1 9bb90ee8ed28fdec4a1082561e2e32b29cf4fcb3 SHA256 ead6efb4dc54c3c886652842af4476978bfc99eef1ef0636436418e3571b3926
-MISC ChangeLog 4248 RMD160 d43b87786a30ed791a5c982d208bf125f6a9e73e SHA1 ab7f937d4c6cf053e299fb93fb4afb4f2397f684 SHA256 cf6189e42fdf66bd8e532d6f4bd06fa346ebf77dd317ed6e6d1c7d9f8da3cfb0
+EBUILD HTTP-Server-Simple-0.35.ebuild 594 RMD160 d9e61ed4663209d73e9ae0bc707a5ec7d5f10435 SHA1 6ffc97f9a16bffffe91ff5bee62f2117f7512bdd SHA256 a5e103ecacf4f7c961d550c9141f10ac61fa4d5bd8577c0a47615953fa385b39
+MISC ChangeLog 4413 RMD160 6a48f1509545d9c714758293e662f5d44e42ebb6 SHA1 f1dfadbd297803d9519069b542fe8d0e22cfd7e1 SHA256 2b68136985158c04d0d4f697562d98c1a6a9e09e6ef4d1b8f164c144d468d958
MISC metadata.xml 305 RMD160 647980838c590f54441a053916ea629e53e551c0 SHA1 99ef1deeae9a934fb6e46cf5fc4a5fcb8379a74a SHA256 f05dbef15061919972882cab07057e102760a542beba17d131194091401cd7ca
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
-iEYEARECAAYFAkjOr4QACgkQV3J2n04Eaux3VwCg1xPSxcPK7Db28nAhr8xnchgs
-Ng4AnRenZyeabLN2RRqhw8qKPWyHsZvD
-=gZca
+iEYEARECAAYFAkkAJoUACgkQV3J2n04EauwyRwCfX/jRUAQkwiyrbrkaErnz7Bp5
+kXAAnA1jBQjWfTqczp18ox6F+N7FOcyS
+=8yO4
-----END PGP SIGNATURE-----
diff --git a/dev-perl/HTTP-Server-Simple/files/0.35-debian.patch b/dev-perl/HTTP-Server-Simple/files/0.35-debian.patch
new file mode 100644
index 000000000000..800a2667c6c2
--- /dev/null
+++ b/dev-perl/HTTP-Server-Simple/files/0.35-debian.patch
@@ -0,0 +1,87 @@
+--- a/t/01live.t
++++ b/t/01live.t
+@@ -34,11 +34,7 @@ for my $class (@classes) {
+ }
+
+
+-TODO: {
+- local $TODO = "We don't currently wait for 'server is running' responses from the client";
+- run_server_tests('SlowServer');
+-
+-}
++run_server_tests('SlowServer');
+
+
+
+--- libhttp-server-simple-perl.orig/lib/HTTP/Server/Simple.pm
++++ libhttp-server-simple-perl/lib/HTTP/Server/Simple.pm
+@@ -6,6 +6,7 @@
+ use Socket;
+ use Carp;
+ use URI::Escape;
++use IO::Select;
+
+ use vars qw($VERSION $bad_request_doc);
+ $VERSION = '0.35';
+@@ -215,15 +216,36 @@
+
+ sub background {
+ my $self = shift;
++
++ # set up a pipe so the child can tell the parent when it's ready
++ # to accept requests
++ my ($readfh, $writefh) = FileHandle::pipe;
++
+ my $child = fork;
+ die "Can't fork: $!" unless defined($child);
+- return $child if $child;
++ if ($child) { # parent
++ my $s = IO::Select->new;
++ $s->add($readfh);
++ my $now = time; my $left = 0;
++ my @ready;
++ while(not @ready and $left < 5) {
++ @ready = $s->can_read($left);
++ $left = time - $now;
++ }
++ die("child unresponsive for 5 seconds") if(not @ready);
++ my $response = <$readfh>;
++ chomp $response;
++ die("child is confused: answer '$response' != 'OK'")
++ if $response ne "OK";
++ return $child;
++ }
+
+ if ( $^O !~ /MSWin32/ ) {
+ require POSIX;
+ POSIX::setsid()
+ or die "Can't start a new session: $!";
+ }
++ $self->{_parent_handle} = $writefh;
+ $self->run(@_);
+ }
+
+@@ -270,6 +292,7 @@
+ $self->after_setup_listener();
+ *{"$pkg\::run"} = $self->_default_run;
+ }
++ $self->_maybe_tell_parent();
+
+ local $SIG{HUP} = sub { $SERVER_SHOULD_RUN = 0; };
+
+@@ -407,6 +430,15 @@
+ }
+ }
+
++sub _maybe_tell_parent {
++ # inform the parent process that we're ready, if applicable
++ my $self = shift;
++ my $handle = $self->{_parent_handle};
++ return if !$handle;
++ print $handle "OK\n";
++ close $handle;
++ delete $self->{_parent_handle};
++}
+
+
+