From nobody Fri Oct 18 20:06:32 2024 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XVbLx0cJdz5YtRM; Fri, 18 Oct 2024 20:06:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XVbLw70DWz4FKW; Fri, 18 Oct 2024 20:06:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729281993; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RH5EXx0HkFdYUXEXztt2Uj95fHYXq4rykH3SVAIat58=; b=FbG3k8m8ml3FGExhyv32irFiQkJ5S//bcs8V1hO2w+NYM7PNiqNDEwGt5UHHOSuoopkcXr SFwJzodGp1ys4NO9I3qQnVfbCR1RVWqSAY1Ial1BxapThUZ8GgdjiHRk06TkltaUXGOYbJ Rf5g7zjgenMVAQMO95AmX6py07mcsDB2peOAe3Mp9gJalBCGqv/Iq/Nfxyp220n8oS62Zz w5IQRiLs6FoniO1w0693D9XS1e1FmWJivQcz7r7F8hVfsQgLxj+cVjN2YyLZC8W+q90r4c NEVpYalx3K4flhwQqLyax4aeTL63c+fZMf9IO+gm+4daZ1ZnxeqcFk8I4BBy+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729281993; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RH5EXx0HkFdYUXEXztt2Uj95fHYXq4rykH3SVAIat58=; b=Zng11PjIJtpaREzX7j3kZiN7SXxnaQfXWlLxvYxcykriROK/Vg2Ge67RYpPNYlDIfjd/T+ p8YN0mrkMcBgLYJoauqc3LH4i9ha3RYlXf0ZXZuWszZa7VrNhPuFnXBMo77tuSxeD/60my 8rlrdE+oN4rxq0tiW9YX74tlUfLThf2pn6wDhRxiT8Yhhv2epjrhLI/yDkmT46f0JRPi2x ZRmE8SvS5Jmo6IkVVTg2N2Yli1YMT4Bk9BwdwasRsMTJyKElifCW/qylITbhalP4vHDawP zAOlz2xKK/smQ0qsieQZEuEyPMqNI+MoJ+wCqt/W6UT6bG3Y+r5mZWCKqjHhGA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729281993; a=rsa-sha256; cv=none; b=yhZcqWfCT9H3px7zoi4NCBt8vNolKjbrIM3lQVW7slETgy3aFH5B0fmepBLhgE/jmIz5p6 OJ5JSBPUVcHO8h8d3w4MZhz9LHKRyRi9KpzQVFYyd8jhl+vaaNrjR5MQT59ncFVw6uXZk8 rwLzOD0QdQA891wyN9W+33ATKEPbBN0mPGvYXZdVdrNBcrxa2HArj/nOloiDIqd9gQC95t XnMbDyqwDRgzTTvMaJDNeg4Uuxw6ucPYixIvEiuounZR2NkxWNaH6om6Fkji3KWwkAcVdF Gge/Ieule5bBd6oNLfxtRKWLjGzxguvegH1JYMU5XJZAuno82PtZEZRgzhwuLQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XVbLw6Z6xznnX; Fri, 18 Oct 2024 20:06:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 49IK6Wu6042395; Fri, 18 Oct 2024 20:06:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49IK6WiQ042392; Fri, 18 Oct 2024 20:06:32 GMT (envelope-from git) Date: Fri, 18 Oct 2024 20:06:32 GMT Message-Id: <202410182006.49IK6WiQ042392@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Alexey Dokuchaev Subject: git: 71caea389e53 - main - www/cas: resurrect^Wreadd the port and update to latest version List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: danfe X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 71caea389e5352be8de3179de84d04f39434f757 Auto-Submitted: auto-generated The branch main has been updated by danfe: URL: https://cgit.FreeBSD.org/ports/commit/?id=71caea389e5352be8de3179de84d04f39434f757 commit 71caea389e5352be8de3179de84d04f39434f757 Author: Alexey Dokuchaev AuthorDate: 2024-10-18 20:03:30 +0000 Commit: Alexey Dokuchaev CommitDate: 2024-10-18 20:03:30 +0000 www/cas: resurrect^Wreadd the port and update to latest version - Unbreak and update to version 3.8.0 (fetched from GitHub) - Drop the options which did not pull additional dependencies and simply controlled what would be packaged (this is what subpackages are for) - Amend the port description based on the debian/control file --- www/Makefile | 1 + www/cas/Makefile | 45 ++++++++++++++++++ www/cas/distinfo | 3 ++ www/cas/files/patch-CMakeLists.txt | 21 +++++++++ www/cas/pkg-descr | 2 + www/cas/pkg-plist | 93 ++++++++++++++++++++++++++++++++++++++ 6 files changed, 165 insertions(+) diff --git a/www/Makefile b/www/Makefile index 1a572f681957..61637308439b 100644 --- a/www/Makefile +++ b/www/Makefile @@ -91,6 +91,7 @@ SUBDIR += calamaris-devel SUBDIR += caldavzap SUBDIR += carbonapi + SUBDIR += cas SUBDIR += castget SUBDIR += castor SUBDIR += cgi-lib diff --git a/www/cas/Makefile b/www/cas/Makefile new file mode 100644 index 000000000000..40f86bfe4e0d --- /dev/null +++ b/www/cas/Makefile @@ -0,0 +1,45 @@ +PORTNAME= cas +PORTVERSION= 3.8.0 +CATEGORIES= www devel + +MAINTAINER= danfe@FreeBSD.org +COMMENT= C++ Application Server +WWW= https://github.com/CommunicoPublic/cas + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libctpp2.so:textproc/ctpp2 \ + libexpat.so:textproc/expat2 \ + libpcre.so:devel/pcre + +USES= cmake:insource iconv ssl +USE_GITHUB= yes +GH_ACCOUNT= CommunicoPublic +GH_TAGNAME= 4fbf8e3 +USE_LDCONFIG= yes + +.if !defined(WITH_DEBUG) +CMAKE_OFF+= DEBUG_MODE +.endif + +OPTIONS_DEFINE= APACHE EXAMPLES XMLRPC +OPTIONS_DEFAULT= APACHE XMLRPC +OPTIONS_SUB= yes + +APACHE_USES= apache +APACHE_CMAKE_OFF= -DBUILD_APACHE2X_MODULE:BOOL=OFF + +EXAMPLES_CMAKE_OFF= -DINSTALL_EXAMPLE_MODULES:BOOL=OFF + +XMLRPC_DESC= Build cURL-based XMLRPC client +XMLRPC_LIB_DEPENDS= libcurl.so:ftp/curl +XMLRPC_CMAKE_OFF= -DBUILD_CURL_XMLRPC_CLIENT:BOOL=OFF + +post-patch: + @${REINPLACE_CMD} -e 's,real_pcre,&8_or_16,' \ + ${WRKSRC}/include/ASPCRE.hpp + @${REINPLACE_CMD} -e 's,while (szString,while (*szString,' \ + ${WRKSRC}/src/SAPI/util/ASSAPIUtil.cpp + +.include diff --git a/www/cas/distinfo b/www/cas/distinfo new file mode 100644 index 000000000000..388306a3a73a --- /dev/null +++ b/www/cas/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1467392942 +SHA256 (CommunicoPublic-cas-3.8.0-4fbf8e3_GH0.tar.gz) = 2d2feaa0cd54c129138bcdcdc70b4b1ab0b16270287bc8b029ad1b91c2d5e369 +SIZE (CommunicoPublic-cas-3.8.0-4fbf8e3_GH0.tar.gz) = 179314 diff --git a/www/cas/files/patch-CMakeLists.txt b/www/cas/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..ece2aca985f5 --- /dev/null +++ b/www/cas/files/patch-CMakeLists.txt @@ -0,0 +1,21 @@ +--- CMakeLists.txt.orig 2016-07-01 17:09:02 UTC ++++ CMakeLists.txt +@@ -36,6 +36,9 @@ SET(CAS_LIB_DIR "lib" CACHE STRING "Lib + # CAS share dir + SET(CAS_SHAREDIR "${CMAKE_INSTALL_PREFIX}/share/cas") + ++# CAS config dir ++SET(CAS_CONFDIR "${CMAKE_INSTALL_PREFIX}/etc/cas") ++ + # Force linking with libstdc++, need for Solaris + SET(FORCE_LBSTDCPP_LINKING "OFF") + +@@ -949,7 +952,7 @@ IF (INSTALL_CAS_CONFIGS MATCHES "ON") + INSTALL(FILES conf/global-config.xml.sample + conf/vhost-config.xml.sample + conf/module-config.xml.sample +- DESTINATION ${CAS_SHAREDIR}/conf ++ DESTINATION ${CAS_CONFDIR} + PERMISSIONS OWNER_READ OWNER_WRITE + GROUP_READ + WORLD_READ) diff --git a/www/cas/pkg-descr b/www/cas/pkg-descr new file mode 100644 index 000000000000..24cd452e0897 --- /dev/null +++ b/www/cas/pkg-descr @@ -0,0 +1,2 @@ +CAS is a fast, powerful, and extensible HTTP and XML/JSON/BSON-RPC +application server, written in C++. diff --git a/www/cas/pkg-plist b/www/cas/pkg-plist new file mode 100644 index 000000000000..a6068b5b45bd --- /dev/null +++ b/www/cas/pkg-plist @@ -0,0 +1,93 @@ +bin/cas-config +bin/cas-globalconf +bin/cas-hostconf +bin/cas-regexp +bin/cas-server +bin/cas-xmlrpc-parser +bin/cas-xt +%%ETCDIR%%/global-config.xml.sample +%%ETCDIR%%/module-config.xml.sample +%%ETCDIR%%/vhost-config.xml.sample +include/cas/ASConfigErrorHandler.hpp +include/cas/ASCookie.hpp +include/cas/ASDataFilter.hpp +include/cas/ASDebugHelper.hpp +include/cas/ASEventCodes.hpp +include/cas/ASException.hpp +include/cas/ASFile.hpp +include/cas/ASFilePool.hpp +include/cas/ASGenericConfigHandler.hpp +include/cas/ASGetOpt.hpp +include/cas/ASGlobalConfig.hpp +include/cas/ASHandler.hpp +include/cas/ASHandlerConfig.hpp +include/cas/ASHostConfig.hpp +include/cas/ASLoadableObject.hpp +include/cas/ASLoader.hpp +include/cas/ASLocation.hpp +include/cas/ASLocationURI.hpp +include/cas/ASLogCodes.hpp +include/cas/ASLogger.hpp +include/cas/ASMD5.hpp +include/cas/ASModule.hpp +include/cas/ASNetworkRange.hpp +include/cas/ASObject.hpp +include/cas/ASObjectLoader.hpp +include/cas/ASPCRE.hpp +include/cas/ASPool.hpp +include/cas/ASPreRequestHandler.hpp +include/cas/ASPreRequestHandlerConfig.hpp +include/cas/ASProfiler.hpp +include/cas/ASRequest.hpp +include/cas/ASResourceStorage.hpp +include/cas/ASResponse.hpp +include/cas/ASResponseCodes.hpp +include/cas/ASResponseWriter.hpp +include/cas/ASServer.hpp +include/cas/ASServerContext.hpp +include/cas/ASServerManager.hpp +include/cas/ASSysHeaders.h +include/cas/ASTemplate.hpp +include/cas/ASTypes.hpp +include/cas/ASUtil.hpp +include/cas/ASView.hpp +include/cas/ASViewConfig.hpp +include/cas/ASXMLHandler.hpp +include/cas/ASXMLParser.hpp +%%XMLRPC%%include/cas/ASXMLRPCClient.hpp +include/cas/ASXMLRPCHandler.hpp +include/cas/STLException.hpp +include/cas/STLFunctional.hpp +include/cas/STLMap.hpp +include/cas/STLPair.hpp +include/cas/STLString.hpp +include/cas/STLVector.hpp +lib/libcas.a +lib/libcas.so +lib/libcas.so.3.8 +lib/libcas.so.3.8.0 +%%EXAMPLES%%lib/libexampleclass.so +%%EXAMPLES%%lib/libexampleclass.so.3.8 +%%EXAMPLES%%lib/libexampleclass.so.3.8.0 +%%APACHE%%libexec/apache24/mod_cas2.so +libexec/cas/mod_bson_view.so +libexec/cas/mod_bsonrpc_view.so +libexec/cas/mod_ctpp_view.so +%%EXAMPLES%%libexec/cas/mod_example_handler.so +%%EXAMPLES%%libexec/cas/mod_example_module.so +%%EXAMPLES%%libexec/cas/mod_example_view.so +libexec/cas/mod_json_view.so +libexec/cas/mod_jsonrpc_view.so +libexec/cas/mod_plain_view.so +libexec/cas/mod_tabseparated_view.so +libexec/cas/mod_xml_view.so +libexec/cas/mod_xmlrpc_view.so +sbin/cas-fcgid +%%DATADIR%%/examples/request.json +%%DATADIR%%/xt/CMakeLists.tmpl +%%DATADIR%%/xt/ConfigureLibrary.cmake +%%DATADIR%%/xt/ConfigurePackage.cmake +%%DATADIR%%/xt/HandlerTemplate.tmpl +%%DATADIR%%/xt/PreRequestHandlerTemplate.tmpl +%%DATADIR%%/xt/RenameModule.cmake +%%DATADIR%%/xt/ViewTemplate.tmpl