From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- net-proxy/rejik/Manifest | 6 +++ net-proxy/rejik/metadata.xml | 11 +++++ net-proxy/rejik/rejik-3.2.10.ebuild | 84 +++++++++++++++++++++++++++++++++++++ 3 files changed, 101 insertions(+) create mode 100644 net-proxy/rejik/Manifest create mode 100644 net-proxy/rejik/metadata.xml create mode 100644 net-proxy/rejik/rejik-3.2.10.ebuild (limited to 'net-proxy/rejik') diff --git a/net-proxy/rejik/Manifest b/net-proxy/rejik/Manifest new file mode 100644 index 000000000000..acd7bc203f4f --- /dev/null +++ b/net-proxy/rejik/Manifest @@ -0,0 +1,6 @@ +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 2322 SHA256 d1ffd58663986353eb38e5ccb451ed7ed3041417f6e66979eaa968e85db60970 SHA512 ecbc30a7595a5c3d6ce4173a06a9f7c5828c7bfd4230877f20d31e95bffc0020364bc8cafecaae58ac791af2e21bbdeeb8b10054348b791027c7a8487eb0fff7 WHIRLPOOL 264914c47eeac61148983ac7b193c550a81447952c1753f73629c106bbfb5f0e4d859af64e1a9fce6b5945da10b41eb451078d3c9112a19b43dca23b6bbe2dae +MISC ChangeLog 2566 SHA256 3477cb38d49b343f191f16d60871efddc443a898940bead8e5d083e4bd1b9cfb SHA512 c153e98491801face21cac9976df9a4caa7f06405c32537d0c1bcf73d92fd78a2107f5c4c8ec5856a7436fb620eae45601ef49fb82e2a9a87fea72d21389d7d3 WHIRLPOOL d2aa2e2ac26fdfbb6ee3714403900b96025cf6a14074bd6d666234a94f8061bd3a17bbd639351745de095dda9ee35a8d9971d43abe14fdbd4115490d842cb5c6 +MISC ChangeLog-2015 620 SHA256 8bc1a9a0c7b26674fde02e508a8b1ab96694832022995a73d51d9d34a6ac6e58 SHA512 79033ece4416f859c384734c86314e8f53f161e484e224f2fd38bc60ece541dab89b62bb68490ac4c162649d2d10bebbb3e8127106073e3340dbfeb968e42e45 WHIRLPOOL 4d14bbbfe8a8477f15c29c0b1d7d7a1861474741fa0550b808a063ad7bdebb06a74a9817b6359b9a6c55b45abd10a496619a9efc66acc371ed226431681b7b8b +MISC metadata.xml 345 SHA256 d27c7f2961380fae06dae932a3022856a05409d685910effa519cf3cbe17195e SHA512 c45ec66f94f72f5a1faae645214953c4941e98e442625775fc25a2010345a31e61db086f1498344a64dd026764037a7a6d277655ab578ff32d7e9167d5eece57 WHIRLPOOL 349b68453999d73782d8de1b36a28bcba365f1b3ef59c041305f0898b00754f2b0280741e87f0aba8031c9ba76aa315d9ff01ac61e3e9b020ae7b53cfc3c1cb8 diff --git a/net-proxy/rejik/metadata.xml b/net-proxy/rejik/metadata.xml new file mode 100644 index 000000000000..3bb23158fb52 --- /dev/null +++ b/net-proxy/rejik/metadata.xml @@ -0,0 +1,11 @@ + + + + + pinkbyte@gentoo.org + Sergey Popov + + + Install upstream provided simple banlists + + 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..1a14f53834da --- /dev/null +++ b/net-proxy/rejik/rejik-3.2.10.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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" +} -- cgit v1.2.3