commit:     d306e6724ab89cdcef45b1921c22b0bc8f457c46
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 18 22:34:21 2016 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Thu Feb 18 22:34:46 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d306e672

net-libs/libhtp: initial version

 net-libs/libhtp/Manifest             |  1 +
 net-libs/libhtp/libhtp-0.5.18.ebuild | 35 +++++++++++++++++++++++++++++++++++
 net-libs/libhtp/metadata.xml         | 11 +++++++++++
 3 files changed, 47 insertions(+)

diff --git a/net-libs/libhtp/Manifest b/net-libs/libhtp/Manifest
new file mode 100644
index 0000000..79fe4ba
--- /dev/null
+++ b/net-libs/libhtp/Manifest
@@ -0,0 +1 @@
+DIST htp-0.5.18.tar.gz 799444 SHA256 
53f81a2b639edbd9df9f1f0cebcfe9c2a2b381f9d61e2944c020b855a7e89a79 SHA512 
e3efaedb74b8a0655b58922f2d0a079f5dfb5dcead117e21394d5d76ff93a3a7260ab56994468764ceeaa2dd584bcfa988b146efb85831e8a98efcda06b28876
 WHIRLPOOL 
816456580434b2254af8e88e24ff80e5721966ee742bbb89870324e9edcf12bfee4a54727855937c7bbb0d44ba9423dcf714f93a713287dbf0777ca5eeb93c86

diff --git a/net-libs/libhtp/libhtp-0.5.18.ebuild 
b/net-libs/libhtp/libhtp-0.5.18.ebuild
new file mode 100644
index 0000000..2c11b3b
--- /dev/null
+++ b/net-libs/libhtp/libhtp-0.5.18.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit multilib-minimal
+
+MY_P=${P#lib}
+
+DESCRIPTION="security-aware parser for the HTTP protocol and the related bits 
and pieces"
+HOMEPAGE="https://github.com/OISF/libhtp";
+SRC_URI="https://github.com/OISF/${PN}/releases/download/${PV}/${MY_P}.tar.gz";
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86"
+IUSE="debug static-libs"
+
+RDEPEND="sys-libs/zlib[static-libs?]"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+multilib_src_configure() {
+       # The debug configure logic is broken.
+       ECONF_SOURCE=${S} \
+       econf \
+               $(usex debug '--enable-debug' '') \
+               $(use_enable static-libs static)
+}
+
+multilib_src_install_all() {
+       use static-libs || find "${ED}" -name '*.la' -delete
+}

diff --git a/net-libs/libhtp/metadata.xml b/net-libs/libhtp/metadata.xml
new file mode 100644
index 0000000..ee43247
--- /dev/null
+++ b/net-libs/libhtp/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+<maintainer type="person">
+       <email>vap...@gentoo.org</email>
+       <description>feel free to update</description>
+</maintainer>
+<upstream>
+       <remote-id type="github">OISF/libhtp</remote-id>
+</upstream>
+</pkgmetadata>

Reply via email to