Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Apr 2020 09:55:01 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r530874 - in head/www: . simple-web-server simple-web-server/files
Message-ID:  <202004060955.0369t1nQ018318@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Mon Apr  6 09:55:01 2020
New Revision: 530874
URL: https://svnweb.freebsd.org/changeset/ports/530874

Log:
  New port: www/simple-web-server: HTTP and HTTPS server and client library

Added:
  head/www/simple-web-server/
  head/www/simple-web-server/Makefile   (contents, props changed)
  head/www/simple-web-server/distinfo   (contents, props changed)
  head/www/simple-web-server/files/
  head/www/simple-web-server/files/patch-CMakeLists.txt   (contents, props changed)
  head/www/simple-web-server/pkg-descr   (contents, props changed)
  head/www/simple-web-server/pkg-plist   (contents, props changed)
Modified:
  head/www/Makefile

Modified: head/www/Makefile
==============================================================================
--- head/www/Makefile	Mon Apr  6 09:32:21 2020	(r530873)
+++ head/www/Makefile	Mon Apr  6 09:55:01 2020	(r530874)
@@ -2169,6 +2169,7 @@
     SUBDIR += shellinabox
     SUBDIR += shttpd
     SUBDIR += silicon
+    SUBDIR += simple-web-server
     SUBDIR += sitecopy
     SUBDIR += skytemplate
     SUBDIR += slowcgi

Added: head/www/simple-web-server/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/simple-web-server/Makefile	Mon Apr  6 09:55:01 2020	(r530874)
@@ -0,0 +1,30 @@
+# $FreeBSD$
+
+PORTNAME=	simple-web-server
+DISTVERSION=	3.0.2
+CATEGORIES=	www devel
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	HTTP and HTTPS server and client library
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	boost-libs>0:devel/boost-libs
+
+USES=		cmake compiler:c++11-lang
+USE_GITLAB=	yes
+GL_ACCOUNT=	eidheim
+GL_PROJECT=	Simple-Web-Server
+GL_COMMIT=	0f8b26ff19d757db039d6f70e252219326cc3d8f
+
+NO_ARCH=	yes
+NO_BUILD=	yes
+
+do-test: # one testcase is known to fail: https://gitlab.com/eidheim/Simple-Web-Server/-/issues/294
+	@cd ${BUILD_WRKSRC} && \
+		${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_TESTING:BOOL=ON ${CMAKE_SOURCE_PATH} && \
+		${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
+		${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test
+
+.include <bsd.port.mk>

Added: head/www/simple-web-server/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/simple-web-server/distinfo	Mon Apr  6 09:55:01 2020	(r530874)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1586165807
+SHA256 (eidheim-Simple-Web-Server-0f8b26ff19d757db039d6f70e252219326cc3d8f_GL0.tar.gz) = 0d5268dece9a5cd8ebd48c4e916adf0063f024a347c6098d7a8f40b4a53f77a9
+SIZE (eidheim-Simple-Web-Server-0f8b26ff19d757db039d6f70e252219326cc3d8f_GL0.tar.gz) = 70705

Added: head/www/simple-web-server/files/patch-CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/simple-web-server/files/patch-CMakeLists.txt	Mon Apr  6 09:55:01 2020	(r530874)
@@ -0,0 +1,33 @@
+--- CMakeLists.txt.orig	2019-08-05 07:18:27 UTC
++++ CMakeLists.txt
+@@ -61,20 +61,20 @@ endif()
+ 
+ # If Simple-Web-Server is not a sub-project:
+ if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")
+-    add_executable(http_examples http_examples.cpp)
+-    target_link_libraries(http_examples simple-web-server)
++    #add_executable(http_examples http_examples.cpp)
++    #target_link_libraries(http_examples simple-web-server)
+ 
+-    find_package(Boost 1.53.0 COMPONENTS system thread filesystem REQUIRED)
+-    target_link_libraries(http_examples ${Boost_LIBRARIES})
+-    target_include_directories(http_examples PRIVATE ${Boost_INCLUDE_DIR})
++    #find_package(Boost 1.53.0 COMPONENTS system thread filesystem REQUIRED)
++    #target_link_libraries(http_examples ${Boost_LIBRARIES})
++    #target_include_directories(http_examples PRIVATE ${Boost_INCLUDE_DIR})
+     if(OPENSSL_FOUND)
+-        add_executable(https_examples https_examples.cpp)
+-        target_link_libraries(https_examples simple-web-server)
+-        target_link_libraries(https_examples ${Boost_LIBRARIES})
+-        target_include_directories(https_examples PRIVATE ${Boost_INCLUDE_DIR})
++        #add_executable(https_examples https_examples.cpp)
++        #target_link_libraries(https_examples simple-web-server)
++        #target_link_libraries(https_examples ${Boost_LIBRARIES})
++        #target_include_directories(https_examples PRIVATE ${Boost_INCLUDE_DIR})
+     endif()
+ 
+-    set(BUILD_TESTING ON)
++    #set(BUILD_TESTING ON)
+ 
+     install(FILES asio_compatibility.hpp server_http.hpp client_http.hpp server_https.hpp client_https.hpp crypto.hpp utility.hpp status_code.hpp mutex.hpp DESTINATION include/simple-web-server)
+ endif()

Added: head/www/simple-web-server/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/simple-web-server/pkg-descr	Mon Apr  6 09:55:01 2020	(r530874)
@@ -0,0 +1,5 @@
+A very simple, fast, multithreaded, platform independent HTTP and HTTPS server
+and client library implemented using C++11 and Boost.Asio. Created to be an easy
+way to make REST resources available from C++ applications.
+
+WWW: https://gitlab.com/eidheim/Simple-Web-Server

Added: head/www/simple-web-server/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/simple-web-server/pkg-plist	Mon Apr  6 09:55:01 2020	(r530874)
@@ -0,0 +1,9 @@
+include/simple-web-server/asio_compatibility.hpp
+include/simple-web-server/client_http.hpp
+include/simple-web-server/client_https.hpp
+include/simple-web-server/crypto.hpp
+include/simple-web-server/mutex.hpp
+include/simple-web-server/server_http.hpp
+include/simple-web-server/server_https.hpp
+include/simple-web-server/status_code.hpp
+include/simple-web-server/utility.hpp



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202004060955.0369t1nQ018318>