2 # Copyright (C) 2007-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 # NOTE: please DO NOT update this package without the maintainer's consent.
9 # See https://github.com/haiwen/seafile/issues/1119
11 include $(TOPDIR
)/rules.mk
16 PKG_LICENSE
:=BSD-3-Clause
19 PKG_SOURCE_URL
:=https
://chromium.googlesource.com
/external
/github.com
/ellzey
/libevhtp
20 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
21 PKG_SOURCE_VERSION
:=91071e2f20749cd469b87ac2ef1c158dc2a6806f
22 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)-$(PKG_SOURCE_VERSION
).
tar.gz
23 PKG_MIRROR_HASH
:=c9c4415539e78ac9021a8507cd16b9101564dd03286bc84428cc1ee11f0df1fd
27 include $(INCLUDE_DIR
)/package.mk
29 define Package
/libevhtp
32 TITLE
:=A more flexible replacement for libevent
's httpd API
33 MAINTAINER:=Gergely Kiss <mail.gery@gmail.com>
34 URL:=https://github.com/ellzey/libevhtp
35 DEPENDS:=+libevent2 +libevent2-openssl +libevent2-pthreads +libopenssl +libpthread
38 define Package/libevhtp/description
39 Libevhtp was created as a replacement API for Libevent's current HTTP API.
40 The reality of libevent
's http interface is that it was created as a JIT server,
41 meaning the developer never thought of it being used for creating a full-fledged HTTP service.
44 include $(INCLUDE_DIR)/cmake.mk
46 define Build/InstallDev
47 $(INSTALL_DIR) $(1)/usr/{include,lib}
48 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
49 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
52 $(eval $(call BuildPackage,libevhtp))