commit: 1e68d3d10e74b3a93311fdb1a5e9ba0eb0d0e54c Author: Andrew Savchenko <bircoph <AT> gmail <DOT> com> AuthorDate: Thu Jan 8 23:19:47 2015 +0000 Commit: Andrew Savchenko <bircoph <AT> gmail <DOT> com> CommitDate: Thu Jan 8 23:19:47 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=dev/bircoph.git;a=commit;h=1e68d3d1
polipo: add version bump for testing --- net-proxy/polipo/ChangeLog | 197 +++++++++++++++++++++ net-proxy/polipo/Manifest | 10 ++ net-proxy/polipo/files/config | 8 + .../files/polipo-1.0.4.1-dns-timeout-fix.patch | 22 +++ net-proxy/polipo/files/polipo.crond | 9 + net-proxy/polipo/files/polipo.initd | 54 ++++++ net-proxy/polipo/files/polipo.initd-2 | 66 +++++++ net-proxy/polipo/metadata.xml | 8 + net-proxy/polipo/polipo-1.1.1.ebuild | 58 ++++++ net-proxy/polipo/polipo-9999.ebuild | 1 + 10 files changed, 433 insertions(+) diff --git a/net-proxy/polipo/ChangeLog b/net-proxy/polipo/ChangeLog new file mode 100644 index 0000000..061127f --- /dev/null +++ b/net-proxy/polipo/ChangeLog @@ -0,0 +1,197 @@ +# ChangeLog for net-proxy/polipo +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/polipo/ChangeLog,v 1.40 2015/01/07 14:01:03 pacho Exp $ + + 07 Jan 2015; Pacho Ramos <pa...@gentoo.org> metadata.xml: + Reassign and cleanup as discussed at https://www.mail-archive.com/gentoo- + d...@lists.gentoo.org/msg66357.html + + 08 Jan 2014; Mike Frysinger <vap...@gentoo.org> polipo-9999.ebuild: + Inherit the user eclass for enewuser/etc... + +*polipo-1.0.4.1-r2 (02 May 2013) + + 02 May 2013; Tom Wijsman <tom...@gentoo.org> + +files/polipo-1.0.4.1-dns-timeout-fix.patch, +polipo-1.0.4.1-r2.ebuild: + EAPI 5. Fix incorrect timeout reporting for domains that are available, + revision bump. Thanks to Andrew Savchenko for reporting. Fixes bug #389675. + +*polipo-9999 (31 Mar 2013) + + 31 Mar 2013; Tom Wijsman <tom...@gentoo.org> +polipo-9999.ebuild: + Added live ebuild for polipo. Reported by Piotr Karbowski. Fixes bug #321549. + + 04 Mar 2013; Pavlos Ratis <daster...@gentoo.org> polipo-1.0.4.1-r1.ebuild: + fixed QA issues, added GPL-2 to LICENSE, see bug #426130 + +*polipo-1.0.4.1-r1 (31 Dec 2011) + + 31 Dec 2011; Christian Ruppert <id...@gentoo.org> -polipo-1.0.4.1.ebuild, + +polipo-1.0.4.1-r1.ebuild, files/polipo.initd: + Revbump. Don't use deprecated start-stop-daemon options, bug 375113. + + 31 May 2010; Markus Meier <mae...@gentoo.org> polipo-1.0.4.1.ebuild: + amd64 stable, bug #300173 + + 29 May 2010; Pawel Hajdan jr <phajdan...@gentoo.org> + polipo-1.0.4.1.ebuild: + x86 stable wrt security bug #300173 + +*polipo-1.0.4.1 (26 May 2010) + + 26 May 2010; Jeroen Roovers <j...@gentoo.org> +polipo-1.0.4.1.ebuild: + Version bump (bug #300173). Respect CC. + + 13 Sep 2009; Markus Meier <mae...@gentoo.org> polipo-1.0.4.ebuild: + amd64 stable, bug #284449 + + 12 Sep 2009; Christian Faulhammer <fa...@gentoo.org> polipo-1.0.4.ebuild: + stable x86, security bug 284449 + +*polipo-1.0.4 (13 Jul 2008) + + 13 Jul 2008; Alin Năstac <mrn...@gentoo.org> -polipo-1.0.2-r1.ebuild, + +polipo-1.0.4.ebuild: + Version bump. + + 14 Jan 2008; Christoph Mende <ange...@gentoo.org> polipo-1.0.3.ebuild: + Stable on amd64 wrt bug #203753 + + 07 Jan 2008; Alin Năstac <mrn...@gentoo.org> files/polipo.initd: + Make init script compatible with POSIX shells, thanks to Fabrizio Montesi + <famont...@gmail.com> (#204729). + + 01 Jan 2008; Markus Meier <mae...@gentoo.org> polipo-1.0.3.ebuild: + x86 stable, bug #203753 + + 07 Jan 2008; Alin Năstac <mrn...@gentoo.org> files/polipo.initd: + Make init script compatible with POSIX shells, thanks to Fabrizio Montesi + <famont...@gmail.com> (#204729). + + 04 Nov 2007; Alin Năstac <mrn...@gentoo.org> polipo-1.0.2-r1.ebuild, + polipo-1.0.3.ebuild: + Remove useless pkg_preinst function. + +*polipo-1.0.3 (02 Nov 2007) + + 02 Nov 2007; Alin Năstac <mrn...@gentoo.org> + -files/polipo-0.9.12-gentoo.patch, -files/polipo-0.9.12-printf-ptr.patch, + -files/polipo-0.9.12.initd, -files/polipo-1.0.0-gentoo.patch, + -polipo-0.9.12-r1.ebuild, -polipo-1.0.0.ebuild, -polipo-1.0.1.ebuild, + +polipo-1.0.3.ebuild: + Remove obsolete versions. Version bump. Install HTML documentation. + + 02 Sep 2007; Christian Faulhammer <op...@gentoo.org> + polipo-1.0.2-r1.ebuild: + stable x86, security bug 190617 + + 01 Sep 2007; Christoph Mende <ange...@gentoo.org> polipo-1.0.2-r1.ebuild: + Stable on amd64 wrt security bug #190617 + +*polipo-1.0.2-r1 (01 Sep 2007) + + 01 Sep 2007; Alin Năstac <mrn...@gentoo.org> -polipo-1.0.2.ebuild, + +polipo-1.0.2-r1.ebuild: + Fix man and info path (#190617). + +*polipo-1.0.2 (29 Aug 2007) + + 29 Aug 2007; Alin Năstac <mrn...@gentoo.org> +polipo-1.0.2.ebuild: + Version bump wrt security bug #190617. + +*polipo-1.0.1 (19 Aug 2007) + + 19 Aug 2007; Alin Năstac <mrn...@gentoo.org> +polipo-1.0.1.ebuild: + Version bump. + + 17 Jun 2007; Alin Năstac <mrn...@gentoo.org> files/polipo.crond: + Verify that the service is running before purging old objects from cache. + +*polipo-1.0.0 (17 Jun 2007) + + 17 Jun 2007; Alin Năstac <mrn...@gentoo.org> + -files/polipo-0.9.10-gentoo.patch, -files/polipo-0.9.11-gentoo.patch, + +files/polipo-0.9.12.initd, +files/polipo-1.0.0-gentoo.patch, + files/polipo.initd, -polipo-0.9.10.ebuild, -polipo-0.9.11.ebuild, + polipo-0.9.12-r1.ebuild, +polipo-1.0.0.ebuild: + Remove obsolete versions. Version bump (#182258). + + 28 Apr 2007; Torsten Veller <t...@gentoo.org> polipo-0.9.10.ebuild, + polipo-0.9.11.ebuild, polipo-0.9.12-r1.ebuild: + Fix *initd, *confd and *envd calls (#173884, #174266) + + 11 Apr 2007; Andrej Kacian <ti...@gentoo.org> polipo-0.9.12-r1.ebuild: + Stable on x86, bug #174151. + +*polipo-0.9.12-r1 (11 Apr 2007) + + 11 Apr 2007; Alin Năstac <mrn...@gentoo.org> + +files/polipo-0.9.12-printf-ptr.patch, -polipo-0.9.12.ebuild, + +polipo-0.9.12-r1.ebuild: + Use correct printf format for pointers. Keep /var/cache/polipo directory. + Stable on amd64. + + 12 Feb 2007; Alin Nastac <mrn...@gentoo.org> files/polipo.initd: + Check configuration at service startup. + +*polipo-0.9.12 (08 Feb 2007) + + 08 Feb 2007; Alin Nastac <mrn...@gentoo.org> + +files/polipo-0.9.12-gentoo.patch, +polipo-0.9.12.ebuild: + Version bump (#165857). + +*polipo-0.9.11 (15 Jan 2007) + + 15 Jan 2007; Alin Nastac <mrn...@gentoo.org> + -files/polipo-0.9.9-gentoo.patch, +files/polipo-0.9.11-gentoo.patch, + -polipo-0.9.9-r2.ebuild, +polipo-0.9.11.ebuild: + Fix "Range without partial content" error (#162160). Version bump. + + 17 Nov 2006; Alin Nastac <mrn...@gentoo.org> polipo-0.9.10.ebuild: + Stable on x86. + +*polipo-0.9.10 (13 Oct 2006) + + 13 Oct 2006; Alin Nastac <mrn...@gentoo.org> + +files/polipo-0.9.10-gentoo.patch, +polipo-0.9.10.ebuild: + Version bump (#150772). + +*polipo-0.9.9-r2 (06 Sep 2006) + + 06 Sep 2006; Alin Nastac <mrn...@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) + + 28 Aug 2006; Alin Nastac <mrn...@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 <mrn...@gentoo.org> files/polipo.crond, + polipo-0.9.9.ebuild: + Remove sudo dependency - use su instead (#138860). + + 06 Mar 2006; Alin Nastac <mrn...@gentoo.org> + -files/polipo-0.9.8-gentoo.patch, -polipo-0.9.8.ebuild, + polipo-0.9.9.ebuild: + Remove old version. Stable on x86. + +*polipo-0.9.9 (06 Dec 2005) + + 06 Dec 2005; Alin Nastac <mrn...@gentoo.org> + +files/polipo-0.9.9-gentoo.patch, +polipo-0.9.9.ebuild: + Version bump (#114607). + + 12 Sep 2005; Luis Medinas <metal...@gentoo.org> polipo-0.9.8.ebuild: + Added ~amd64 keyword. Closes bug #103280. + + 22 Apr 2005; Alin Nastac <mrn...@gentoo.org> : + Rename category & herd www-proxy to net-proxy + +*polipo-0.9.8 (26 Mar 2005) + + 26 Mar 2005; Alin Nastac <mrn...@gentoo.org> +metadata.xml, +files/config, + +files/polipo-0.9.8-gentoo.patch, +files/polipo.crond, +files/polipo.initd, + +polipo-0.9.8.ebuild: + Initial import from bug #79618. diff --git a/net-proxy/polipo/Manifest b/net-proxy/polipo/Manifest new file mode 100644 index 0000000..b800e39 --- /dev/null +++ b/net-proxy/polipo/Manifest @@ -0,0 +1,10 @@ +AUX config 167 SHA256 3b600497508790390eb5413cc53ab04bfe8b083324472732b11847acddc91bda SHA512 a92a738016ed6da4fa47d23b2cfdb5296b0c1a818eabcf319550f62e41ba45d6a9103bd7cd956a417cab3b87d18f16227fd9fbadb95dcc267c3983c61d4bdd00 WHIRLPOOL 216fa4587def4639b05a16d7a53fc96f9ef7bd3a4defd9fd4c7e0e38dd0d7265af7563ffcf710a3bc00ffb702262921aec44a38f8cc152ebecce7a6a4fd4801d +AUX polipo-1.0.4.1-dns-timeout-fix.patch 1014 SHA256 d4b2faab078439179b6e6d836248927d45bf938a831affbaf3743c107c222a1e SHA512 fa53f2e527264b1ffb629dbbddd042896823777500eca4796db8a62d16d3a1d49fde20c2220934ca2d18968a90a576b7b037c355f8cdcf85ec345a2df023d6c1 WHIRLPOOL ee4be33129840834098e62bde44176533838ec20528a1a4132db83f5cb5ae945826aba2840c15fa4946408e10808ee84a301d144871b58a300a8782042d99773 +AUX polipo.crond 234 SHA256 cab7448361658d34593822893688df11d6f02f8b2927dbbbbe84642b335575d0 SHA512 8981382b65b0bc0cc20258a171066ee9535b4aaa0dad6d1e2b44d42a1ca94b90e78e7d6f0319cc9b07c51b88ca293d9968a7fdfd4e00061c56a612804fdc576f WHIRLPOOL 753584b2baaebfadecb3334cfab43dbbf6488e4b0af9af6b87fa890e21525498c48d6f728c4f7bc616c4c3c0410e3d7d6b066b0a48bef786764bc7e88ca6424e +AUX polipo.initd 1304 SHA256 438b8a9cfccf1ea14314f38e6821454b6da9ae20ea12bf311ad9fa89816cd702 SHA512 d77e7599eb20fe6dabf38cea0eedde255e63b45757fea01c1966c748b88e9d6e33ae51a7f50d9cf65cc32733cd58bb190d67006b089943187a5888c111f6d4de WHIRLPOOL f39743c2bbcfbfa33368d3ac4be780d21762e0696a39f088fb70c4a83ebf539c052495ab000a86ad779fa595b6607c24ed07dd0f502b85ae450c1ba6c302c7ed +AUX polipo.initd-2 1647 SHA256 8cbf2c48b9c6604e27287d5c12de00800242172fc7b4840eeccc72bcd203d04e SHA512 c1bc6a6a858d961437e066b8b24e0b3ab13df078614524bdbde3dc6744767775105a03b6b544c4b6238b2ff21eb599df5701a57ef64beae3c5aa2bc6f29883fe WHIRLPOOL f31428999d32a1a3039cf202d9fdf1c6b32e149ebbfbadb81d1806ea929863780dd91af966c5463f2ef77d3abb2ea4a926fd9541e7e21429775fa7cf7e3e86c6 +DIST polipo-1.1.1.tar.gz 182891 SHA256 a259750793ab79c491d05fcee5a917faf7d9030fb5d15e05b3704e9c9e4ee015 SHA512 7324ca96c19bf9f089146a12dba349ea8cd2669ee02d0599ed6c6116d11eb0e7cef7830d91d16921ba5cdd0ce06e6f831901832326d8118ebe0a565feeec7fb1 WHIRLPOOL 2904a68cc64500dc6207713e255e49eb6d9fb3d73c0ff80c19b71cf1ae6ceee533b625643c7a177924f4d254deae659cdc4137218ae152582da65d0b933f65e3 +EBUILD polipo-1.1.1.ebuild 1544 SHA256 ee80f0035724d779368d7ac9ab5e4b114ce664b06e63c1bd9d3476803ac3d017 SHA512 f335fd4083b226b098b331ef26c42d4917ed1f26b00e740ffa81ba152e604d8f0fd3bc6156274f602cd302135e6270d0d15ec77ca919a239ff28c0ac68d37787 WHIRLPOOL f4d5d614d728623b4a83c79f81399a2ac975413c7bb309f1678ea0e36bb2de06a72755eb5ae63265b71f9e90fe07c1117c7978880338fc74713946cbf899503c +EBUILD polipo-9999.ebuild 1544 SHA256 ee80f0035724d779368d7ac9ab5e4b114ce664b06e63c1bd9d3476803ac3d017 SHA512 f335fd4083b226b098b331ef26c42d4917ed1f26b00e740ffa81ba152e604d8f0fd3bc6156274f602cd302135e6270d0d15ec77ca919a239ff28c0ac68d37787 WHIRLPOOL f4d5d614d728623b4a83c79f81399a2ac975413c7bb309f1678ea0e36bb2de06a72755eb5ae63265b71f9e90fe07c1117c7978880338fc74713946cbf899503c +MISC ChangeLog 7025 SHA256 9fd3eebbeebb0fecdac47a5312d2c63ab5c7625a45f9d9fb461a28659a957f59 SHA512 d38e37648d156ed780ed691905406442a1f115fa0bad69ce1aa2d377a466c3601f3169b3e0cd3870d27d630ed6ce2726e1e8a7879fc2577b09d36332d1d5df7d WHIRLPOOL 753b5678632773b9eb57d6bae74e9e94e4138c74349ffdefb9c55a22e5e3c480ce11d3802d92f2e694d38e5536a4f3eed9243fd7495984c3177f45e37e9fed7a +MISC metadata.xml 336 SHA256 3af44f3e92b59a2e1db07127cb5e9d3dd5ec3dd29a2516961d7f76c431f0c353 SHA512 cdb114c52d849db414b8a67c628fd78283711ea5f0194f81e82085e598b3e40b05362118cf3968e39a6ec0623f9c47c333194b134c9ce84daf4b50e7150017ae WHIRLPOOL 93cf2b3d9af9c97379ef0ca5883d13e5eb5c07cbc6efdbf109bef6fd60bd525c8bb763ca69f6268bea4dd79b22663bc8bb9a3ee600fd81c22a87c3e53c565517 diff --git a/net-proxy/polipo/files/config b/net-proxy/polipo/files/config new file mode 100644 index 0000000..4c92355 --- /dev/null +++ b/net-proxy/polipo/files/config @@ -0,0 +1,8 @@ +daemonise=false +diskCacheRoot=/var/cache/polipo/ +proxyAddress=127.0.0.1 +proxyName=localhost +serverSlots=4 +serverMaxSlots=8 +cacheIsShared=true +allowedClients=127.0.0.1 diff --git a/net-proxy/polipo/files/polipo-1.0.4.1-dns-timeout-fix.patch b/net-proxy/polipo/files/polipo-1.0.4.1-dns-timeout-fix.patch new file mode 100644 index 0000000..bf5757b --- /dev/null +++ b/net-proxy/polipo/files/polipo-1.0.4.1-dns-timeout-fix.patch @@ -0,0 +1,22 @@ +--- polipo-1.0.4/dns.c.orig 2008-01-08 16:56:45.000000000 +0400 ++++ polipo-1.0.4/dns.c 2010-03-29 18:28:43.225601510 +0500 +@@ -1181,7 +1181,8 @@ + } else + releaseAtom(value); + } else if(af == 0) { +- if(query->inet4 || query->inet6) { ++ if(query->inet4 && query->inet4->length || ++ query->inet6 && query->inet6->length) { + do_log(L_WARN, "Host %s has both %s and CNAME -- " + "ignoring CNAME.\n", query->name->string, + query->inet4 ? "A" : "AAAA"); +@@ -1207,7 +1208,8 @@ + if(object->flags & OBJECT_INITIAL) { + assert(!object->headers); + if(cname) { +- assert(query->inet4 == NULL && query->inet6 == NULL); ++ assert(!(query->inet4 && query->inet4->length)); ++ assert(!(query->inet6 && query->inet6->length)); + object->headers = cname; + object->expires = current_time.tv_sec + ttl; + } else if((!query->inet4 || query->inet4->length == 0) && diff --git a/net-proxy/polipo/files/polipo.crond b/net-proxy/polipo/files/polipo.crond new file mode 100644 index 0000000..2bda2cc --- /dev/null +++ b/net-proxy/polipo/files/polipo.crond @@ -0,0 +1,9 @@ +#!/bin/sh + +if /etc/init.d/polipo --quiet status; then + #Expire old cached objects + kill -USR1 $(cat /var/run/polipo.pid) + sleep 1 + nice -n 15 su -s "/bin/sh" -c "polipo -x" polipo > /dev/null + kill -USR2 $(cat /var/run/polipo.pid) +fi diff --git a/net-proxy/polipo/files/polipo.initd b/net-proxy/polipo/files/polipo.initd new file mode 100644 index 0000000..e64599b --- /dev/null +++ b/net-proxy/polipo/files/polipo.initd @@ -0,0 +1,54 @@ +#!/sbin/runscript +# Copyright 1999-2011 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.6 2011/12/31 21:11:37 idl0r Exp $ + +depend() { + need net +} + +checkconfig() { + { polipo -v || return 1 ; } | { + local retvalue=0 + local name type value desc + while read name type value desc ; do + case ${name} in + configFile) + if [ "${value}" = "(none)" ] ; then + eerror "Unable to read configuration file /etc/polipo/config" + retvalue=1 + fi + ;; + daemonise) + if [ "${value}" != "false" ] ; then + eerror "Configuration option not supported by this init script: ${name}=${value}" + retvalue=1 + fi + ;; + pidFile) + if [ "${value}" != "(none)" ] ; then + eerror "Configuration option not supported by this init script: ${name}=${value}" + retvalue=1 + fi + ;; + esac + done + return ${retvalue} + } +} + +start() { + checkconfig || return 1 + + ebegin "Starting Polipo HTTP proxy" + start-stop-daemon --start --user polipo \ + --background --pidfile /var/run/polipo.pid --make-pidfile \ + --exec /usr/bin/polipo + eend $? +} + +stop() { + ebegin "Stopping Polipo HTTP proxy" + start-stop-daemon --stop --pidfile /var/run/polipo.pid + eend $? +} diff --git a/net-proxy/polipo/files/polipo.initd-2 b/net-proxy/polipo/files/polipo.initd-2 new file mode 100644 index 0000000..89d86e6 --- /dev/null +++ b/net-proxy/polipo/files/polipo.initd-2 @@ -0,0 +1,66 @@ +#!/sbin/runscript +# Copyright 1999-2015 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.6 2011/12/31 21:11:37 idl0r Exp $ + +CONFFILE="/etc/polipo/config${SVCNAME#polipo}" +PIDFILE="/var/run/${SVCNAME}.pid" + +depend() { + need net +} + +checkconfig() { + { polipo -v -c "${CONFFILE}" || return 1 ; } | { + local retvalue=0 + local name type value desc + while read name type value desc ; do + case ${name} in + configFile) + if [ "${value}" = "(none)" ] ; then + eerror "Unable to read configuration file /etc/polipo/config" + retvalue=1 + fi + ;; + daemonise) + if [ "${value}" != "false" ] ; then + eerror "Configuration option not supported by this init script: ${name}=${value}" + retvalue=1 + fi + ;; + pidFile) + if [ "${value}" != "(none)" ] ; then + eerror "Configuration option not supported by this init script: ${name}=${value}" + retvalue=1 + fi + ;; + diskCacheRoot) + if [ "${value}" != "(none)" ] ; then + # Ensure that cache directory exists and have proper permissions + if ! [[ -d "{value}" ]]; then + mkdir -p -m 0750 "${value}" + chown polipo:polipo "${value}" + fi + fi + ;; + esac + done + return ${retvalue} + } +} + +start() { + checkconfig || return 1 + + ebegin "Starting Polipo HTTP proxy" + start-stop-daemon --start --user polipo \ + --background --pidfile "${PIDFILE}" --make-pidfile \ + --exec /usr/bin/polipo -- -c "${CONFFILE}" + eend $? +} + +stop() { + ebegin "Stopping Polipo HTTP proxy" + start-stop-daemon --stop --pidfile "${PIDFILE}" + eend $? +} diff --git a/net-proxy/polipo/metadata.xml b/net-proxy/polipo/metadata.xml new file mode 100644 index 0000000..b6c2d4e --- /dev/null +++ b/net-proxy/polipo/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> + <email>birc...@gentoo.org</email> +</maintainer> +<longdescription>A small and fast caching web proxy designed to be used by one person or a small group of people.</longdescription> +</pkgmetadata> diff --git a/net-proxy/polipo/polipo-1.1.1.ebuild b/net-proxy/polipo/polipo-1.1.1.ebuild new file mode 100644 index 0000000..d1574e6 --- /dev/null +++ b/net-proxy/polipo/polipo-1.1.1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/polipo/polipo-1.0.4.1-r2.ebuild,v 1.1 2013/05/02 19:45:58 tomwij Exp $ + +EAPI="5" + +if [[ ${PV} == "9999" ]] ; then + _GIT=git-r3 + EGIT_REPO_URI="https://github.com/jech/${PN}.git" + SRC_URI="" + KEYWORDS="" +else + SRC_URI="http://www.pps.jussieu.fr/~jch/software/files/${PN}/${P}.tar.gz" + KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +fi + +inherit ${_GIT} toolchain-funcs user + +DESCRIPTION="A caching web proxy" +HOMEPAGE="http://www.pps.jussieu.fr/~jch/software/polipo/" + +LICENSE="MIT GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND="sys-apps/texinfo" +RDEPEND="" + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 -1 /var/cache/${PN} ${PN} +} + +src_compile() { + tc-export CC + emake PREFIX=/usr "CDEBUGFLAGS=${CFLAGS}" all +} + +src_install() { + einstall PREFIX=/usr MANDIR=/usr/share/man INFODIR=/usr/share/info "TARGET=${D}" + + newinitd "${FILESDIR}/${PN}.initd-2" ${PN} + insinto /etc/${PN} ; doins "${FILESDIR}/config" + exeinto /etc/cron.daily ; newexe "${FILESDIR}/${PN}.crond" ${PN}.sh + + dodoc CHANGES README + dohtml html/* +} + +pkg_postinst() { + einfo "Do not forget to read the manual." + einfo "Change the config file in /etc/${PN} to suit your needs." + einfo "" + einfo "Polipo OpenRC init scripts can now be multiplexed:" + einfo "1. create /etc/${PN}/config.foo" + einfo "2. symlink /etc/init.d/{${PN}.foo -> ${PN}}" + einfo "3. make sure all instances use unique ip:port pair and cachedir, if any" +} diff --git a/net-proxy/polipo/polipo-9999.ebuild b/net-proxy/polipo/polipo-9999.ebuild new file mode 120000 index 0000000..fd24cb2 --- /dev/null +++ b/net-proxy/polipo/polipo-9999.ebuild @@ -0,0 +1 @@ +polipo-1.1.1.ebuild \ No newline at end of file