diff options
author | Sam James <sam@gentoo.org> | 2020-09-26 20:36:40 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2020-09-26 20:42:15 +0000 |
commit | 96c89b27019b5b9f1c2bcaca4909729d12b40290 (patch) | |
tree | 2325bf11e7b9d212b9ddc5ec7a57f8b4f15d3238 /net-proxy/rejik/rejik-3.2.10.ebuild | |
parent | sys-devel/gcc: drop gcc-4.x series (diff) | |
download | gentoo-96c89b27019b5b9f1c2bcaca4909729d12b40290.tar.gz gentoo-96c89b27019b5b9f1c2bcaca4909729d12b40290.tar.bz2 gentoo-96c89b27019b5b9f1c2bcaca4909729d12b40290.zip |
net-proxy/rejik: port to EAPI 7
Closes: https://bugs.gentoo.org/742026
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-proxy/rejik/rejik-3.2.10.ebuild')
-rw-r--r-- | net-proxy/rejik/rejik-3.2.10.ebuild | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/net-proxy/rejik/rejik-3.2.10.ebuild b/net-proxy/rejik/rejik-3.2.10.ebuild index 2c60bc8a830f..9a336dac0fdb 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,21 +22,21 @@ 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() { @@ -51,9 +52,6 @@ src_install() { 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 +77,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" } |