1 |
commit: 96c89b27019b5b9f1c2bcaca4909729d12b40290 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 26 20:36:40 2020 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 26 20:42:15 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=96c89b27 |
7 |
|
8 |
net-proxy/rejik: port to EAPI 7 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/742026 |
11 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
net-proxy/rejik/rejik-3.2.10.ebuild | 32 +++++++++++++++----------------- |
15 |
1 file changed, 15 insertions(+), 17 deletions(-) |
16 |
|
17 |
diff --git a/net-proxy/rejik/rejik-3.2.10.ebuild b/net-proxy/rejik/rejik-3.2.10.ebuild |
18 |
index 2c60bc8a830..9a336dac0fd 100644 |
19 |
--- a/net-proxy/rejik/rejik-3.2.10.ebuild |
20 |
+++ b/net-proxy/rejik/rejik-3.2.10.ebuild |
21 |
@@ -1,14 +1,15 @@ |
22 |
# Copyright 1999-2020 Gentoo Authors |
23 |
# Distributed under the terms of the GNU General Public License v2 |
24 |
|
25 |
-EAPI="4" |
26 |
+EAPI=7 |
27 |
|
28 |
-inherit eutils toolchain-funcs |
29 |
+inherit toolchain-funcs |
30 |
|
31 |
DESCRIPTION="A squid redirector used for blocking unwanted content" |
32 |
HOMEPAGE="https://rejik.ru/" |
33 |
SRC_URI="https://rejik.ru/download/redirector-${PV}.tgz |
34 |
banlists? ( http://rejik.ru/download/banlists-2.x.x.tgz )" |
35 |
+S="${WORKDIR}/redirector-${PV}" |
36 |
|
37 |
LICENSE="GPL-2" |
38 |
SLOT="0" |
39 |
@@ -21,21 +22,21 @@ RDEPEND="${DEPEND} |
40 |
dev-perl/XML-Parser |
41 |
net-proxy/squid" |
42 |
|
43 |
-S=${WORKDIR}/redirector-${PV} |
44 |
- |
45 |
src_prepare() { |
46 |
- sed -i -e "s:INSTALL_PATH=/usr/local/rejik3:INSTALL_PATH=${D}/opt/rejik:g" Makefile |
47 |
- sed -i -e "s:/usr/local/rejik3:/opt/rejik:g" vars.h |
48 |
- sed -i -e "s:SQUID_USER=nobody:SQUID_USER=squid:g" Makefile |
49 |
- sed -i -e "s:SQUID_GROUP=nogroup:SQUID_GROUP=squid:g" Makefile |
50 |
+ sed -i -e "s:INSTALL_PATH=/usr/local/rejik3:INSTALL_PATH=${ED}/opt/rejik:g" Makefile || die |
51 |
+ sed -i -e "s:/usr/local/rejik3:/opt/rejik:g" vars.h || die |
52 |
+ sed -i -e "s:SQUID_USER=nobody:SQUID_USER=squid:g" Makefile || die |
53 |
+ sed -i -e "s:SQUID_GROUP=nogroup:SQUID_GROUP=squid:g" Makefile || die |
54 |
# Respect CFLAGS |
55 |
- sed -i -e "s:CC=gcc -Wall:CC=$(tc-getCC) $CFLAGS:" Makefile |
56 |
+ sed -i -e "s;CC=gcc -Wall;CC=$(tc-getCC) $CFLAGS;" Makefile || die |
57 |
# Respect LDFLAGS |
58 |
- sed -i -e "s:LIBS=-L/lib \`pcre-config --libs\`:LIBS=-L/lib \`pcre-config --libs\` $LDFLAGS:" Makefile |
59 |
+ sed -i -e "s:LIBS=-L/lib \`pcre-config --libs\`:LIBS=-L/lib \`pcre-config --libs\` $LDFLAGS:" Makefile || die |
60 |
# |
61 |
- sed -i -e "s:error_log /usr/local/rejik3:error_log /var/log/rejik:g" redirector.conf.dist |
62 |
- sed -i -e "s:change_log /usr/local/rejik3:change_log /var/log/rejik:g" redirector.conf.dist |
63 |
- sed -i -e "s:/usr/local/rejik3:/opt/rejik:g" redirector.conf.dist |
64 |
+ sed -i -e "s:error_log /usr/local/rejik3:error_log /var/log/rejik:g" redirector.conf.dist || die |
65 |
+ sed -i -e "s:change_log /usr/local/rejik3:change_log /var/log/rejik:g" redirector.conf.dist || die |
66 |
+ sed -i -e "s:/usr/local/rejik3:/opt/rejik:g" redirector.conf.dist || die |
67 |
+ |
68 |
+ default |
69 |
} |
70 |
|
71 |
src_install() { |
72 |
@@ -51,9 +52,6 @@ src_install() { |
73 |
insinto /opt/rejik/tools |
74 |
exeinto /opt/rejik/tools |
75 |
|
76 |
- fperms +x tools/kill-cache |
77 |
- fperms +x tools/benchmark |
78 |
- |
79 |
doexe tools/kill-cache |
80 |
doexe tools/benchmark |
81 |
doins tools/IN.gz |
82 |
@@ -79,6 +77,6 @@ pkg_postinst() { |
83 |
einfo "redirect_program /opt/rejik/redirector /opt/rejik/redirector.conf" |
84 |
einfo "to /etc/squid/squid.conf" |
85 |
einfo "" |
86 |
- einfo "Dont forget to edit /opt/rejik/redirector.conf" |
87 |
+ einfo "Don't forget to edit /opt/rejik/redirector.conf" |
88 |
einfo "Be sure redirector.conf has right permissions" |
89 |
} |