summaryrefslogtreecommitdiff
path: root/net-proxy/rejik/rejik-3.2.10.ebuild
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-09-30 17:27:54 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-09-30 17:27:54 +0100
commitf70a1bfc721336d4fc7dfb711c2f518a6b18cf16 (patch)
treee907cb121b30e3c1df1710719c0ddf4029597a47 /net-proxy/rejik/rejik-3.2.10.ebuild
parentdb063b515939ab15261136b24e4bc44386335c0c (diff)
gentoo resync : 30.09.2020
Diffstat (limited to 'net-proxy/rejik/rejik-3.2.10.ebuild')
-rw-r--r--net-proxy/rejik/rejik-3.2.10.ebuild34
1 files changed, 15 insertions, 19 deletions
diff --git a/net-proxy/rejik/rejik-3.2.10.ebuild b/net-proxy/rejik/rejik-3.2.10.ebuild
index 2c60bc8a830f..e566d009210b 100644
--- a/net-proxy/rejik/rejik-3.2.10.ebuild
+++ b/net-proxy/rejik/rejik-3.2.10.ebuild
@@ -1,14 +1,15 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI="4"
+EAPI=7
-inherit eutils toolchain-funcs
+inherit toolchain-funcs
DESCRIPTION="A squid redirector used for blocking unwanted content"
HOMEPAGE="https://rejik.ru/"
SRC_URI="https://rejik.ru/download/redirector-${PV}.tgz
banlists? ( http://rejik.ru/download/banlists-2.x.x.tgz )"
+S="${WORKDIR}/redirector-${PV}"
LICENSE="GPL-2"
SLOT="0"
@@ -21,25 +22,24 @@ RDEPEND="${DEPEND}
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
+ sed -i -e "s:INSTALL_PATH=/usr/local/rejik3:INSTALL_PATH=${ED}/opt/rejik:g" Makefile || die
+ sed -i -e "s:/usr/local/rejik3:/opt/rejik:g" vars.h || die
+ sed -i -e "s:SQUID_USER=nobody:SQUID_USER=squid:g" Makefile || die
+ sed -i -e "s:SQUID_GROUP=nogroup:SQUID_GROUP=squid:g" Makefile || die
# Respect CFLAGS
- sed -i -e "s:CC=gcc -Wall:CC=$(tc-getCC) $CFLAGS:" Makefile
+ sed -i -e "s;CC=gcc -Wall;CC=$(tc-getCC) $CFLAGS;" Makefile || die
# Respect LDFLAGS
- sed -i -e "s:LIBS=-L/lib \`pcre-config --libs\`:LIBS=-L/lib \`pcre-config --libs\` $LDFLAGS:" Makefile
+ sed -i -e "s:LIBS=-L/lib \`pcre-config --libs\`:LIBS=-L/lib \`pcre-config --libs\` $LDFLAGS:" Makefile || die
#
- 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
+ sed -i -e "s:error_log /usr/local/rejik3:error_log /var/log/rejik:g" redirector.conf.dist || die
+ sed -i -e "s:change_log /usr/local/rejik3:change_log /var/log/rejik:g" redirector.conf.dist || die
+ sed -i -e "s:/usr/local/rejik3:/opt/rejik:g" redirector.conf.dist || die
+
+ default
}
src_install() {
- dodir /opt/rejik
exeinto /opt/rejik
insinto /opt/rejik
@@ -47,13 +47,9 @@ src_install() {
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
@@ -79,6 +75,6 @@ pkg_postinst() {
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 "Don't forget to edit /opt/rejik/redirector.conf"
einfo "Be sure redirector.conf has right permissions"
}