mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
libevhtp: update to 1.2.18, add maintainer
Versions earlier than 1.2.15 had security vulnerabilities, especially related to the bundled oniguruma. Now libevhtp uses a system-provided library instead. The API changed as well, requiring patches to seafile-server. Adds @cotequeiroz Eneas U de Queiroz as maintainer. Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
This commit is contained in:
+14
-5
@@ -11,21 +11,24 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=libevhtp
|
||||
PKG_VERSION:=1.2.0
|
||||
PKG_RELEASE:=2
|
||||
PKG_VERSION:=1.2.18
|
||||
PKG_RELEASE:=1
|
||||
# This package is building a static library, used by seafile-server
|
||||
# Every time the built library changes (metadata changes are exempt),
|
||||
# seafile-server needs a release bump to ensure the update is used.
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://codeload.github.com/criticalstack/libevhtp/tar.gz/$(PKG_VERSION)?
|
||||
PKG_HASH:=d8d98072693f5f68ccd74d327dedfa2f6add4446ac2799689c2f58dd480aa301
|
||||
PKG_HASH:=316ede0d672be3ae6fe489d4ac1c8c53a1db7d4fe05edaff3c7c853933e02795
|
||||
|
||||
PKG_MAINTAINER:=
|
||||
PKG_MAINTAINER:=Eneas U de Queiroz <cote2004-github@yahoo.com>
|
||||
PKG_LICENSE:=BSD-3-Clause
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
||||
CMAKE_INSTALL:=1
|
||||
CMAKE_OPTIONS += \
|
||||
-DLIB_INSTALL_DIR="$(STAGING_DIR)/usr/lib" \
|
||||
-DINCLUDE_INSTALL_DIR="$(STAGING_DIR)/usr/include"
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
include $(INCLUDE_DIR)/cmake.mk
|
||||
@@ -35,7 +38,7 @@ define Package/libevhtp
|
||||
CATEGORY:=Libraries
|
||||
TITLE:=A more flexible replacement for libevent's httpd API
|
||||
URL:=https://github.com/criticalstack/libevhtp
|
||||
DEPENDS:=+libevent2 +libevent2-openssl +libevent2-pthreads
|
||||
DEPENDS:=+libevent2 +libevent2-openssl +libevent2-pthreads +oniguruma
|
||||
endef
|
||||
|
||||
define Package/libevhtp/description
|
||||
@@ -44,4 +47,10 @@ define Package/libevhtp/description
|
||||
meaning the developer never thought of it being used for creating a full-fledged HTTP service.
|
||||
endef
|
||||
|
||||
define Package/InstallDev
|
||||
$(INSTALL_DIR) $(1)/usr/{lib,include}
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/. $(1)/usr/include/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/. $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,libevhtp))
|
||||
|
||||
Reference in New Issue
Block a user