mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
www/libhtp-suricata: Copy from devel/libhtp, Update (downgrade) to 0.2.14
Prepare to switch security/suricata to the version of libhtp recommended by upstream. This also frees devel/libhtp up for an update, which can be used for the Suricata 2.x branch and onward. www/libhtp-suricata: - Update (downgrade) to 0.2.14 - Use the correct and supported libhtp repo from Suricata - Enable STAGE support - Update pkg-plist - Take maintainership - Remove unnecessary patch (htp_util.c) - qa: Add CONFLICTS - qa: Use our AUTOTOOLS framework completely to prepare the build - qa: Patch htp.pc.in file for proper pkg-config versioning devel/libhtp: - Take maintainership - qa: Add CONFLICTS Reviewed by: wxs, mva, Johannes Meixner Approved by: wxs (maintainer)
This commit is contained in:
parent
38cc2c9a59
commit
73115d2807
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=334049
@ -6,7 +6,7 @@ PORTREVISION= 2
|
||||
CATEGORIES= devel
|
||||
#MASTER_SITES= # This port uses github
|
||||
|
||||
MAINTAINER= wxs@FreeBSD.org
|
||||
MAINTAINER= koobs@FreeBSD.org
|
||||
COMMENT= Security-aware parser for the HTTP protocol
|
||||
|
||||
USE_GITHUB= yes
|
||||
@ -22,6 +22,8 @@ CONFIGURE_ARGS= ${ICONV_CONFIGURE_ARG}
|
||||
CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib \
|
||||
${ICONV_LIB}
|
||||
|
||||
CONFLICTS_INSTALL= libhtp-suricata-*
|
||||
|
||||
NO_STAGE= yes
|
||||
pre-configure:
|
||||
@${REINPLACE_CMD} -Ee 's,^(pkgconfigdir = ).*,\1$$(exec_prefix)/libdata/pkgconfig,' ${WRKSRC}/Makefile.am
|
||||
|
@ -388,6 +388,7 @@
|
||||
SUBDIR += libecap
|
||||
SUBDIR += libepc
|
||||
SUBDIR += libgtkhtml
|
||||
SUBDIR += libhtp-suricata
|
||||
SUBDIR += libmicrohttpd
|
||||
SUBDIR += libwww
|
||||
SUBDIR += libxul
|
||||
|
29
www/libhtp-suricata/Makefile
Normal file
29
www/libhtp-suricata/Makefile
Normal file
@ -0,0 +1,29 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= libhtp
|
||||
PORTVERSION= 0.2.14
|
||||
CATEGORIES= www security
|
||||
PKGNAMESUFFIX= -suricata
|
||||
|
||||
MAINTAINER= koobs@FreeBSD.org
|
||||
COMMENT= Security-aware parser for the HTTP protocol
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= inliniac
|
||||
GH_COMMIT= 0294c27
|
||||
|
||||
USES= pkgconfig pathfix
|
||||
USE_AUTOTOOLS= aclocal autoconf autoheader automake libtoolize
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
CONFLICTS_INSTALL= libhtp-[0-9]*
|
||||
|
||||
PATHFIX_MAKEFILEIN= Makefile.am
|
||||
AUTOMAKE_ARGS+= --force-missing --add-missing
|
||||
LIBTOOLIZE_ARGS+= --force
|
||||
|
||||
pre-configure:
|
||||
@${REINPLACE_CMD} -Ee 's,^(pkgconfigdir = ).*,\1$$(exec_prefix)/libdata/pkgconfig,' ${WRKSRC}/Makefile.am
|
||||
@cd ${WRKSRC} && ${SH} ./autogen.sh
|
||||
|
||||
.include <bsd.port.mk>
|
2
www/libhtp-suricata/distinfo
Normal file
2
www/libhtp-suricata/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (libhtp-0.2.14.tar.gz) = 208796e883fec748c13e55291b99fa3c70e6ba70e7ea2581368d7563429e22e5
|
||||
SIZE (libhtp-0.2.14.tar.gz) = 139398
|
11
www/libhtp-suricata/files/patch-htp.pc.in
Normal file
11
www/libhtp-suricata/files/patch-htp.pc.in
Normal file
@ -0,0 +1,11 @@
|
||||
--- ./htp.pc.in.orig 2013-08-31 19:51:21.584289198 +1000
|
||||
+++ ./htp.pc.in 2013-08-31 19:51:30.724208312 +1000
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
Name: HTP
|
||||
Description: HTTP parser
|
||||
-Version: 0.2.X
|
||||
+Version: 0.2.14
|
||||
Libs: -L${libdir} -lhtp
|
||||
Cflags: -I${includedir}/htp -I${libdir}/htp/include
|
||||
|
23
www/libhtp-suricata/pkg-descr
Normal file
23
www/libhtp-suricata/pkg-descr
Normal file
@ -0,0 +1,23 @@
|
||||
LibHTP is a security-aware parser for the HTTP protocol and the related bits
|
||||
and pieces. The goals of the project, in the order of importance, are as
|
||||
follows:
|
||||
|
||||
1. Completeness of coverage; LibHTP must be able to parse virtually all
|
||||
traffic that is found in practice.
|
||||
|
||||
2. Permissive parsing; LibHTP must never fail to parse a stream that would
|
||||
be parsed by some other web server.
|
||||
|
||||
3. Awareness of evasion techniques; LibHTP must be able to detect and
|
||||
effectively deal with various evasion techniques, producing, where
|
||||
practical, identical or practically identical results as the web
|
||||
server processing the same traffic stream.
|
||||
|
||||
4. Performance; The performance must be adequate for the desired tasks.
|
||||
Completeness and security are often detremental to performance. Our
|
||||
idea of handling the conflicting requirements is to put the library
|
||||
user in control, allowing him to choose the most desired library
|
||||
characteristic.
|
||||
|
||||
Author: Ivan Ristic <ivanr@webkreator.com>
|
||||
WWW: https://github.com/ironbee/libhtp
|
13
www/libhtp-suricata/pkg-plist
Normal file
13
www/libhtp-suricata/pkg-plist
Normal file
@ -0,0 +1,13 @@
|
||||
include/htp/hooks.h
|
||||
include/htp/htp_decompressors.h
|
||||
include/htp/bstr.h
|
||||
include/htp/utf8_decoder.h
|
||||
include/htp/dslib.h
|
||||
include/htp/htp.h
|
||||
lib/libhtp-0.2.so
|
||||
lib/libhtp-0.2.so.1
|
||||
lib/libhtp.a
|
||||
lib/libhtp.la
|
||||
lib/libhtp.so
|
||||
libdata/pkgconfig/htp.pc
|
||||
@dirrm include/htp
|
Loading…
Reference in New Issue
Block a user