diff --git a/.gitignore b/.gitignore index 378eac2..bb9d57a 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,116 @@ -build +# Backups +*~ + +# generated bins + +*.a +*.o +*.so* +/build/ + +# CMade +CMakeCache.txt +CMakeFiles/ +CPackConfig.cmake +CPackSourceConfig.cmake +CTestTestfile.cmake +cmake_install.cmake +# Note there are shipping Makefiles. Hence the specificity +/Makefile +/booster/Makefile +/booster/booster/build_config.h +/cppcms/config.h + +# Exes +/allocator_test +/base64_test +/booster/test_aio_endpoint +/booster/test_aio_event_loop +/booster/test_aio_prefork +/booster/test_aio_reactor +/booster/test_aio_socket +/booster/test_aio_timer +/booster/test_backtrace_backtrace +/booster/test_function_callback +/booster/test_function_function +/booster/test_iostreams_streambuf +/booster/test_locale_codecvt +/booster/test_locale_codepage +/booster/test_locale_codepage_converter +/booster/test_locale_config +/booster/test_locale_date_time +/booster/test_locale_generator +/booster/test_locale_ios_prop +/booster/test_locale_message +/booster/test_locale_posix_collate +/booster/test_locale_posix_convert +/booster/test_locale_posix_formatting +/booster/test_locale_std_collate +/booster/test_locale_std_convert +/booster/test_locale_std_formatting +/booster/test_locale_utf +/booster/test_log_log +/booster/test_nowide_nowide +/booster/test_ptime_posix_time +/booster/test_regex_regex +/booster/test_smart_ptr_atomic_counter +/booster/test_smart_ptr_shared_ptr +/booster/test_smart_ptr_sp_counter +/booster/test_thread_fork +/booster/test_thread_thread +/cache_backend_test +/cache_frontend_test +/content_type_parser_test +/cookie_test +/copy_filter_test +/cppcms_config_find_param +/cppcms_make_key +/cppcms_scale +/cppcms_service_test +/disco_test +/encryptor_test +/external_session_test +/file_buffer_test +/file_server_test +/filter_test +/form_test +/forwarder_test +/gzip_test +/hash_map_test +/hello_world +/http_timeouts_test +/json_test +/jsonrpc_test +/loadable_storage_test +/mount_point_test +/multipart_parser_test +/plugin_test +/pool_test +/proto_test +/response_test +/rewrite_test +/secure_post_test +/serialization_test +/session_interface_test +/tc_test +/todec_test +/url_mapper_test +/xss_test +/status_test +/storage_test + +# Skins/views +/skin1.cpp +/skin2.cpp +/skin3.cpp +/tc_plugin.cpp +/tc_plugin2.cpp +/tc_sep_skin.cpp +/tc_sep_skin.h +/tc_sep_skin_a.cpp +/tc_sep_skin_a.h +/tc_sep_skin_b.cpp +/tc_sep_skin_b.h +/tc_skin.cpp +/tc_skin_a.cpp +/tc_skin_b.cpp diff --git a/cppcms.dpak b/cppcms.dpak new file mode 100644 index 0000000..55786eb --- /dev/null +++ b/cppcms.dpak @@ -0,0 +1,115 @@ +# TODO: dev vs runtime packages. +# TODO: verify docs +# TODO: build-depends +Source: cppcms +Priority: extra +Section: unknown +Maintainer: Jon Foster +#Upstream-Source: https://sourceforge.net/settings/mirror_choices?projectname=cppcms&filename=cppcms/1.2.1/cppcms-1.2.1.tar.bz2 +Homepage: http://cppcms.com/ +Description: High Performance C++ Web Framework + CppCMS is a Free High Performance Web Development Framework (not a CMS) aimed + at Rapid Web Application Development. It differs from most other web + development frameworks like: Python Django, Java Servlets in the following + ways: + . + 1. It is designed and tuned to handle extremely high loads. + 2. It uses modern C++ as the primary development language in order to achieve + the first goal. + 3. It is designed for developing both Web Sites and Web Services. +Copyright: . + Copyright (c) 2018 Artyom Beilis + . + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + . + Embedded Third Party Software: + ------------------------------ + . + - src/base64.cpp - MIT license (see file for copyright notices) + - src/md5.cpp, private/md5.h - see copyright notices in files (permissive license) + - private/sha1.h - Boost Software License 1.0, see copyright notices in the file. + - booster/ - a sub-project released under Boost Software License 1.0 + - contrib/client_side/jsonrpc/json2.js - Public Domain +Origin: JFP +Packaged-For: JF Possibilities, Inc. +changelog: + (1.2.1-2j) unstable; urgency=low + . + * Split dev files into their separate pack + . + -- Jon Foster Wed, 15 Apr 2020 17:10:05 -0700 + . + (1.2.1-1j) unstable; urgency=low + . + * Initial Debianization + . + -- Jon Foster Fri, 28 Feb 2020 14:56:29 -0800 + . +Build-Depends: cmake +Build-In: . +Build: sh + mkdir build + cd build + cmake -DCMAKE_INSTALL_PREFIX=/usr .. + make +Clean: sh + rm -r build || true + +Package: cppcms +Architecture: any +# TODO: Depends: [] +Description: . +Install: sh + cd build + make DESTDIR="$DPAK_ROOT" install + rm "$DPAK_ROOT"/usr/lib/*.so + rm "$DPAK_ROOT"/usr/lib/*.a + rm -r "$DPAK_ROOT"/usr/include + #dpak strip +Postinst: sh + ldconfig + +Package: cppcms-dev +Architecture: any +Depends: cppcms +Description: . + This package contains the development files. +Install: sh + dpak install -dir /usr/include/cppcms cppcms/capi cppcms/*.h build/cppcms/*.h + dpak install -dir /usr/include booster/booster + dpak install -dir /usr/include/booster build/booster/booster/*.h + cd build + dpak install -lib booster/libbooster.a libcppcms.a + # These happen after the install -lib so the folder is created + ln -s libcppcms.so.1 "$DPAK_ROOT"/usr/lib/libcppcms.so + ln -s libbooster.so.0 "$DPAK_ROOT"/usr/lib/libbooster.so + +Package: cppcms-doc +Architecture: all +Description: . + This package contains the HTML documentation. +Install: sh + dpak install -doc doc/doxygen/html + dpak install -doc doc/architecture.txt + dpak install -doc examples +Finalize: sh + # I really need a switch somewhere to disable auto-gz + find "$DPAK_ROOT"/usr/share/doc/*/html -type f -name "*.gz" | while read s; do + gunzip "$s" + done