# 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)
--- /dev/null
+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
#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)
#!/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
start-stop-daemon --start --quiet --chuid polipo \
--background --pidfile /var/run/polipo.pid --make-pidfile \
--exec /usr/bin/polipo
-
eend $?
}
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
}
-
--- /dev/null
+# 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."
+}