diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2007-05-13 08:18:36 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2007-05-13 08:18:36 +0000 |
commit | ad5350b18312589bda538f7133d877e0f3f17b2d (patch) | |
tree | 06280e73f4114287f1abd9d9c9400f9fcc233946 /dev-perl | |
parent | Patch gearmand to have a suitable cmdline in the process listing, and thus si... (diff) | |
download | historical-ad5350b18312589bda538f7133d877e0f3f17b2d.tar.gz historical-ad5350b18312589bda538f7133d877e0f3f17b2d.tar.bz2 historical-ad5350b18312589bda538f7133d877e0f3f17b2d.zip |
Patch perlbal to have a suitable cmdline in the process listing, and add an init script now that it is possible.
Package-Manager: portage-2.1.2.7
Diffstat (limited to 'dev-perl')
-rw-r--r-- | dev-perl/Perlbal/ChangeLog | 11 | ||||
-rw-r--r-- | dev-perl/Perlbal/Manifest | 28 | ||||
-rw-r--r-- | dev-perl/Perlbal/Perlbal-1.58.ebuild | 44 | ||||
-rw-r--r-- | dev-perl/Perlbal/files/Perlbal-1.58-Use-saner-name-in-process-listing.patch | 34 | ||||
-rw-r--r-- | dev-perl/Perlbal/files/digest-Perlbal-1.58 | 3 | ||||
-rw-r--r-- | dev-perl/Perlbal/files/perlbal_conf.d_1.58 | 5 | ||||
-rwxr-xr-x | dev-perl/Perlbal/files/perlbal_init.d_1.58 | 25 |
7 files changed, 145 insertions, 5 deletions
diff --git a/dev-perl/Perlbal/ChangeLog b/dev-perl/Perlbal/ChangeLog index 73410b7d74b9..ed15e2cf0565 100644 --- a/dev-perl/Perlbal/ChangeLog +++ b/dev-perl/Perlbal/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for dev-perl/Perlbal # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-perl/Perlbal/ChangeLog,v 1.1 2007/04/30 06:01:23 robbat2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Perlbal/ChangeLog,v 1.2 2007/05/13 08:18:36 robbat2 Exp $ + +*Perlbal-1.58 (13 May 2007) + + 13 May 2007; Robin H. Johnson <robbat2@gentoo.org> + +files/Perlbal-1.58-Use-saner-name-in-process-listing.patch, + +files/perlbal_conf.d_1.58, +files/perlbal_init.d_1.58, + +Perlbal-1.58.ebuild: + Patch perlbal to have a suitable cmdline in the process listing, and add an + init script now that it is possible. *Perlbal-1.57 (30 Apr 2007) diff --git a/dev-perl/Perlbal/Manifest b/dev-perl/Perlbal/Manifest index 02f6475acba7..83597f6718b2 100644 --- a/dev-perl/Perlbal/Manifest +++ b/dev-perl/Perlbal/Manifest @@ -1,12 +1,29 @@ +AUX Perlbal-1.58-Use-saner-name-in-process-listing.patch 926 RMD160 dc073c5689f69f56f7a717ad9130683bd3ae275b SHA1 8b0f5b90de360851186eaf7565521ee61d71ae9f SHA256 f35ca0b33ded99dc04b372f90379ced98926d58fe4fde82e10d4c08981276441 +MD5 7ba5c847e3536bf76fc8cb97bfc250cb files/Perlbal-1.58-Use-saner-name-in-process-listing.patch 926 +RMD160 dc073c5689f69f56f7a717ad9130683bd3ae275b files/Perlbal-1.58-Use-saner-name-in-process-listing.patch 926 +SHA256 f35ca0b33ded99dc04b372f90379ced98926d58fe4fde82e10d4c08981276441 files/Perlbal-1.58-Use-saner-name-in-process-listing.patch 926 +AUX perlbal_conf.d_1.58 284 RMD160 d30085cde975164a29ca053ec937a1e0c83dd218 SHA1 e02ffbc0619b87fa90deae3a36047c04ead26543 SHA256 fd3e8dc182c3c166c3fd11fc7d5164df2f6645a56b8f47d1eec03883479a8990 +MD5 5667498f0a46173b629e7e43407457e0 files/perlbal_conf.d_1.58 284 +RMD160 d30085cde975164a29ca053ec937a1e0c83dd218 files/perlbal_conf.d_1.58 284 +SHA256 fd3e8dc182c3c166c3fd11fc7d5164df2f6645a56b8f47d1eec03883479a8990 files/perlbal_conf.d_1.58 284 +AUX perlbal_init.d_1.58 481 RMD160 4265b2fbe70cb83eab0a20f74751b16837591552 SHA1 588f11d61e8579f0c857f363cd983614723e7b2c SHA256 b4958c72d8f4ebb9486772d455d3d0d22ad83e46409abe3a05d8185004457911 +MD5 821d8398f146ead52900e99e984bb320 files/perlbal_init.d_1.58 481 +RMD160 4265b2fbe70cb83eab0a20f74751b16837591552 files/perlbal_init.d_1.58 481 +SHA256 b4958c72d8f4ebb9486772d455d3d0d22ad83e46409abe3a05d8185004457911 files/perlbal_init.d_1.58 481 DIST Perlbal-1.57.tar.gz 128177 RMD160 cc3f0b0c423779f51ee026ca6ded95f6e5f388a5 SHA1 3ce397e91d6dc2914c40389117daf9c671aba800 SHA256 fa219a07236d547b6acfab7416491d9408b5d8a8aff9794525c5b3cf791a1ec8 +DIST Perlbal-1.58.tar.gz 128557 RMD160 fd42bb7df27631b83ec15e9cb6acf97cddeeb8b9 SHA1 bb1b4c565019ca71af6495e09cb9168a259a0dfc SHA256 01324bdaac313bed0ce579141ee119664ab9adb819953aade61e5b1521078bf6 EBUILD Perlbal-1.57.ebuild 914 RMD160 7a8b64a1430011e19ef31303e4655f42fe868e44 SHA1 9b35c0057d8cfaf9daee033445a217caf1a56e29 SHA256 b53c0221ac25ac6ddf8b473977cdef45de7b329ff0236d27a899aea7f592f6a2 MD5 f56f801745a445577fe8c0c5c4768529 Perlbal-1.57.ebuild 914 RMD160 7a8b64a1430011e19ef31303e4655f42fe868e44 Perlbal-1.57.ebuild 914 SHA256 b53c0221ac25ac6ddf8b473977cdef45de7b329ff0236d27a899aea7f592f6a2 Perlbal-1.57.ebuild 914 -MISC ChangeLog 395 RMD160 df69615e4611c27fe920c161800ff7b21ea33012 SHA1 1912d9e52c92fb2cc3578844c4cfa32d25227536 SHA256 de7c6d92b37468da384683adf36def343528bbdeb7373d161ad326157ae8208a -MD5 014f6520b146f07354a568fbb1aa311b ChangeLog 395 -RMD160 df69615e4611c27fe920c161800ff7b21ea33012 ChangeLog 395 -SHA256 de7c6d92b37468da384683adf36def343528bbdeb7373d161ad326157ae8208a ChangeLog 395 +EBUILD Perlbal-1.58.ebuild 1237 RMD160 ba9a67ac5e352b3e00f1647eb1b74d7d0eb93670 SHA1 e28ce9f48491cf83ebc0480b60982254accd7409 SHA256 b0c8e4f31d914e420b2ae06b8cbc6bdb906c14a6fd3809200cc34b3baac780f5 +MD5 1b2cdf7be3042d5e4919e4ae427aa3f9 Perlbal-1.58.ebuild 1237 +RMD160 ba9a67ac5e352b3e00f1647eb1b74d7d0eb93670 Perlbal-1.58.ebuild 1237 +SHA256 b0c8e4f31d914e420b2ae06b8cbc6bdb906c14a6fd3809200cc34b3baac780f5 Perlbal-1.58.ebuild 1237 +MISC ChangeLog 740 RMD160 19e48bcab5a92e4a9d8602982dd593ce35441652 SHA1 679ddb3c6d54669324879e1c7bcd5bf47fa915fa SHA256 e017b4a536f4f9f4d3cd6bed6ab02a66282b2d0e3117b3f98f307f16ceae7de5 +MD5 72b51ba60add37081b2cecae050e41bf ChangeLog 740 +RMD160 19e48bcab5a92e4a9d8602982dd593ce35441652 ChangeLog 740 +SHA256 e017b4a536f4f9f4d3cd6bed6ab02a66282b2d0e3117b3f98f307f16ceae7de5 ChangeLog 740 MISC metadata.xml 271 RMD160 33d1e6d38b3ecde19f2a3a873476e4fc03fd0a41 SHA1 1b49b2ba691f42cbf4f86231769f560b7232453a SHA256 0670df6d1cf19fc80b5a9b574234d0d260f42c2c1889155d94922b0d63976ac2 MD5 2df9d8023d665f58666b098375350645 metadata.xml 271 RMD160 33d1e6d38b3ecde19f2a3a873476e4fc03fd0a41 metadata.xml 271 @@ -14,3 +31,6 @@ SHA256 0670df6d1cf19fc80b5a9b574234d0d260f42c2c1889155d94922b0d63976ac2 metadata MD5 69d89fb857cf1c9783ae17fd14f5878e files/digest-Perlbal-1.57 238 RMD160 ea2cc4f37669f6e1cf0013326ffa41a4db5ff9f2 files/digest-Perlbal-1.57 238 SHA256 d81272230a0473c329d5de8da6ffebfe298dc886014fcbeca93aa04d0a44eb71 files/digest-Perlbal-1.57 238 +MD5 d121076c984f9899e12c546592d7b760 files/digest-Perlbal-1.58 238 +RMD160 43f7ef63bb4b6d070fe288ca0c53f905536d7979 files/digest-Perlbal-1.58 238 +SHA256 aa1ebd9a32e5cd06af42d73a6f891be6927dbcc29bb14a7d677f220913ebd700 files/digest-Perlbal-1.58 238 diff --git a/dev-perl/Perlbal/Perlbal-1.58.ebuild b/dev-perl/Perlbal/Perlbal-1.58.ebuild new file mode 100644 index 000000000000..fd9a5b2e90ba --- /dev/null +++ b/dev-perl/Perlbal/Perlbal-1.58.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Perlbal/Perlbal-1.58.ebuild,v 1.1 2007/05/13 08:18:36 robbat2 Exp $ + +inherit perl-module + +DESCRIPTION="Reverse-proxy load balancer and webserver" +HOMEPAGE="http://search.cpan.org/search?query=Perlbal&mode=dist" +SRC_URI="mirror://cpan/authors/id/B/BR/BRADFITZ/${P}.tar.gz" + +IUSE="" + +SLOT="0" +LICENSE="|| ( Artistic GPL-2 )" +KEYWORDS="~amd64 ~ppc ~x86" + +DEPEND="dev-perl/libwww-perl + >=dev-perl/Danga-Socket-1.57 + dev-perl/Sys-Syscall + dev-perl/BSD-Resource + dev-lang/perl" +#SRC_TEST="do" # testing not available on Perlbal yet ;-) +mydoc="CHANGES" + +PATCHES="${FILESDIR}/${PN}-1.58-Use-saner-name-in-process-listing.patch" + +src_install() { + perl-module_src_install || die "perl-module_src_install failed" + cd ${S} + dodoc doc/*.txt + docinto hacking + dodoc doc/hacking/*.txt + docinto conf + dodoc conf/*.{dat,conf} + keepdir /etc/perlbal + newinitd ${FILESDIR}/perlbal_init.d_1.58 perlbal + newconfd ${FILESDIR}/perlbal_conf.d_1.58 perlbal +} + +pkg_postinst() { + perl-module_pkg_postinst + einfo "Please see the example configuration files located" + einfo "within /usr/share/doc/${PF}/conf/" +} diff --git a/dev-perl/Perlbal/files/Perlbal-1.58-Use-saner-name-in-process-listing.patch b/dev-perl/Perlbal/files/Perlbal-1.58-Use-saner-name-in-process-listing.patch new file mode 100644 index 000000000000..1ccafb9cb9b7 --- /dev/null +++ b/dev-perl/Perlbal/files/Perlbal-1.58-Use-saner-name-in-process-listing.patch @@ -0,0 +1,34 @@ +From 75b0930eb392c6389f6e96b0c1df067ae917b962 Mon Sep 17 00:00:00 2001 +From: Robin H. Johnson <robbat2@gentoo.org> +Date: Sat, 12 May 2007 21:32:53 -0700 +Subject: [PATCH perlbal] Use saner name in process listing. + +Normally the binary will turn up in the process list as: +/usr/bin/perl $SCRIPTNAME + +By adding a single line, we can make it be simply '$SCRIPTNAME'. +This makes writing init.d scripts signficently easier. + +Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> +--- + perlbal | 4 ++++ + 1 files changed, 4 insertions(+), 0 deletions(-) + +diff --git a/perlbal b/perlbal +index f0149b3..7a9d28c 100755 +--- a/perlbal ++++ b/perlbal +@@ -37,6 +37,10 @@ my $opt_daemonize; + my $opt_config; + my $opt_help; + my $opt_version; ++ ++# Rename binary in process list to make init scripts saner ++$0 = $_ = $0; ++ + usage(1) unless + Getopt::Long::GetOptions( + 'daemon' => \$opt_daemonize, +-- +1.5.1.4 + diff --git a/dev-perl/Perlbal/files/digest-Perlbal-1.58 b/dev-perl/Perlbal/files/digest-Perlbal-1.58 new file mode 100644 index 000000000000..c79471b0d6b9 --- /dev/null +++ b/dev-perl/Perlbal/files/digest-Perlbal-1.58 @@ -0,0 +1,3 @@ +MD5 74fcead0bceef6d8ef454ae6656ced88 Perlbal-1.58.tar.gz 128557 +RMD160 fd42bb7df27631b83ec15e9cb6acf97cddeeb8b9 Perlbal-1.58.tar.gz 128557 +SHA256 01324bdaac313bed0ce579141ee119664ab9adb819953aade61e5b1521078bf6 Perlbal-1.58.tar.gz 128557 diff --git a/dev-perl/Perlbal/files/perlbal_conf.d_1.58 b/dev-perl/Perlbal/files/perlbal_conf.d_1.58 new file mode 100644 index 000000000000..f500cb435317 --- /dev/null +++ b/dev-perl/Perlbal/files/perlbal_conf.d_1.58 @@ -0,0 +1,5 @@ +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Perlbal/files/perlbal_conf.d_1.58,v 1.1 2007/05/13 08:18:36 robbat2 Exp $ +# PIDFILE is not yet used, pending upstream still +#PIDFILE="/var/run/perlbal.pid" +PERLBAL_OPTS="--daemon --config=/etc/perlbal/perlbal.conf" +# vim: ft=gentoo-conf-d: diff --git a/dev-perl/Perlbal/files/perlbal_init.d_1.58 b/dev-perl/Perlbal/files/perlbal_init.d_1.58 new file mode 100755 index 000000000000..38f64f4960d7 --- /dev/null +++ b/dev-perl/Perlbal/files/perlbal_init.d_1.58 @@ -0,0 +1,25 @@ +#!/sbin/runscript +# $Header: /var/cvsroot/gentoo-x86/dev-perl/Perlbal/files/perlbal_init.d_1.58,v 1.1 2007/05/13 08:18:36 robbat2 Exp $ + +NAME="perlbal" +BINARY="/usr/bin/perlbal" + +depend() { + use net +} + +start() { + ebegin "Starting $NAME" + # Add --pidfile when upstream supports PIDFILES + start-stop-daemon --start \ + --exec ${BINARY} -- ${PERLBAL_OPTS} + eend $? +} + +stop() { + ebegin "Stopping $NAME" + start-stop-daemon --stop --exec "${BINARY}" + eend $? +} + +# vim: ft=gentoo-init-d: |