diff options
author | Ben de Groot <yngwin@gentoo.org> | 2012-07-31 12:41:37 +0000 |
---|---|---|
committer | Ben de Groot <yngwin@gentoo.org> | 2012-07-31 12:41:37 +0000 |
commit | 928bc5378a0eb0cda7520f1be0f88d321c3e2f9a (patch) | |
tree | 2fc5e23db9590601b9defdc1012c4c8ef889e5a8 /net-proxy | |
parent | Remove old (diff) | |
download | gentoo-2-928bc5378a0eb0cda7520f1be0f88d321c3e2f9a.tar.gz gentoo-2-928bc5378a0eb0cda7520f1be0f88d321c3e2f9a.tar.bz2 gentoo-2-928bc5378a0eb0cda7520f1be0f88d321c3e2f9a.zip |
Initial commit from bug #426320. Package proxy-maintained by Sergey Popov.
(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)
Diffstat (limited to 'net-proxy')
-rw-r--r-- | net-proxy/rejik/ChangeLog | 9 | ||||
-rw-r--r-- | net-proxy/rejik/Manifest | 4 | ||||
-rw-r--r-- | net-proxy/rejik/metadata.xml | 12 | ||||
-rw-r--r-- | net-proxy/rejik/rejik-3.2.10.ebuild | 85 |
4 files changed, 110 insertions, 0 deletions
diff --git a/net-proxy/rejik/ChangeLog b/net-proxy/rejik/ChangeLog new file mode 100644 index 000000000000..962c7ba4683f --- /dev/null +++ b/net-proxy/rejik/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for net-proxy/rejik +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/rejik/ChangeLog,v 1.1 2012/07/31 12:41:37 yngwin Exp $ + +*rejik-3.2.10 (31 Jul 2012) + + 31 Jul 2012; Ben de Groot <yngwin@gentoo.org> +metadata.xml, + +rejik-3.2.10.ebuild: + Initial commit from bug #426320. Package proxy-maintained by Sergey Popov. diff --git a/net-proxy/rejik/Manifest b/net-proxy/rejik/Manifest new file mode 100644 index 000000000000..5a4e67e621c8 --- /dev/null +++ b/net-proxy/rejik/Manifest @@ -0,0 +1,4 @@ +DIST banlists-2.x.x.tgz 116100 SHA256 221a40e8db9d19477d6fdece00c9152526a0d2f0c2298504fc99b4378457b09e SHA512 068d01685e01679b2726da1cbc5f31f6aba54ab2194e8ab145bd2409e7fc71e3662445a8274b08746e5cdeadea2197f5a72a1abef98ec91267df851615b188b3 WHIRLPOOL 8bea0d00cf0eea807eb5a0ec645715832f3cc8ba42b3110d72c61c7474ea76df1c5823173bf2cbc241b86c43aa4d581cbfbed9bacbd5daac935a86fe030c89ec +DIST redirector-3.2.10.tgz 45407 SHA256 1648af09df86dba5a73fa8d3ebaf02a62c281b847b96d5921507093056a0d05f SHA512 6e82341e402b149464b048e763cfa6f7bc514bae48514b482eded9288af9705942fbfd2e11b5701d3540489ec5ccab358848108fe15f25c5ab2915e44f3f1033 WHIRLPOOL 7b97124945d9d75077fe0047d5a89cf68da6ff9b8f38988e9984aed95927cc28893e50fb79863ec37109bdc872e6379cd1edbe408e30722351e9f24c90a06291 +EBUILD rejik-3.2.10.ebuild 2335 SHA256 4adc5aab5f38014e00659aedfaca9707351c804b90803f6b22370e07d7dfae07 SHA512 1201826bbfdf4896eb63feec84451fa90758032a2a3604fc5adcdaebb8cd7c34261882d6980a7f355cd8837bfe97495234a283fd0e539f1bd244b33d5bec6b7d WHIRLPOOL 181267262c5a32be36a899a8c4276671fb81343999c0b4ee1f4afd4df4e9f87ccc7c1571706e2961e30ba3c7695a9f3690d8fb837a5f53d71eb9e818641ed5af +MISC metadata.xml 356 SHA256 21573be4c54ba31387ad8a9de2b048fea6565845ffdb31d37f965a64d90af923 SHA512 7fd3e1a1ba3d9a5970c2d0f502cff8a8f0f820aadc15859a66d3da54dc53f88c81e5e3335dbcf05544b588038a2134eec228bcceb54a3560742964bc462cc14c WHIRLPOOL 8479d4ebc629fbbdc41a1ed3ef833bd7efa49a2f54d4b7fc861b53015eb96bf86e04b28cd2ddff934226429ce0be9c64bc28c2a2b3544ebe9c4247ed6ed06ce3 diff --git a/net-proxy/rejik/metadata.xml b/net-proxy/rejik/metadata.xml new file mode 100644 index 000000000000..311e0fda5cc5 --- /dev/null +++ b/net-proxy/rejik/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>admin@pinkbyte.ru</email> + <name>Sergey Popov</name> + </maintainer> + <herd>proxy-maint</herd> + <use> + <flag name='banlists'>Install upstream provided simple banlists</flag> + </use> +</pkgmetadata> diff --git a/net-proxy/rejik/rejik-3.2.10.ebuild b/net-proxy/rejik/rejik-3.2.10.ebuild new file mode 100644 index 000000000000..364c4ea67e3e --- /dev/null +++ b/net-proxy/rejik/rejik-3.2.10.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/rejik/rejik-3.2.10.ebuild,v 1.1 2012/07/31 12:41:37 yngwin Exp $ + +EAPI="4" + +inherit eutils toolchain-funcs + +DESCRIPTION="A squid redirector used for blocking unwanted content" +HOMEPAGE="http://rejik.ru/" +SRC_URI="http://rejik.ru/download/redirector-${PV}.tgz + banlists? ( http://rejik.ru/download/banlists-2.x.x.tgz )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="banlists" + +DEPEND="dev-libs/libpcre" +RDEPEND="${DEPEND} + dev-perl/Text-Iconv + dev-perl/XML-Parser + net-proxy/squid" + +S=${WORKDIR}/redirector-${PV} + +src_prepare() { + sed -i -e "s:INSTALL_PATH=/usr/local/rejik3:INSTALL_PATH=${D}/opt/rejik:g" Makefile + sed -i -e "s:/usr/local/rejik3:/opt/rejik:g" vars.h + sed -i -e "s:SQUID_USER=nobody:SQUID_USER=squid:g" Makefile + sed -i -e "s:SQUID_GROUP=nogroup:SQUID_GROUP=squid:g" Makefile + # Respect CFLAGS + sed -i -e "s:CC=gcc -Wall:CC=$(tc-getCC) $CFLAGS:" Makefile + # Respect LDFLAGS + sed -i -e "s:LIBS=-L/lib \`pcre-config --libs\`:LIBS=-L/lib \`pcre-config --libs\` $LDFLAGS:" Makefile + # + sed -i -e "s:error_log /usr/local/rejik3:error_log /var/log/rejik:g" redirector.conf.dist + sed -i -e "s:change_log /usr/local/rejik3:change_log /var/log/rejik:g" redirector.conf.dist + sed -i -e "s:/usr/local/rejik3:/opt/rejik:g" redirector.conf.dist +} + +src_install() { + dodir /opt/rejik + exeinto /opt/rejik + insinto /opt/rejik + + doexe make-cache + doexe redirector + doins redirector.conf.dist + + dodir /opt/rejik/tools + insinto /opt/rejik/tools + exeinto /opt/rejik/tools + + fperms +x tools/kill-cache + fperms +x tools/benchmark + + doexe tools/kill-cache + doexe tools/benchmark + doins tools/IN.gz + + fowners -R squid:squid /opt/rejik + fperms 750 /opt/rejik + + keepdir /var/log/rejik + fowners -R squid:squid /var/log/rejik + + if use banlists; then + insinto /opt/rejik + doins -r "${WORKDIR}/banlists" + fi +} + +pkg_postinst() { + einfo "" + einfo "Copy /opt/rejik/redirector.conf.dist to /opt/rejik/redirector.conf and add line" + einfo "for squid 3.*" + einfo "url_rewrite_program /opt/rejik/redirector /opt/rejik/redirector.conf " + einfo "for squid 2.*" + einfo "redirect_program /opt/rejik/redirector /opt/rejik/redirector.conf" + einfo "to /etc/squid/squid.conf" + einfo "" + einfo "Dont forget to edit /opt/rejik/redirector.conf" + einfo "Be sure redirector.conf has right permissions" +} |