From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-proxy/rejik/
Date: Sat, 26 Sep 2020 20:42:57 +0000 (UTC) [thread overview]
Message-ID: <1601152935.96c89b27019b5b9f1c2bcaca4909729d12b40290.sam@gentoo> (raw)
commit: 96c89b27019b5b9f1c2bcaca4909729d12b40290
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 26 20:36:40 2020 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Sep 26 20:42:15 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=96c89b27
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 <AT> gentoo.org>
net-proxy/rejik/rejik-3.2.10.ebuild | 32 +++++++++++++++-----------------
1 file 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 2c60bc8a830..9a336dac0fd 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"
}
next reply other threads:[~2020-09-26 20:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-26 20:42 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-10-15 15:13 [gentoo-commits] repo/gentoo:master commit in: net-proxy/rejik/ Sam James
2020-09-26 20:44 Sam James
2020-09-26 20:42 Sam James
2020-06-04 9:06 David Seifert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1601152935.96c89b27019b5b9f1c2bcaca4909729d12b40290.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox