Add new port www/libevhtp

PR:		191979
Submitted by:	JingFeng Yan

Libevhtp was created as a replacement API for Libevent's current HTTP API.
The reality of libevent's http interface is that it was created as a JIT
server, meaning the developer never thought of it being used for creating a
full-fledged HTTP service. The maintainer is under the impression that the
libevent http API was designed almost as an example of what you can do with
libevent. It's not Apache in a box, but more and more developers are
attempting to use it as such.
This commit is contained in:
John Marino 2014-08-19 10:40:58 +00:00
parent 2cd4c4b238
commit 80d88a60d7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=365370
4 changed files with 52 additions and 0 deletions

View File

@ -381,6 +381,7 @@
SUBDIR += libapreq2
SUBDIR += libecap
SUBDIR += libepc
SUBDIR += libevhtp
SUBDIR += libgtkhtml
SUBDIR += libhpack
SUBDIR += libhtp-suricata

40
www/libevhtp/Makefile Normal file
View File

@ -0,0 +1,40 @@
# $FreeBSD$
PORTNAME= libevhtp
PORTVERSION= 1.2.9
CATEGORIES= www
MAINTAINER= yan_jingfeng@yahoo.com
COMMENT= Flexible replacement for libevent httpd API
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libevent.so:${PORTSDIR}/devel/libevent2
USE_GITHUB= yes
GH_ACCOUNT= ellzey
GH_PROJECT= libevhtp
GH_TAGNAME= ${GH_COMMIT}
GH_COMMIT= 3886506
USES= cmake:outsource
CMAKE_ARGS= -DCMAKE_INCLUDE_PATH:PATH=include/event2 \
-DCMAKE_LIBRARY_PATH:PATH=lib/event2
CMAKE_BUILD_TYPE= Release
PLIST_FILES= include/evhtp.h\
include/evhtp-config.h \
include/evthr.h \
include/htparse.h \
include/onigposix.h \
lib/libevhtp.a
.include <bsd.port.pre.mk>
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 900000
BROKEN= Does not build on FreeBSD 8.x
.endif
.include <bsd.port.post.mk>

2
www/libevhtp/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (libevhtp-1.2.9.tar.gz) = d980d6eb0d6fd5ee2d1123a997364c82413f6b22bd22ee2347bae2150bd435a4
SIZE (libevhtp-1.2.9.tar.gz) = 360769

9
www/libevhtp/pkg-descr Normal file
View File

@ -0,0 +1,9 @@
Libevhtp was created as a replacement API for Libevent's current HTTP API.
The reality of libevent's http interface is that it was created as a JIT
server, meaning the developer never thought of it being used for creating a
full-fledged HTTP service. The maintainer is under the impression that the
libevent http API was designed almost as an example of what you can do with
libevent. It's not Apache in a box, but more and more developers are
attempting to use it as such.
WWW: https://github.com/ellzey/libevhtp