diff options
author | Alin Năstac <mrness@gentoo.org> | 2007-04-11 12:56:08 +0000 |
---|---|---|
committer | Alin Năstac <mrness@gentoo.org> | 2007-04-11 12:56:08 +0000 |
commit | 734f569f3814bd38aa4090037a6d30e3eef13f8a (patch) | |
tree | cc3ed6887be6b2841b2407b26babd6bf5f047c57 /net-proxy/polipo/polipo-0.9.12-r1.ebuild | |
parent | Stable on amd64 wrt bug 172575 (diff) | |
download | historical-734f569f3814bd38aa4090037a6d30e3eef13f8a.tar.gz historical-734f569f3814bd38aa4090037a6d30e3eef13f8a.tar.bz2 historical-734f569f3814bd38aa4090037a6d30e3eef13f8a.zip |
Use correct printf format for pointers. Keep /var/cache/polipo directory. Stable on amd64.
Package-Manager: portage-2.1.2.3
Diffstat (limited to 'net-proxy/polipo/polipo-0.9.12-r1.ebuild')
-rw-r--r-- | net-proxy/polipo/polipo-0.9.12-r1.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/net-proxy/polipo/polipo-0.9.12-r1.ebuild b/net-proxy/polipo/polipo-0.9.12-r1.ebuild new file mode 100644 index 000000000000..47b497de8cbb --- /dev/null +++ b/net-proxy/polipo/polipo-0.9.12-r1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/polipo/polipo-0.9.12-r1.ebuild,v 1.1 2007/04/11 12:56:08 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" + epatch "${FILESDIR}/${P}-printf-ptr.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 + keepdir /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." +} |