From 03792aec5fb8602d33e338a6fbb5a75ecb4e11e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krizs=C3=A1n=20P=C3=A9ter?= Date: Sun, 27 Feb 2022 17:03:18 +0100 Subject: [PATCH] Added libtorrent-rasterbar and qBittorrent packages. --- add_packages.sh | 9 ++ ...pdate-allocator-sizes-for-boost-1.78.patch | 49 ++++++ networking/netlibs/libtorrent-rasterbar.xml | 139 ++++++++++++++++++ xsoft/other/qbittorrent.xml | 125 ++++++++++++++++ 4 files changed, 322 insertions(+) create mode 100755 add_packages.sh create mode 100644 libtorrent-rasterbar-2.0.5-update-allocator-sizes-for-boost-1.78.patch create mode 100644 networking/netlibs/libtorrent-rasterbar.xml create mode 100644 xsoft/other/qbittorrent.xml diff --git a/add_packages.sh b/add_packages.sh new file mode 100755 index 0000000..e515213 --- /dev/null +++ b/add_packages.sh @@ -0,0 +1,9 @@ +#! /bin/bash + +cp -v libtorrent-rasterbar-2.0.5-update-allocator-sizes-for-boost-1.78.patch /sources +cp -v networking/netlibs/libtorrent-rasterbar.xml ../blfs_root/blfs-xml/networking/netlibs +cp -v xsoft/other/qbittorrent.xml ../blfs_root/blfs-xml/xsoft/other +sed -i '/libtirpc.xml.*/a ' ../blfs_root/blfs-xml/networking/netlibs/netlibs.xml +sed -i '/pidgin.xml.*/a ' ../blfs_root/blfs-xml/xsoft/other/other.xml +sed -i '/libtirpc-version.*/a ' ../blfs_root/blfs-xml/packages.ent +sed -i '/pidgin-version.*/a ' ../blfs_root/blfs-xml/packages.ent diff --git a/libtorrent-rasterbar-2.0.5-update-allocator-sizes-for-boost-1.78.patch b/libtorrent-rasterbar-2.0.5-update-allocator-sizes-for-boost-1.78.patch new file mode 100644 index 0000000..03704ce --- /dev/null +++ b/libtorrent-rasterbar-2.0.5-update-allocator-sizes-for-boost-1.78.patch @@ -0,0 +1,49 @@ +From 71d608fceca7e61c9d124f9ea83f71b06eda3b17 Mon Sep 17 00:00:00 2001 +From: arvidn +Date: Sun, 12 Dec 2021 21:52:15 +0100 +Subject: [PATCH] update allocator sizes for boost-1.78 + +--- + include/libtorrent/aux_/allocating_handler.hpp | 16 ++++++++-------- + 1 file changed, 8 insertions(+), 8 deletions(-) + +diff --git a/include/libtorrent/aux_/allocating_handler.hpp b/include/libtorrent/aux_/allocating_handler.hpp +index 726032e08..7096dfd2e 100644 +--- a/include/libtorrent/aux_/allocating_handler.hpp ++++ b/include/libtorrent/aux_/allocating_handler.hpp +@@ -77,11 +77,11 @@ namespace libtorrent { namespace aux { + constexpr std::size_t openssl_write_cost = 0; + #endif + +- constexpr std::size_t read_handler_max_size = tracking + debug_read_iter + openssl_read_cost + 102 + 8 * sizeof(void*); +- constexpr std::size_t write_handler_max_size = tracking + debug_write_iter + openssl_write_cost + 102 + 8 * sizeof(void*); +- constexpr std::size_t udp_handler_max_size = tracking + debug_tick + 144 + 8 * sizeof(void*); +- constexpr std::size_t utp_handler_max_size = tracking + debug_tick + 168 + 8 * sizeof(void*); +- constexpr std::size_t tick_handler_max_size = tracking + debug_tick + 160; ++ constexpr std::size_t read_handler_max_size = tracking + debug_read_iter + openssl_read_cost + 102 + 9 * sizeof(void*); ++ constexpr std::size_t write_handler_max_size = tracking + debug_write_iter + openssl_write_cost + 102 + 9 * sizeof(void*); ++ constexpr std::size_t udp_handler_max_size = tracking + debug_tick + 144 + 9 * sizeof(void*); ++ constexpr std::size_t utp_handler_max_size = tracking + debug_tick + 168 + 9 * sizeof(void*); ++ constexpr std::size_t tick_handler_max_size = tracking + debug_tick + 168; + constexpr std::size_t abort_handler_max_size = tracking + debug_tick + 104; + constexpr std::size_t submit_handler_max_size = tracking + debug_tick + 104; + constexpr std::size_t deferred_handler_max_size = tracking + debug_tick + 112; +@@ -124,12 +124,12 @@ namespace libtorrent { namespace aux { + #endif + constexpr std::size_t write_handler_max_size = tracking + debug_write_iter + openssl_write_cost + fuzzer_write_cost + 168; + constexpr std::size_t read_handler_max_size = tracking + debug_read_iter + openssl_read_cost + fuzzer_read_cost + 168; +- constexpr std::size_t udp_handler_max_size = tracking + 160; +- constexpr std::size_t utp_handler_max_size = tracking + 184; ++ constexpr std::size_t udp_handler_max_size = tracking + 168; ++ constexpr std::size_t utp_handler_max_size = tracking + 192; + constexpr std::size_t abort_handler_max_size = tracking + 72; + constexpr std::size_t submit_handler_max_size = tracking + 72; + constexpr std::size_t deferred_handler_max_size = tracking + 80; +- constexpr std::size_t tick_handler_max_size = tracking + 128; ++ constexpr std::size_t tick_handler_max_size = tracking + 136; + #endif + + enum HandlerName +-- +2.35.1 + diff --git a/networking/netlibs/libtorrent-rasterbar.xml b/networking/netlibs/libtorrent-rasterbar.xml new file mode 100644 index 0000000..c8ec770 --- /dev/null +++ b/networking/netlibs/libtorrent-rasterbar.xml @@ -0,0 +1,139 @@ + + + %general-entities; + + + + + + + +]> + + + + + + $Date$ + + + libtorrent-&libtorrent-rasterbar-version; + + + libtorrent + + + + Introduction to libtorrent + + + libtorrent is a feature complete C++ bittorrent implementation focusing on efficiency and scalability. It runs on embedded devices as well as desktops. It boasts a well documented library interface that is easy to use. It comes with a simple bittorrent client demonstrating the use of the library. + + + &lfs110a_checked; + + Package Information + + + + Download (HTTP): + + + + + Download (FTP): + + + + + Download MD5 sum: &libtorrent-rasterbar-md5sum; + + + + + Download size: &libtorrent-rasterbar-size; + + + + + Estimated disk space required: &libtorrent-rasterbar-buildsize; + + + + + Estimated build time: &libtorrent-rasterbar-time; + + + + + Additional Downloads + + + + Required patch: + + + + + + libtorrent Dependencies + + Required + + , and + + + + + Installation of libtorrent + + patch -Np1 -i ../libtorrent-rasterbar-2.0.5-update-allocator-sizes-for-boost-1.78.patch + + + + Install libtorrent by running the + following commands: + + +mkdir build && +cd build && +cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=17 -G Ninja .. && +ninja + + + This package does not come with a test suite. + + + + Now, as the root user: + + +cmake --install . + + + + Contents + + + Installed Programs + Installed Libraries + Installed Directory + + + + libtorrent-rasterbar + + + None + + + /usr/share/libtorrent-rasterbar + + + + + + + diff --git a/xsoft/other/qbittorrent.xml b/xsoft/other/qbittorrent.xml new file mode 100644 index 0000000..a4a0118 --- /dev/null +++ b/xsoft/other/qbittorrent.xml @@ -0,0 +1,125 @@ + + + %general-entities; + + + + + + + +]> + + + + + + $Date$ + + + qBittorrent-&qbittorrent-version; + + + qBittorrent + + + + Introduction to qBittorrent + + + qBittorrent project aims to provide an open-source software alternative to µTorrent. qBittorrent is based on the Qt toolkit and libtorrent-rasterbar library. + + + &lfs110a_checked; + + Package Information + + + + Download (HTTP): + + + + + Download (FTP): + + + + + Download MD5 sum: &qbittorrent-md5sum; + + + + + Download size: &qbittorrent-size; + + + + + Estimated disk space required: &qbittorrent-buildsize; + + + + + Estimated build time: &qbittorrent-time; + + + + + qBittorrent Dependencies + + Required + + , and + + + + + + Installation of qBittorrent + + + Install qBittorrent by running the + following commands: + + +./configure --prefix=/usr && +make + + + This package does not come with a test suite. + + + + Now, as the root user: + + +make install + + + + Contents + + + Installed Programs + Installed Libraries + Installed Directory + + + + qbittorrent + + + None + + + /usr/share/qbittorrent + + + + + + +