diff options
author | Alin Năstac <mrness@gentoo.org> | 2006-09-06 20:29:15 +0000 |
---|---|---|
committer | Alin Năstac <mrness@gentoo.org> | 2006-09-06 20:29:15 +0000 |
commit | 0139c96e80b22f253a628729251457730fc31e9f (patch) | |
tree | ba8adaf188e70825d211958c2b880b92ac3fed5b /net-proxy/polipo | |
parent | Add ~x86-fbsd keyword. (diff) | |
download | gentoo-2-0139c96e80b22f253a628729251457730fc31e9f.tar.gz gentoo-2-0139c96e80b22f253a628729251457730fc31e9f.tar.bz2 gentoo-2-0139c96e80b22f253a628729251457730fc31e9f.zip |
Minor changes in cron script (#145246) and init script (#145681).
(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-r2 | 3 | ||||
-rw-r--r-- | net-proxy/polipo/files/polipo.crond | 2 | ||||
-rw-r--r-- | net-proxy/polipo/files/polipo.initd | 6 | ||||
-rw-r--r-- | net-proxy/polipo/polipo-0.9.9-r2.ebuild | 54 |
5 files changed, 66 insertions, 7 deletions
diff --git a/net-proxy/polipo/ChangeLog b/net-proxy/polipo/ChangeLog index 376f6d6cf327..d5ef98dc6702 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.7 2006/08/28 05:27:52 mrness Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-proxy/polipo/ChangeLog,v 1.8 2006/09/06 20:29:15 mrness Exp $ + +*polipo-0.9.9-r2 (06 Sep 2006) + + 06 Sep 2006; Alin Nastac <mrness@gentoo.org> files/polipo.crond, + files/polipo.initd, -polipo-0.9.9-r1.ebuild, +polipo-0.9.9-r2.ebuild: + Minor changes in cron script (#145246) and init script (#145681). *polipo-0.9.9-r1 (28 Aug 2006) diff --git a/net-proxy/polipo/files/digest-polipo-0.9.9-r2 b/net-proxy/polipo/files/digest-polipo-0.9.9-r2 new file mode 100644 index 000000000000..afcc9e41480c --- /dev/null +++ b/net-proxy/polipo/files/digest-polipo-0.9.9-r2 @@ -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 c7667a392d90..23bb9d137079 100644 --- a/net-proxy/polipo/files/polipo.crond +++ b/net-proxy/polipo/files/polipo.crond @@ -3,5 +3,5 @@ #Expire old cached objects kill -USR1 $(cat /var/run/polipo.pid) sleep 1 -nice -n 15 su -s "/bin/sh" -c "polipo -x" polipo +nice -n 15 su -s "/bin/sh" -c "polipo -x" polipo > /dev/null kill -USR2 $(cat /var/run/polipo.pid) diff --git a/net-proxy/polipo/files/polipo.initd b/net-proxy/polipo/files/polipo.initd index df0e6dbb27e0..d950dd1f1c29 100644 --- a/net-proxy/polipo/files/polipo.initd +++ b/net-proxy/polipo/files/polipo.initd @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2005 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/polipo/files/polipo.initd,v 1.1 2005/04/22 19:15:11 mrness Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-proxy/polipo/files/polipo.initd,v 1.2 2006/09/06 20:29:15 mrness Exp $ depend() { need net @@ -18,7 +18,6 @@ start() { start-stop-daemon --start --quiet --chuid polipo \ --background --pidfile /var/run/polipo.pid --make-pidfile \ --exec /usr/bin/polipo - eend $? } @@ -26,7 +25,4 @@ stop() { ebegin "Stopping Polipo HTTP proxy" start-stop-daemon --stop --quiet --pidfile /var/run/polipo.pid eend $? - - [ -f /var/run/polipo.pid ] && rm /var/run/polipo.pid } - diff --git a/net-proxy/polipo/polipo-0.9.9-r2.ebuild b/net-proxy/polipo/polipo-0.9.9-r2.ebuild new file mode 100644 index 000000000000..b151f3937ad5 --- /dev/null +++ b/net-proxy/polipo/polipo-0.9.9-r2.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-r2.ebuild,v 1.1 2006/09/06 20:29:15 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." +} |