diff --git a/net-p2p/Makefile b/net-p2p/Makefile index f9df23ecfd93..fbb6df2e48c4 100644 --- a/net-p2p/Makefile +++ b/net-p2p/Makefile @@ -1,112 +1,113 @@ COMMENT = Peer-to-peer network applications SUBDIR += amule SUBDIR += amule-devel SUBDIR += arbitrum-avm SUBDIR += autoscan SUBDIR += awgg SUBDIR += bazarr SUBDIR += bitcoin SUBDIR += bitcoin-daemon SUBDIR += bitcoin-utils SUBDIR += bitflu SUBDIR += bitmark SUBDIR += bitmark-cli SUBDIR += bitmark-daemon SUBDIR += bitmark-recorder SUBDIR += btcheck SUBDIR += btpd SUBDIR += c-lightning SUBDIR += cardano-db-sync SUBDIR += cardano-node SUBDIR += cncli SUBDIR += cpuminer SUBDIR += createtorrent SUBDIR += ctcs SUBDIR += ctorrent SUBDIR += dclib SUBDIR += deluge SUBDIR += deluge-cli SUBDIR += ed2k SUBDIR += edonkey-tool-hash SUBDIR += eiskaltdcpp-cli SUBDIR += eiskaltdcpp-daemon SUBDIR += eiskaltdcpp-data SUBDIR += eiskaltdcpp-gtk SUBDIR += eiskaltdcpp-lib SUBDIR += ethash SUBDIR += frost SUBDIR += go-ethereum SUBDIR += go-prysm SUBDIR += gtk-gnutella SUBDIR += gtorrentviewer SUBDIR += jackett SUBDIR += jigdo SUBDIR += ktorrent SUBDIR += libbt SUBDIR += liberator SUBDIR += libktorrent SUBDIR += libswift SUBDIR += libtorrent SUBDIR += libtorrent-rasterbar SUBDIR += libtorrent-rasterbar2 SUBDIR += lidarr SUBDIR += linuxdcpp SUBDIR += litecoin SUBDIR += litecoin-daemon SUBDIR += litecoin-utils SUBDIR += microdc2 SUBDIR += minder SUBDIR += mktorrent SUBDIR += mldonkey SUBDIR += mldonkey-core SUBDIR += mldonkey-gui SUBDIR += monero-cli SUBDIR += namecoin SUBDIR += namecoin-daemon SUBDIR += namecoin-utils SUBDIR += ncdc SUBDIR += ogmios SUBDIR += opendchub SUBDIR += openethereum SUBDIR += oura SUBDIR += p5-Net-BitTorrent SUBDIR += p5-Net-BitTorrent-File SUBDIR += p5-Net-BitTorrent-PeerPacket SUBDIR += p5-Net-DirectConnect SUBDIR += p5-WWW-BitTorrent SUBDIR += phex SUBDIR += prowlarr SUBDIR += py-libtorrent-rasterbar SUBDIR += py-nicotine-plus SUBDIR += py-transmission-rpc SUBDIR += py-tremc SUBDIR += py-vertex SUBDIR += qbittorrent SUBDIR += qtum SUBDIR += radarr SUBDIR += readarr SUBDIR += retroshare SUBDIR += rslsync SUBDIR += rtorrent SUBDIR += shx SUBDIR += sonarr SUBDIR += torrent-file-editor SUBDIR += torrentcheck SUBDIR += torrentsniff SUBDIR += transmission SUBDIR += transmission-cli SUBDIR += transmission-daemon SUBDIR += transmission-gtk SUBDIR += transmission-qt SUBDIR += transmission-remote-gui SUBDIR += transmission-utils SUBDIR += udpt SUBDIR += uhub SUBDIR += vuze + SUBDIR += xbt SUBDIR += xmrig SUBDIR += zetacoin SUBDIR += zetacoin-daemon SUBDIR += zetacoin-utils .include diff --git a/net-p2p/xbt/Makefile b/net-p2p/xbt/Makefile new file mode 100644 index 000000000000..316fe67cfc10 --- /dev/null +++ b/net-p2p/xbt/Makefile @@ -0,0 +1,33 @@ +PORTNAME= xbt +PORTVERSION= g20221002 +CATEGORIES= net-p2p + +MAINTAINER= danfe@FreeBSD.org +COMMENT= High-performance low-overhead BitTorrent tracker +WWW= https://xbtt.sourceforge.net/ + +LICENSE= GPLv3 + +BUILD_DEPENDS= ${LOCALBASE}/include/boost/asio.hpp:devel/boost-libs + +USES= compiler:c++17-lang mysql pkgconfig +USE_GITHUB= yes +GH_ACCOUNT= OlafvdSpek +GH_TAGNAME= 9c7dbc4 + +MAKEFILE= ${FILESDIR}/makefile + +PLIST_FILES= bin/${PORTNAME}_tracker \ + @sample\ etc/xbt_tracker.conf.sample \ + ${DATADIR_REL}/xbt_tracker.sql + +do-install: + ${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/${PORTNAME}_tracker \ + ${STAGEDIR}${PREFIX}/bin + @${MKDIR} ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${INSTALL_WRKSRC}/Tracker/xbt_tracker.sql \ + ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${INSTALL_WRKSRC}/Tracker/xbt_tracker.conf.default \ + ${STAGEDIR}${PREFIX}/etc/xbt_tracker.conf.sample + +.include diff --git a/net-p2p/xbt/distinfo b/net-p2p/xbt/distinfo new file mode 100644 index 000000000000..079effc2084c --- /dev/null +++ b/net-p2p/xbt/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1664705861 +SHA256 (OlafvdSpek-xbt-g20221002-9c7dbc4_GH0.tar.gz) = dfc99aa59f661f5df2479cc10f27422b51b696353bfd1cbb2cfe5a155e25989c +SIZE (OlafvdSpek-xbt-g20221002-9c7dbc4_GH0.tar.gz) = 276909 diff --git a/net-p2p/xbt/files/makefile b/net-p2p/xbt/files/makefile new file mode 100644 index 000000000000..f6f6f0f55679 --- /dev/null +++ b/net-p2p/xbt/files/makefile @@ -0,0 +1,30 @@ +CXXFLAGS+= -std=c++17 -Wall -Wextra +CPPFLAGS+= -Imisc -I$(LOCALBASE)/include +LIBS!= pkg-config --libs mysqlclient +LIBS+= -lz + +misc_OBJS= misc/bt_misc.o \ + misc/database.o \ + misc/sha1.o \ + misc/socket.o \ + misc/sql_query.o \ + misc/xcc_z.o + +tracker_OBJS= Tracker/config.o \ + Tracker/connection.o \ + Tracker/epoll.o \ + Tracker/tracker.o \ + Tracker/tracker_input.o \ + Tracker/transaction.o + +CCACHE!= command -v ccache + +.cpp.o: + $(CCACHE) $(CXX) $(CXXFLAGS) $(CPPFLAGS) -o $@ -c $< + +xbt_tracker: $(misc_OBJS) $(tracker_OBJS) + $(CXX) $(LDFLAGS) -o $@ $>$^ $(LIBS) + +all: xbt_tracker + +.PHONY: all diff --git a/net-p2p/xbt/files/patch-misc_socket.cpp b/net-p2p/xbt/files/patch-misc_socket.cpp new file mode 100644 index 000000000000..43bbdcbcf280 --- /dev/null +++ b/net-p2p/xbt/files/patch-misc_socket.cpp @@ -0,0 +1,9 @@ +--- misc/socket.cpp.orig 2022-10-02 10:17:41 UTC ++++ misc/socket.cpp +@@ -1,5 +1,6 @@ + #include "socket.h" + ++#include + #include + #include + diff --git a/net-p2p/xbt/pkg-descr b/net-p2p/xbt/pkg-descr new file mode 100644 index 000000000000..46fb6d311bc8 --- /dev/null +++ b/net-p2p/xbt/pkg-descr @@ -0,0 +1,6 @@ +XBT (Extended BitTorrent) tracker is a BitTorrent tracker written in +modern C++. It's designed to offer high performance while consuming +little resources (CPU and RAM). It's a pure tracker, so it doesn't +offer a frontend; please use any (e.g. PHP-based) frontend you want. +The tracker stores statistics in a MySQL database/table; version 5 or +higher is required.