1 |
commit: 316855ee9f0610861709cc46fb4382c9b8cc71ff |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 3 18:49:32 2016 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 3 19:17:01 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=316855ee |
7 |
|
8 |
net-proxy/bfilter: use #!/sbin/openrc-run instead of #!/sbin/runscript |
9 |
|
10 |
Gentoo-Bug: https://bugs.gentoo.org/573846 |
11 |
|
12 |
Package-Manager: portage-2.2.26 |
13 |
|
14 |
net-proxy/bfilter/bfilter-1.1.4-r4.ebuild | 85 +++++++++++++++++++++++++++++++ |
15 |
net-proxy/bfilter/files/bfilter.init | 4 +- |
16 |
2 files changed, 87 insertions(+), 2 deletions(-) |
17 |
|
18 |
diff --git a/net-proxy/bfilter/bfilter-1.1.4-r4.ebuild b/net-proxy/bfilter/bfilter-1.1.4-r4.ebuild |
19 |
new file mode 100644 |
20 |
index 0000000..767c009 |
21 |
--- /dev/null |
22 |
+++ b/net-proxy/bfilter/bfilter-1.1.4-r4.ebuild |
23 |
@@ -0,0 +1,85 @@ |
24 |
+# Copyright 1999-2016 Gentoo Foundation |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+# $Id$ |
27 |
+ |
28 |
+EAPI=6 |
29 |
+ |
30 |
+inherit autotools flag-o-matic user |
31 |
+ |
32 |
+DESCRIPTION="Ad-filtering web proxy featuring an effective heuristic ad-detection algorithm" |
33 |
+HOMEPAGE="http://bfilter.sourceforge.net/" |
34 |
+SRC_URI="mirror://sourceforge/bfilter/${P}.tar.gz" |
35 |
+ |
36 |
+LICENSE="GPL-2" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="~amd64 ~x86" |
39 |
+IUSE="X debug" |
40 |
+ |
41 |
+RDEPEND="sys-libs/zlib |
42 |
+ dev-libs/ace:= |
43 |
+ dev-libs/libsigc++:2 |
44 |
+ X? ( dev-cpp/gtkmm:2.4 x11-libs/libX11 ) |
45 |
+ dev-libs/boost:=" |
46 |
+ |
47 |
+DEPEND="${RDEPEND} |
48 |
+ dev-util/scons |
49 |
+ virtual/pkgconfig" |
50 |
+ |
51 |
+PATCHES=( |
52 |
+ "${FILESDIR}/${P}-glib-2.32.patch" |
53 |
+ "${FILESDIR}/${P}-external-boost.patch" |
54 |
+ "${FILESDIR}/${P}-gtkmm-X11-underlinking.patch" |
55 |
+) |
56 |
+ |
57 |
+RESTRICT="test" # boost's test API has changed |
58 |
+ |
59 |
+src_prepare() { |
60 |
+ default |
61 |
+ |
62 |
+ # Some includes are missing and this breaks updates of ACE |
63 |
+ sed -i \ |
64 |
+ -e "/#include <ace\/Synch.h>/a#include <ace\/Condition_T.h>\n#include <ace\/Guard_T.cpp>" \ |
65 |
+ libjs/nspr_impl/private.h \ |
66 |
+ main/*.h \ |
67 |
+ main/cache/*.h || die |
68 |
+ |
69 |
+ mv configure.{in,ac} || die |
70 |
+ rm -r boost || die |
71 |
+ |
72 |
+ eautoreconf |
73 |
+} |
74 |
+ |
75 |
+src_configure() { |
76 |
+ append-cxxflags -std=c++11 |
77 |
+ # Required to prevent narrowing conversion in lexcode.cpp, #572072 |
78 |
+ append-cxxflags -funsigned-char |
79 |
+ econf \ |
80 |
+ $(use_enable debug) \ |
81 |
+ $(use_with X gui) \ |
82 |
+ --without-builtin-boost |
83 |
+} |
84 |
+ |
85 |
+src_install() { |
86 |
+ default |
87 |
+ |
88 |
+ insinto /etc/bfilter |
89 |
+ doins "${FILESDIR}/forwarding.xml" |
90 |
+ |
91 |
+ dodoc "${FILESDIR}/forwarding-proxy.xml" |
92 |
+ dodoc -r doc/* |
93 |
+ |
94 |
+ newinitd "${FILESDIR}/bfilter.init" bfilter |
95 |
+ newconfd "${FILESDIR}/bfilter.conf" bfilter |
96 |
+} |
97 |
+ |
98 |
+pkg_preinst() { |
99 |
+ enewgroup bfilter |
100 |
+ enewuser bfilter -1 -1 -1 bfilter |
101 |
+} |
102 |
+ |
103 |
+pkg_postinst() { |
104 |
+ elog "The documentation is available at" |
105 |
+ elog " http://bfilter.sourceforge.net/documentation.php" |
106 |
+ elog "For forwarding bfilter service traffic through a proxy," |
107 |
+ elog "see forwarding-proxy.xml example installed in the doc directory." |
108 |
+} |
109 |
|
110 |
diff --git a/net-proxy/bfilter/files/bfilter.init b/net-proxy/bfilter/files/bfilter.init |
111 |
index 76437f6..b4481ae 100644 |
112 |
--- a/net-proxy/bfilter/files/bfilter.init |
113 |
+++ b/net-proxy/bfilter/files/bfilter.init |
114 |
@@ -1,5 +1,5 @@ |
115 |
-#!/sbin/runscript |
116 |
-# Copyright 1999-2013 Gentoo Foundation |
117 |
+#!/sbin/openrc-run |
118 |
+# Copyright 1999-2016 Gentoo Foundation |
119 |
# Distributed under the terms of the GNU General Public License v2 |
120 |
# $Id$ |