diff --git a/net-p2p/Makefile b/net-p2p/Makefile index 1ea962ca10b5..635a3768aafb 100644 --- a/net-p2p/Makefile +++ b/net-p2p/Makefile @@ -1,111 +1,112 @@ COMMENT = Peer-to-peer network applications SUBDIR += aeron SUBDIR += amule SUBDIR += autoscan SUBDIR += awgg SUBDIR += bazarr SUBDIR += bitcoin SUBDIR += bitcoin-daemon SUBDIR += bitcoin-utils SUBDIR += bitmark SUBDIR += bitmark-cli SUBDIR += bitmark-daemon SUBDIR += bitmark-recorder SUBDIR += btcheck SUBDIR += c-lightning SUBDIR += cardano-db-sync SUBDIR += cardano-node SUBDIR += clboss SUBDIR += cncli SUBDIR += cpuminer SUBDIR += createtorrent SUBDIR += ctcs SUBDIR += ctorrent SUBDIR += dclib SUBDIR += deluge SUBDIR += deluge-cli SUBDIR += ed2k SUBDIR += ed2k-hash SUBDIR += eiskaltdcpp-cli SUBDIR += eiskaltdcpp-daemon SUBDIR += eiskaltdcpp-data SUBDIR += eiskaltdcpp-gtk SUBDIR += eiskaltdcpp-lib SUBDIR += ethash SUBDIR += go-ethereum SUBDIR += gtk-gnutella SUBDIR += intermodal SUBDIR += jackett SUBDIR += jigdo SUBDIR += ktorrent SUBDIR += libktorrent SUBDIR += libswift SUBDIR += libtorrent SUBDIR += libtorrent-rasterbar SUBDIR += libtorrent-rasterbar2 SUBDIR += libutp SUBDIR += lidarr SUBDIR += linuxdcpp SUBDIR += litecoin SUBDIR += litecoin-daemon SUBDIR += litecoin-utils SUBDIR += lxmf SUBDIR += microdc2 SUBDIR += minder + SUBDIR += mkbrr SUBDIR += mktorrent SUBDIR += mldonkey SUBDIR += mldonkey-core SUBDIR += mldonkey-gui SUBDIR += monero-cli SUBDIR += namecoin SUBDIR += namecoin-daemon SUBDIR += namecoin-utils SUBDIR += ncdc SUBDIR += nomadnet SUBDIR += ogmios SUBDIR += opendchub 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 += pulsar-client-cpp SUBDIR += py-ed2k-tools SUBDIR += py-libtorrent-rasterbar SUBDIR += py-nicotine-plus SUBDIR += py-pulsar-client SUBDIR += py-stig SUBDIR += py-transmission-rpc SUBDIR += py-tremc SUBDIR += pyln-bolt7 SUBDIR += pyln-client SUBDIR += pyln-proto SUBDIR += qbittorrent SUBDIR += radarr SUBDIR += readarr SUBDIR += reticulum SUBDIR += retroshare SUBDIR += rslsync SUBDIR += rtorrent SUBDIR += shx SUBDIR += sonarr SUBDIR += torrent-file-editor SUBDIR += torrentcheck SUBDIR += torrentsniff SUBDIR += transmission SUBDIR += transmission-components SUBDIR += transmission-remote-gui SUBDIR += tremotesf SUBDIR += twitch-tui SUBDIR += udpt SUBDIR += uhub SUBDIR += vuze SUBDIR += warpinator SUBDIR += xbt SUBDIR += xmrig .include diff --git a/net-p2p/mkbrr/Makefile b/net-p2p/mkbrr/Makefile new file mode 100644 index 000000000000..aba02c252da7 --- /dev/null +++ b/net-p2p/mkbrr/Makefile @@ -0,0 +1,27 @@ +PORTNAME= mkbrr +DISTVERSIONPREFIX= v +DISTVERSION= 1.3.0 +CATEGORIES= net-p2p + +MAINTAINER= diizzy@FreeBSD.org +COMMENT= Commmand-line utility to create, modify and inspect torrent files written in Go +WWW= https://github.com/autobrr/mkbrr + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= go:1.23,modules + +CGO_ENABLED= 0 +GO_MODULE= github.com/autobrr/${PORTNAME} + +PLIST_FILES= bin/mkbrr + +post-patch: + @${REINPLACE_CMD} -e 's|%%DISTVERSION%%|${DISTVERSION}|g' \ + ${PATCH_WRKSRC}/main.go + @${REINPLACE_CMD} -e 's|%%BUILDTIME%%|${CONFIGURE_TARGET}|g' \ + ${PATCH_WRKSRC}/main.go + ${RM} ${PATCH_WRKSRC}/cmd/update.go + +.include diff --git a/net-p2p/mkbrr/distinfo b/net-p2p/mkbrr/distinfo new file mode 100644 index 000000000000..fdc792bd990e --- /dev/null +++ b/net-p2p/mkbrr/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1741382943 +SHA256 (go/net-p2p_mkbrr/mkbrr-v1.3.0/v1.3.0.mod) = 7eb4252628e608712058fbed6f72cfa3a97fc6e8c5d7d3feb9efa8ec6d5d4676 +SIZE (go/net-p2p_mkbrr/mkbrr-v1.3.0/v1.3.0.mod) = 2106 +SHA256 (go/net-p2p_mkbrr/mkbrr-v1.3.0/v1.3.0.zip) = 426fd987d9f71b890d579d4d2a03b70d911b9e9a9e3ebc2824583a10012e13aa +SIZE (go/net-p2p_mkbrr/mkbrr-v1.3.0/v1.3.0.zip) = 73885 diff --git a/net-p2p/mkbrr/files/patch-main.go b/net-p2p/mkbrr/files/patch-main.go new file mode 100644 index 000000000000..8ee590106e3f --- /dev/null +++ b/net-p2p/mkbrr/files/patch-main.go @@ -0,0 +1,13 @@ +--- main.go.orig 2025-03-07 21:35:10 UTC ++++ main.go +@@ -7,8 +7,8 @@ var ( + ) + + var ( +- version = "dev" +- buildTime = "unknown" ++ version = "%%DISTVERSION%%" ++ buildTime = "%%BUILDTIME%%" + ) + + func main() { diff --git a/net-p2p/mkbrr/pkg-descr b/net-p2p/mkbrr/pkg-descr new file mode 100644 index 000000000000..93c7dcd832fc --- /dev/null +++ b/net-p2p/mkbrr/pkg-descr @@ -0,0 +1,10 @@ +Commmand-line utility to create, modify and inspect torrent files written in Go + +A simple yet powerful tool for: + +* Creating torrent files +* Inspecting torrent files +* Modifying torrent metadata +* Supports tracker-specific requirements automatically + +