diff options
author | Eitan Adler <eadler@FreeBSD.org> | 2011-12-25 19:25:29 +0000 |
---|---|---|
committer | Eitan Adler <eadler@FreeBSD.org> | 2011-12-25 19:25:29 +0000 |
commit | 5f4e51e3732941c3791c1adb34d72a62687a5d25 (patch) | |
tree | ce92a06d8e7cdbab1ac1b3ed5ca95bd3e632a236 /www | |
parent | 2b93f6cf05237ed0659f6f807ae7509aa822eaeb (diff) | |
download | ports-5f4e51e3732941c3791c1adb34d72a62687a5d25.tar.gz ports-5f4e51e3732941c3791c1adb34d72a62687a5d25.zip |
Notes
Diffstat (limited to 'www')
-rw-r--r-- | www/Makefile | 1 | ||||
-rw-r--r-- | www/cas/Makefile | 137 | ||||
-rw-r--r-- | www/cas/distinfo | 2 | ||||
-rw-r--r-- | www/cas/files/patch-CMakeLists.txt | 21 | ||||
-rw-r--r-- | www/cas/pkg-descr | 3 | ||||
-rw-r--r-- | www/cas/pkg-plist | 109 |
6 files changed, 273 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile index 62a4a5c55b6a..709988cd9544 100644 --- a/www/Makefile +++ b/www/Makefile @@ -75,6 +75,7 @@ SUBDIR += cakephp12 SUBDIR += cakephp13 SUBDIR += calamaris + SUBDIR += cas SUBDIR += castget SUBDIR += caudium14 SUBDIR += cblog diff --git a/www/cas/Makefile b/www/cas/Makefile new file mode 100644 index 000000000000..2363efb2d7f1 --- /dev/null +++ b/www/cas/Makefile @@ -0,0 +1,137 @@ +# New ports collection makefile for: cas +# Date created: 24 Nov 2011 +# Whom: Alexander Lunkov <lunkov@gmail.com> +# +# $FreeBSD$ +# + +PORTNAME= cas +PORTVERSION= 3.5.3 +CATEGORIES= www devel +MASTER_SITES= http://cas.havoc.ru/download/ + +MAINTAINER= lunkov@gmail.com +COMMENT= C++ Application Server, version 2 + +LIB_DEPENDS= expat:${PORTSDIR}/textproc/expat2 \ + pcre:${PORTSDIR}/devel/pcre \ + ctpp2:${PORTSDIR}/textproc/ctpp2 + +USE_CMAKE= yes +USE_LDCONFIG= yes +USE_ICONV= yes +WITHOUT_NLS= yes + +OPTIONS= DEBUG_MODE "Enable debug output" off \ + ENABLE_OPTIMIZATION "Enable optimization" on \ + BUILD_APACHE13_MODULE "Build Apache 1.3 module" off \ + BUILD_APACHE2X_MODULE "Build Apache 2.x module" on \ + BUILD_CURL_XMLRPC_CLIENT "Build cURL-based XMLRPC client" on \ + INSTALL_EXAMPLE_MODULES "Install example modules" off \ + INSTALL_CAS_LIBRARY "Install CAS library (libcas)" on \ + INSTALL_CAS_MODULES "Install CAS modules" on \ + INSTALL_CAS_HEADERS "Install CAS headers" on \ + INSTALL_CAS_CONFIGS "Install CAS configuration files" on \ + INSTALL_CAS_BINARIES "Install CAS binaries" on \ + INSTALL_CAS_DATA "Install CAS data files" on + +PLIST_SUB+= PORTVERSION=${PORTVERSION} + +.include <bsd.port.options.mk> + +.if defined(WITH_DEBUG_MODE) +CMAKE_ARGS+= -DDEBUG_MODE=ON +.else +CMAKE_ARGS+= -DDEBUG_MODE=OFF +.endif + +.if defined(WITH_ENABLE_OPTIMIZATION) +CMAKE_ARGS+= -DENABLE_OPTIMIZATION=ON +.else +CMAKE_ARGS+= -DENABLE_OPTIMIZATION=OFF +.endif + +.if defined(WITH_BUILD_APACHE13_MODULE) +CMAKE_ARGS+= -DBUILD_APACHE13_MODULE=ON +USE_APACHE= 13 +PLIST_SUB+= APACHE13_MODULE="" +.else +CMAKE_ARGS+= -DBUILD_APACHE13_MODULE=OFF +PLIST_SUB+= APACHE13_MODULE="@comment " +.endif + +.if defined(WITH_BUILD_APACHE2X_MODULE) +USE_APACHE= 20+ +CMAKE_ARGS+= -DBUILD_APACHE2X_MODULE=ON +PLIST_SUB+= APACHE2X_MODULE="" +.else +CMAKE_ARGS+= -DBUILD_APACHE2X_MODULE=OFF +PLIST_SUB+= APACHE2X_MODULE="@comment " +.endif + +.if defined(WITH_BUILD_CURL_XMLRPC_CLIENT) +LIB_DEPENDS+= curl:${PORTSDIR}/ftp/curl +CMAKE_ARGS+= -DBUILD_CURL_XMLRPC_CLIENT=ON +PLIST_SUB+= CURL_XMLRPC_CLIENT="" +.else +CMAKE_ARGS+= -DBUILD_CURL_XMLRPC_CLIENT=OFF +PLIST_SUB+= CURL_XMLRPC_CLIENT="@comment " +.endif + +.if defined(WITH_INSTALL_EXAMPLE_MODULES) +CMAKE_ARGS+= -DINSTALL_EXAMPLE_MODULES=ON +PLIST_SUB+= EXAMPLE_MODULES="" +.else +CMAKE_ARGS+= -DINSTALL_EXAMPLE_MODULES=OFF +PLIST_SUB+= EXAMPLE_MODULES="@comment " +.endif + +.if defined(WITH_INSTALL_CAS_LIBRARY) +CMAKE_ARGS+= -DINSTALL_CAS_LIBRARY=ON +PLIST_SUB+= CAS_LIBRARY="" +.else +CMAKE_ARGS+= -DINSTALL_CAS_LIBRARY=OFF +PLIST_SUB+= CAS_LIBRARY="@comment " +.endif + +.if defined(WITH_INSTALL_CAS_MODULES) +CMAKE_ARGS+= -DINSTALL_CAS_MODULES=ON +PLIST_SUB+= CAS_MODULES="" +.else +CMAKE_ARGS+= -DINSTALL_CAS_MODULES=OFF +PLIST_SUB+= CAS_MODULES="@comment " +.endif + +.if defined(WITH_INSTALL_CAS_HEADERS) +CMAKE_ARGS+= -DINSTALL_CAS_HEADERS=ON +PLIST_SUB+= CAS_HEADERS="" +.else +CMAKE_ARGS+= -DINSTALL_CAS_HEADERS=OFF +PLIST_SUB+= CAS_HEADERS="@comment " +.endif + +.if defined(WITH_INSTALL_CAS_CONFIGS) +CMAKE_ARGS+= -DINSTALL_CAS_CONFIGS=ON +PLIST_SUB+= CAS_CONFIGS="" +.else +CMAKE_ARGS+= -DINSTALL_CAS_CONFIGS=OFF +PLIST_SUB+= CAS_CONFIGS="@comment " +.endif + +.if defined(WITH_INSTALL_CAS_BINARIES) +CMAKE_ARGS+= -DINSTALL_CAS_BINARIES=ON +PLIST_SUB+= CAS_BINARIES="" +.else +CMAKE_ARGS+= -DINSTALL_CAS_BINARIES=OFF +PLIST_SUB+= CAS_BINARIES="@comment " +.endif + +.if defined(WITH_INSTALL_CAS_DATA) +CMAKE_ARGS+= -DINSTALL_CAS_DATA=ON +PLIST_SUB+= CAS_DATA="" +.else +CMAKE_ARGS+= -DINSTALL_CAS_DATA=OFF +PLIST_SUB+= CAS_DATA="@comment " +.endif + +.include <bsd.port.mk> diff --git a/www/cas/distinfo b/www/cas/distinfo new file mode 100644 index 000000000000..d90e7d26fec1 --- /dev/null +++ b/www/cas/distinfo @@ -0,0 +1,2 @@ +SHA256 (cas-3.5.3.tar.gz) = ed8d1ba56dc263e91de204778bc8634209feb170872e50e82fa0678527d18afb +SIZE (cas-3.5.3.tar.gz) = 465381 diff --git a/www/cas/files/patch-CMakeLists.txt b/www/cas/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..f948ad2ec18b --- /dev/null +++ b/www/cas/files/patch-CMakeLists.txt @@ -0,0 +1,21 @@ +--- CMakeLists.txt.orig 2011-11-24 17:42:01.000000000 +0300 ++++ CMakeLists.txt 2011-11-25 18:23:34.000000000 +0300 +@@ -33,6 +33,9 @@ + # CAS share dir + SET(CAS_SHAREDIR "${CMAKE_INSTALL_PREFIX}/share/cas") + ++# CAS conf dir ++SET(CAS_CONFDIR "${CMAKE_INSTALL_PREFIX}/etc/cas") ++ + # Force linking with libstdc++, need for Solaris + SET(FORCE_LBSTDCPP_LINKING "OFF") + +@@ -864,7 +867,7 @@ + IF (INSTALL_CAS_CONFIGS MATCHES "ON") + INSTALL(FILES conf/global-config.xml.sample + conf/vhost-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..a217eeed7241 --- /dev/null +++ b/www/cas/pkg-descr @@ -0,0 +1,3 @@ +C++ Application Server, version 2 + +WWW: http://ctpp.havoc.ru/ diff --git a/www/cas/pkg-plist b/www/cas/pkg-plist new file mode 100644 index 000000000000..231c7cce260f --- /dev/null +++ b/www/cas/pkg-plist @@ -0,0 +1,109 @@ +%%CAS_BINARIES%%bin/cas-config +%%CAS_BINARIES%%bin/cas-globalconf +%%CAS_BINARIES%%bin/cas-hostconf +%%CAS_BINARIES%%bin/cas-regexp +%%CAS_BINARIES%%bin/cas-server +%%CAS_BINARIES%%bin/cas-xmlrpc-parser +%%CAS_BINARIES%%bin/cas-xt +%%CAS_HEADERS%%include/cas/ASConfigErrorHandler.hpp +%%CAS_HEADERS%%include/cas/ASCookie.hpp +%%CAS_HEADERS%%include/cas/ASDataFilter.hpp +%%CAS_HEADERS%%include/cas/ASDebugHelper.hpp +%%CAS_HEADERS%%include/cas/ASEventCodes.hpp +%%CAS_HEADERS%%include/cas/ASException.hpp +%%CAS_HEADERS%%include/cas/ASFile.hpp +%%CAS_HEADERS%%include/cas/ASFilePool.hpp +%%CAS_HEADERS%%include/cas/ASGenericConfigHandler.hpp +%%CAS_HEADERS%%include/cas/ASGetOpt.hpp +%%CAS_HEADERS%%include/cas/ASGlobalConfig.hpp +%%CAS_HEADERS%%include/cas/ASHandler.hpp +%%CAS_HEADERS%%include/cas/ASHandlerConfig.hpp +%%CAS_HEADERS%%include/cas/ASHostConfig.hpp +%%CAS_HEADERS%%include/cas/ASLoadableObject.hpp +%%CAS_HEADERS%%include/cas/ASLoader.hpp +%%CAS_HEADERS%%include/cas/ASLocation.hpp +%%CAS_HEADERS%%include/cas/ASLocationURI.hpp +%%CAS_HEADERS%%include/cas/ASLogCodes.hpp +%%CAS_HEADERS%%include/cas/ASLogger.hpp +%%CAS_HEADERS%%include/cas/ASMD5.hpp +%%CAS_HEADERS%%include/cas/ASModule.hpp +%%CAS_HEADERS%%include/cas/ASNetworkRange.hpp +%%CAS_HEADERS%%include/cas/ASObject.hpp +%%CAS_HEADERS%%include/cas/ASObjectLoader.hpp +%%CAS_HEADERS%%include/cas/ASPCRE.hpp +%%CAS_HEADERS%%include/cas/ASPreRequestHandler.hpp +%%CAS_HEADERS%%include/cas/ASPreRequestHandlerConfig.hpp +%%CAS_HEADERS%%include/cas/ASProfiler.hpp +%%CAS_HEADERS%%include/cas/ASPool.hpp +%%CAS_HEADERS%%include/cas/ASRequest.hpp +%%CAS_HEADERS%%include/cas/ASResourceStorage.hpp +%%CAS_HEADERS%%include/cas/ASResponse.hpp +%%CAS_HEADERS%%include/cas/ASResponseCodes.hpp +%%CAS_HEADERS%%include/cas/ASResponseWriter.hpp +%%CAS_HEADERS%%include/cas/ASServer.hpp +%%CAS_HEADERS%%include/cas/ASServerContext.hpp +%%CAS_HEADERS%%include/cas/ASServerManager.hpp +%%CAS_HEADERS%%include/cas/ASSysHeaders.h +%%CAS_HEADERS%%include/cas/ASTemplate.hpp +%%CAS_HEADERS%%include/cas/ASTypes.hpp +%%CAS_HEADERS%%include/cas/ASUtil.hpp +%%CAS_HEADERS%%include/cas/ASView.hpp +%%CAS_HEADERS%%include/cas/ASViewConfig.hpp +%%CAS_HEADERS%%include/cas/ASXMLHandler.hpp +%%CAS_HEADERS%%include/cas/ASXMLParser.hpp +%%CAS_HEADERS%%include/cas/ASXMLRPCHandler.hpp +%%CAS_HEADERS%%include/cas/STLException.hpp +%%CAS_HEADERS%%include/cas/STLFunctional.hpp +%%CAS_HEADERS%%include/cas/STLMap.hpp +%%CAS_HEADERS%%include/cas/STLPair.hpp +%%CAS_HEADERS%%include/cas/STLString.hpp +%%CAS_HEADERS%%include/cas/STLVector.hpp +%%CURL_XMLRPC_CLIENT%%include/cas/ASXMLRPCClient.hpp +%%CAS_LIBRARY%%lib/libcas.so.%%PORTVERSION%% +%%CAS_LIBRARY%%lib/libcas.so.3 +%%CAS_LIBRARY%%lib/libcas.so +%%CAS_LIBRARY%%lib/libcas-st.a +%%APACHE13_MODULE%%libexec/apache/mod_cas.so +%%APACHE2X_MODULE%%libexec/apache22/mod_cas2.so +%%CAS_MODULES%%libexec/cas/mod_ctpp_view.so +%%CAS_MODULES%%libexec/cas/mod_json_view.so +%%CAS_MODULES%%libexec/cas/mod_jsonrpc_view.so +%%CAS_MODULES%%libexec/cas/mod_plain_view.so +%%CAS_MODULES%%libexec/cas/mod_xmlrpc_view.so +%%CAS_MODULES%%libexec/cas/mod_xml_view.so +%%CAS_MODULES%%libexec/cas/mod_tabseparated_view.so +%%CAS_MODULES%%libexec/cas/mod_http_redirect_view.so +%%CAS_CONFIGS%%etc/cas/global-config.xml.sample +%%CAS_CONFIGS%%etc/cas/vhost-config.xml.sample +%%CAS_DATA%%share/cas/tmpl/redirect/html-redirect.tmpl +%%CAS_DATA%%share/cas/tmpl/redirect/wml-redirect.tmpl +%%CAS_DATA%%share/cas/examples/request.json +%%CAS_DATA%%share/cas/xt/HandlerTemplate.tmpl +%%CAS_DATA%%share/cas/xt/PreRequestHandlerTemplate.tmpl +%%CAS_DATA%%share/cas/xt/ViewTemplate.tmpl +%%CAS_DATA%%share/cas/xt/CMakeLists.tmpl +%%CAS_DATA%%share/cas/xt/ConfigureLibrary.cmake +%%CAS_DATA%%share/cas/xt/ConfigurePackage.cmake +%%CAS_DATA%%share/cas/xt/RenameModule.cmake +%%EXAMPLE_MODULES%%lib/libexampleclass.so.3.5.2 +%%EXAMPLE_MODULES%%lib/libexampleclass.so.3 +%%EXAMPLE_MODULES%%lib/libexampleclass.so +%%EXAMPLE_MODULES%%libexec/cas/mod_example_handler.so +%%EXAMPLE_MODULES%%libexec/cas/mod_example_module.so +%%EXAMPLE_MODULES%%libexec/cas/mod_example_view.so +@exec mkdir -p %D/include/cas +@exec mkdir -p %D/libexec/cas +@exec mkdir -p %D/share/cas/tmpl/redirect +@exec mkdir -p %D/share/cas/tmpl +@exec mkdir -p %D/share/cas/examples +@exec mkdir -p %D/share/cas/xt/ +@exec mkdir -p %D/share/cas/ +@exec mkdir -p %D/etc/cas/ +@dirrmtry etc/cas +@dirrm include/cas +@dirrm libexec/cas +@dirrm share/cas/tmpl/redirect +@dirrm share/cas/tmpl +@dirrm share/cas/examples +@dirrm share/cas/xt/ +@dirrm share/cas/ |