diff options
author | Alin Năstac <mrness@gentoo.org> | 2006-08-28 05:27:52 +0000 |
---|---|---|
committer | Alin Năstac <mrness@gentoo.org> | 2006-08-28 05:27:52 +0000 |
commit | ee27a57dcaecb15bf275fdc76a843348fa9b8472 (patch) | |
tree | 0285f876f7641f05a695698c1924778f0dd97473 /net-proxy/polipo | |
parent | stable on ppc (Bug #144678) (diff) | |
download | gentoo-2-ee27a57dcaecb15bf275fdc76a843348fa9b8472.tar.gz gentoo-2-ee27a57dcaecb15bf275fdc76a843348fa9b8472.tar.bz2 gentoo-2-ee27a57dcaecb15bf275fdc76a843348fa9b8472.zip |
Improve cron script (#145246)
(Portage version: 2.1-r2)
Diffstat (limited to 'net-proxy/polipo')
-rw-r--r-- | net-proxy/polipo/ChangeLog | 8 | ||||
-rw-r--r-- | net-proxy/polipo/files/digest-polipo-0.9.9-r1 | 3 | ||||
-rw-r--r-- | net-proxy/polipo/files/polipo.crond | 7 | ||||
-rw-r--r-- | net-proxy/polipo/polipo-0.9.9-r1.ebuild | 54 |
4 files changed, 69 insertions, 3 deletions
diff --git a/net-proxy/polipo/ChangeLog b/net-proxy/polipo/ChangeLog index 079132283ed3..376f6d6cf327 100644 --- a/net-proxy/polipo/ChangeLog +++ b/net-proxy/polipo/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-proxy/polipo # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/polipo/ChangeLog,v 1.6 2006/07/05 19:12:06 mrness Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-proxy/polipo/ChangeLog,v 1.7 2006/08/28 05:27:52 mrness Exp $ + +*polipo-0.9.9-r1 (28 Aug 2006) + + 28 Aug 2006; Alin Nastac <mrness@gentoo.org> files/polipo.crond, + -polipo-0.9.9.ebuild, +polipo-0.9.9-r1.ebuild: + Improve cron script (#145246). 05 Jul 2006; Alin Nastac <mrness@gentoo.org> files/polipo.crond, polipo-0.9.9.ebuild: diff --git a/net-proxy/polipo/files/digest-polipo-0.9.9-r1 b/net-proxy/polipo/files/digest-polipo-0.9.9-r1 new file mode 100644 index 000000000000..afcc9e41480c --- /dev/null +++ b/net-proxy/polipo/files/digest-polipo-0.9.9-r1 @@ -0,0 +1,3 @@ +MD5 d58d3c123a3472a6b5bb5b0bb469cfd2 polipo-0.9.9.tar.gz 148476 +RMD160 edb282032f2875154205668405a632a475e2a1ab polipo-0.9.9.tar.gz 148476 +SHA256 506031599bf3006965d9d68ef15c4b8b576aabbef703239bc0c34e70c8ac5df6 polipo-0.9.9.tar.gz 148476 diff --git a/net-proxy/polipo/files/polipo.crond b/net-proxy/polipo/files/polipo.crond index 2df79b180432..c7667a392d90 100644 --- a/net-proxy/polipo/files/polipo.crond +++ b/net-proxy/polipo/files/polipo.crond @@ -1,4 +1,7 @@ -#!/bin/bash +#!/bin/sh #Expire old cached objects -nice -n 15 su -s /bin/sh -c 'polipo -x' polipo +kill -USR1 $(cat /var/run/polipo.pid) +sleep 1 +nice -n 15 su -s "/bin/sh" -c "polipo -x" polipo +kill -USR2 $(cat /var/run/polipo.pid) diff --git a/net-proxy/polipo/polipo-0.9.9-r1.ebuild b/net-proxy/polipo/polipo-0.9.9-r1.ebuild new file mode 100644 index 000000000000..401405d8adf7 --- /dev/null +++ b/net-proxy/polipo/polipo-0.9.9-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/polipo/polipo-0.9.9-r1.ebuild,v 1.1 2006/08/28 05:27:52 mrness Exp $ + +inherit eutils + +DESCRIPTION="A caching web proxy" +HOMEPAGE="http://www.pps.jussieu.fr/~jch/software/polipo/" +SRC_URI="http://www.pps.jussieu.fr/~jch/software/files/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 x86" +IUSE="" + +DEPEND="sys-apps/texinfo" + +pkg_setup() { + enewgroup polipo + enewuser polipo -1 -1 /var/cache/polipo polipo +} + +src_unpack() { + unpack ${A} + + epatch "${FILESDIR}/${P}-gentoo.patch" +} + +src_compile() { + emake "PREFIX=/usr" "CDEBUGFLAGS=${CFLAGS}" all || die "build failed" +} + +src_install() { + einstall "PREFIX=/usr" "TARGET=${D}" || die "install failed" + mv polipo.man polipo.1 + doman "${S}/polipo.1" + doinfo "${S}/polipo.info" + + exeinto /etc/init.d ; newexe "${FILESDIR}/polipo.initd" polipo + insinto /etc/polipo ; doins "${FILESDIR}/config" + exeinto /etc/cron.daily ; newexe "${FILESDIR}/polipo.crond" polipo.sh + + diropts -m0750 -o polipo -g polipo + dodir /var/cache/polipo +} + +pkg_preinst() { + pkg_setup +} + +pkg_postinst() { + einfo "Do not forget to read the manual." + einfo "Change the config file in /etc/polipo to suit your needs." +} |