1 |
commit: 5dc98c06c3782270e6d8011eeaa02e0091ab887f |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Apr 25 22:32:57 2022 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Apr 25 22:57:11 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5dc98c06 |
7 |
|
8 |
net-libs/libhtp: add 0.5.40 |
9 |
|
10 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
11 |
|
12 |
net-libs/libhtp/Manifest | 1 + |
13 |
net-libs/libhtp/libhtp-0.5.40.ebuild | 35 +++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 36 insertions(+) |
15 |
|
16 |
diff --git a/net-libs/libhtp/Manifest b/net-libs/libhtp/Manifest |
17 |
index 2748b0f23833..3e5d822e6f32 100644 |
18 |
--- a/net-libs/libhtp/Manifest |
19 |
+++ b/net-libs/libhtp/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST libhtp-0.5.39.tar.gz 499233 BLAKE2B fec9e2b0dd867becde972e9e2bf572a21d90acc747a8ee8338e2fe68240d690706db01b12c3cf8c6bf1b5d4415da4e4a5bf92a056e1dff96f54a9ac569906712 SHA512 2c62b0a9a2f69f999a58acade362e5fcd9d85da5c720a403b0b6e7352981a206781f123aaa2f730803f2ea6088b4491d58b3c2783f8b32e4cfe1517d812e66ff |
22 |
+DIST libhtp-0.5.40.tar.gz 499564 BLAKE2B 37239d8d0afb6841c54bab1669a17ec7336b10998f8835ef91cf9556dd7449991ce6fb04a408d16b431ba6327b32f6f509a79a4c79ffc6e88e555fcf2e9f2cce SHA512 e60ad9c2bbdb0aea0966b4d672353ae68aa1fde4dfb3ad4eabc3b9ebf7907685cf583a2b66e5bfc080c5833a2fc3c593e0cd025c62051f6fe13f89d450bab18b |
23 |
|
24 |
diff --git a/net-libs/libhtp/libhtp-0.5.40.ebuild b/net-libs/libhtp/libhtp-0.5.40.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..c105c3aaa523 |
27 |
--- /dev/null |
28 |
+++ b/net-libs/libhtp/libhtp-0.5.40.ebuild |
29 |
@@ -0,0 +1,35 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+inherit autotools multilib-minimal |
36 |
+ |
37 |
+DESCRIPTION="security-aware parser for the HTTP protocol and the related bits and pieces" |
38 |
+HOMEPAGE="https://github.com/OISF/libhtp" |
39 |
+SRC_URI="https://github.com/OISF/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
40 |
+ |
41 |
+LICENSE="BSD" |
42 |
+SLOT="0" |
43 |
+KEYWORDS="~amd64 ~arm ~arm64 ~mips ~riscv ~x86" |
44 |
+IUSE="debug" |
45 |
+ |
46 |
+RDEPEND="sys-libs/zlib" |
47 |
+DEPEND="${RDEPEND}" |
48 |
+ |
49 |
+src_prepare() { |
50 |
+ default |
51 |
+ eautoreconf |
52 |
+} |
53 |
+ |
54 |
+multilib_src_configure() { |
55 |
+ # The debug configure logic is broken. |
56 |
+ ECONF_SOURCE=${S} \ |
57 |
+ econf \ |
58 |
+ $(usex debug '--enable-debug' '') \ |
59 |
+ --disable-static |
60 |
+} |
61 |
+ |
62 |
+multilib_src_install_all() { |
63 |
+ find "${ED}" -name '*.la' -delete || die "Failed to remove .la files" |
64 |
+} |