Index: head/net-p2p/Makefile =================================================================== --- head/net-p2p/Makefile (revision 528225) +++ head/net-p2p/Makefile (revision 528226) @@ -1,103 +1,104 @@ # $FreeBSD$ # COMMENT = Peer-to-peer network applications SUBDIR += amule SUBDIR += amule-devel SUBDIR += awgg SUBDIR += bitcoin SUBDIR += bitcoin-daemon SUBDIR += bitcoin-utils SUBDIR += bitflu SUBDIR += bitmark SUBDIR += bitmark-cli SUBDIR += bitmark-daemon SUBDIR += bitmark-recorder SUBDIR += btpd SUBDIR += c-lightning SUBDIR += couchpotato 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 += frost SUBDIR += go-ethereum SUBDIR += gtk-gnutella SUBDIR += gtorrentviewer SUBDIR += jackett SUBDIR += jigdo SUBDIR += ktorrent SUBDIR += libbt SUBDIR += liberator SUBDIR += libktorrent SUBDIR += libpdtp SUBDIR += libswift SUBDIR += libtorrent SUBDIR += libtorrent-rasterbar 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 += opendchub SUBDIR += p5-Net-BitTorrent SUBDIR += p5-Net-BitTorrent-File SUBDIR += p5-Net-BitTorrent-PeerPacket SUBDIR += p5-Net-DirectConnect SUBDIR += p5-WWW-BitTorrent SUBDIR += parity-ethereum SUBDIR += phex SUBDIR += py-libtorrent-rasterbar SUBDIR += py-py2play SUBDIR += py-transmissionrpc SUBDIR += py-tremc SUBDIR += py-vertex SUBDIR += qbittorrent SUBDIR += qtum SUBDIR += radarr SUBDIR += retroshare SUBDIR += rslsync SUBDIR += rtorrent SUBDIR += shx SUBDIR += sonarr SUBDIR += sonarr-devel SUBDIR += squall 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 += udpt SUBDIR += uhub SUBDIR += vuze SUBDIR += xmrig SUBDIR += zetacoin SUBDIR += zetacoin-daemon SUBDIR += zetacoin-utils .include Index: head/net-p2p/udpt/Makefile =================================================================== --- head/net-p2p/udpt/Makefile (nonexistent) +++ head/net-p2p/udpt/Makefile (revision 528226) @@ -0,0 +1,40 @@ +# Created by: Alexey Dokuchaev +# $FreeBSD$ + +PORTNAME= udpt +DISTVERSION= g20200202 +CATEGORIES= net-p2p + +MAINTAINER= danfe@FreeBSD.org +COMMENT= Lightweight UDP torrent tracker + +LICENSE= GPLv3+ + +USES= gmake localbase:ldflags sqlite:3 +USE_GITHUB= yes +GH_ACCOUNT= troydm +GH_TAGNAME= 6a7bf22 + +CXXFLAGS+= -Dlinux # easier than patch a dozen places + +PLIST_FILES= bin/${PORTNAME} +PORTDOCS= README.md + +OPTIONS_DEFINE= DOCS + +post-patch: + @${REINPLACE_CMD} -e '/VERSION/ { s,beta,&-g${GH_TAGNAME},; \ + s,Linux,${OPSYS},; }' ${WRKSRC}/src/multiplatform.h + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} + +.include + +# Alternative to DOS2UNIX_FILES that preserves original timestamps, +# to be used together with `-l' switch added to PATCH_ARGS below. +fixpatches: + @${FIND} ${FILESDIR} -name patch-* | ${XARGS} ${SED} -i '' \ + -E 's,[[:cntrl:]]*$$,,' +PATCH_ARGS+= -l Property changes on: head/net-p2p/udpt/Makefile ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-p2p/udpt/distinfo =================================================================== --- head/net-p2p/udpt/distinfo (nonexistent) +++ head/net-p2p/udpt/distinfo (revision 528226) @@ -0,0 +1,3 @@ +TIMESTAMP = 1580668445 +SHA256 (troydm-udpt-g20200202-6a7bf22_GH0.tar.gz) = d1ae1c857b44461c595b8a046134aa586b881fcb102fa129db57158666c955a7 +SIZE (troydm-udpt-g20200202-6a7bf22_GH0.tar.gz) = 38677 Property changes on: head/net-p2p/udpt/distinfo ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-p2p/udpt/files/patch-Makefile =================================================================== --- head/net-p2p/udpt/files/patch-Makefile (nonexistent) +++ head/net-p2p/udpt/files/patch-Makefile (revision 528226) @@ -0,0 +1,18 @@ +--- Makefile.orig 2020-02-02 18:34:05 UTC ++++ Makefile +@@ -33,7 +33,7 @@ all: $(target) + + $(target): $(objects) + @echo Linking... +- $(CXX) $(LDFLAGS) -O3 -o $(target) $(objects) -lsqlite3 -lpthread ++ $(CXX) $(LDFLAGS) -o $(target) $(objects) -lsqlite3 -lpthread + @echo Done. + clean: + @echo Cleaning Up... +@@ -41,4 +41,5 @@ clean: + @echo Done. + + install: $(target) +- @echo Installing $(target) to '$(exec_prefix)/bin'... ++ @echo Installing $(target) to '$(PREFIX)/bin'... ++ $(BSD_INSTALL_PROGRAM) $(target) $(DESTDIR)$(PREFIX)/bin Property changes on: head/net-p2p/udpt/files/patch-Makefile ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-p2p/udpt/files/patch-src_http_httpserver.cpp =================================================================== --- head/net-p2p/udpt/files/patch-src_http_httpserver.cpp (nonexistent) +++ head/net-p2p/udpt/files/patch-src_http_httpserver.cpp (revision 528226) @@ -0,0 +1,11 @@ +--- src/http/httpserver.cpp.orig 2020-02-02 18:34:05 UTC ++++ src/http/httpserver.cpp +@@ -52,7 +52,7 @@ namespace UDPT + sa.sin_family = AF_INET; + sa.sin_port = htons (port); + +- r = bind (this->srv, (SOCKADDR*)&sa, sizeof(sa)); ++ r = ::bind (this->srv, (SOCKADDR*)&sa, sizeof(sa)); + if (r == SOCKET_ERROR) + { + throw ServerException (2, "Failed to bind socket"); Property changes on: head/net-p2p/udpt/files/patch-src_http_httpserver.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-p2p/udpt/files/patch-src_multiplatform.h =================================================================== --- head/net-p2p/udpt/files/patch-src_multiplatform.h (nonexistent) +++ head/net-p2p/udpt/files/patch-src_multiplatform.h (revision 528226) @@ -0,0 +1,10 @@ +--- src/multiplatform.h.orig 2020-02-02 18:34:05 UTC ++++ src/multiplatform.h +@@ -33,6 +33,7 @@ + #elif defined (linux) + #include + #include ++#include + #include + #include + #include Property changes on: head/net-p2p/udpt/files/patch-src_multiplatform.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-p2p/udpt/files/patch-src_udpTracker.cpp =================================================================== --- head/net-p2p/udpt/files/patch-src_udpTracker.cpp (nonexistent) +++ head/net-p2p/udpt/files/patch-src_udpTracker.cpp (revision 528226) @@ -0,0 +1,20 @@ +--- src/udpTracker.cpp.orig 2020-02-02 18:34:05 UTC ++++ src/udpTracker.cpp +@@ -169,7 +169,7 @@ namespace UDPT + yup = 1; + setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, (const char*)&yup, 1); + +- r = bind (sock, (SOCKADDR*)&recvAddr, sizeof(SOCKADDR_IN)); ++ r = ::bind (sock, (SOCKADDR*)&recvAddr, sizeof(SOCKADDR_IN)); + + if (r == SOCKET_ERROR) + { +@@ -521,7 +521,7 @@ static int _isIANA_IP (uint32_t ip) + } + } + +- cout << ":: " << (void*)m_hton32(remote->sin_addr.s_addr) << ": " << m_hton16(remote->sin_port) << " ACTION=" << action << endl; ++ cout << ":: " << _ip_to_str(m_hton32(remote->sin_addr.s_addr)) << ":" << m_hton16(remote->sin_port) << " ACTION=" << action << endl; + + if (action == 0 && r >= 16) + return UDPTracker::handleConnection (usi, remote, data); Property changes on: head/net-p2p/udpt/files/patch-src_udpTracker.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-p2p/udpt/pkg-descr =================================================================== --- head/net-p2p/udpt/pkg-descr (nonexistent) +++ head/net-p2p/udpt/pkg-descr (revision 528226) @@ -0,0 +1,7 @@ +UDPT is a lightweight UDP torrent tracker for Unix-like systems. + +The main difference of this version of UDPT to an original is the +ability to run this torrent tracker inside a local network and act +as both local and remote network torrent tracker/announcer. + +WWW: https://github.com/troydm/udpt Property changes on: head/net-p2p/udpt/pkg-descr ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property