1 |
commit: d306e6724ab89cdcef45b1921c22b0bc8f457c46 |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 18 22:34:21 2016 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 18 22:34:46 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d306e672 |
7 |
|
8 |
net-libs/libhtp: initial version |
9 |
|
10 |
net-libs/libhtp/Manifest | 1 + |
11 |
net-libs/libhtp/libhtp-0.5.18.ebuild | 35 +++++++++++++++++++++++++++++++++++ |
12 |
net-libs/libhtp/metadata.xml | 11 +++++++++++ |
13 |
3 files changed, 47 insertions(+) |
14 |
|
15 |
diff --git a/net-libs/libhtp/Manifest b/net-libs/libhtp/Manifest |
16 |
new file mode 100644 |
17 |
index 0000000..79fe4ba |
18 |
--- /dev/null |
19 |
+++ b/net-libs/libhtp/Manifest |
20 |
@@ -0,0 +1 @@ |
21 |
+DIST htp-0.5.18.tar.gz 799444 SHA256 53f81a2b639edbd9df9f1f0cebcfe9c2a2b381f9d61e2944c020b855a7e89a79 SHA512 e3efaedb74b8a0655b58922f2d0a079f5dfb5dcead117e21394d5d76ff93a3a7260ab56994468764ceeaa2dd584bcfa988b146efb85831e8a98efcda06b28876 WHIRLPOOL 816456580434b2254af8e88e24ff80e5721966ee742bbb89870324e9edcf12bfee4a54727855937c7bbb0d44ba9423dcf714f93a713287dbf0777ca5eeb93c86 |
22 |
|
23 |
diff --git a/net-libs/libhtp/libhtp-0.5.18.ebuild b/net-libs/libhtp/libhtp-0.5.18.ebuild |
24 |
new file mode 100644 |
25 |
index 0000000..2c11b3b |
26 |
--- /dev/null |
27 |
+++ b/net-libs/libhtp/libhtp-0.5.18.ebuild |
28 |
@@ -0,0 +1,35 @@ |
29 |
+# Copyright 1999-2016 Gentoo Foundation |
30 |
+# Distributed under the terms of the GNU General Public License v2 |
31 |
+# $Id$ |
32 |
+ |
33 |
+EAPI="5" |
34 |
+ |
35 |
+inherit multilib-minimal |
36 |
+ |
37 |
+MY_P=${P#lib} |
38 |
+ |
39 |
+DESCRIPTION="security-aware parser for the HTTP protocol and the related bits and pieces" |
40 |
+HOMEPAGE="https://github.com/OISF/libhtp" |
41 |
+SRC_URI="https://github.com/OISF/${PN}/releases/download/${PV}/${MY_P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="BSD" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86" |
46 |
+IUSE="debug static-libs" |
47 |
+ |
48 |
+RDEPEND="sys-libs/zlib[static-libs?]" |
49 |
+DEPEND="${RDEPEND}" |
50 |
+ |
51 |
+S="${WORKDIR}/${MY_P}" |
52 |
+ |
53 |
+multilib_src_configure() { |
54 |
+ # The debug configure logic is broken. |
55 |
+ ECONF_SOURCE=${S} \ |
56 |
+ econf \ |
57 |
+ $(usex debug '--enable-debug' '') \ |
58 |
+ $(use_enable static-libs static) |
59 |
+} |
60 |
+ |
61 |
+multilib_src_install_all() { |
62 |
+ use static-libs || find "${ED}" -name '*.la' -delete |
63 |
+} |
64 |
|
65 |
diff --git a/net-libs/libhtp/metadata.xml b/net-libs/libhtp/metadata.xml |
66 |
new file mode 100644 |
67 |
index 0000000..ee43247 |
68 |
--- /dev/null |
69 |
+++ b/net-libs/libhtp/metadata.xml |
70 |
@@ -0,0 +1,11 @@ |
71 |
+<?xml version="1.0" encoding="UTF-8"?> |
72 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
73 |
+<pkgmetadata> |
74 |
+<maintainer type="person"> |
75 |
+ <email>vapier@g.o</email> |
76 |
+ <description>feel free to update</description> |
77 |
+</maintainer> |
78 |
+<upstream> |
79 |
+ <remote-id type="github">OISF/libhtp</remote-id> |
80 |
+</upstream> |
81 |
+</pkgmetadata> |