From e55136fa46bbf1736724d2360721a1be905ed3e7 Mon Sep 17 00:00:00 2001 From: edshot99 Date: Wed, 26 Feb 2025 22:38:00 -0600 Subject: [PATCH] v1.0 --- net-opentracker/Makefile | 14 ++-- net-opentracker/distinfo | 4 +- net-opentracker/files/opentracker.conf | 106 ------------------------- net-opentracker/patches/patch-Makefile | 27 +++---- net-opentracker/pkg/PLIST | 8 +- 5 files changed, 28 insertions(+), 131 deletions(-) delete mode 100644 net-opentracker/files/opentracker.conf diff --git a/net-opentracker/Makefile b/net-opentracker/Makefile index 584bb2c..98ebafe 100644 --- a/net-opentracker/Makefile +++ b/net-opentracker/Makefile @@ -1,21 +1,21 @@ -BROKEN = i am no longer providing the unofficial source tarball or maintaining. may fixup when 1.0 is released COMMENT = open and free bittorrent tracker -DISTNAME = opentracker-0.1-110868ec -PKGNAME = opentracker-0.1 +DISTNAME = opentracker-1.0 CATEGORIES = net HOMEPAGE = https://erdgeist.org/arts/software/opentracker/ -MAINTAINER = "Ed " +MAINTAINER = "Ed " # beerware PERMIT_PACKAGE = Yes WANTLIB = ${COMPILER_LIBC} owfat -MASTER_SITES = https://www.d-rine.com/pub/Software2/SRC/ +SITES = https://erdgeist.org/arts/software/opentracker/ + +EXTRACT_SUFX = .tar.bz2 COMPILER = base-clang ports-gcc base-gcc COMPILER_LANGS = c @@ -28,6 +28,8 @@ NO_TEST = Yes post-install: ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/opentracker - ${INSTALL_DATA} ${FILESDIR}/opentracker.conf ${PREFIX}/share/examples/opentracker/ + ${INSTALL_DATA} ${WRKSRC}/opentracker.conf.sample ${PREFIX}/share/examples/opentracker/ + ${INSTALL_DATA} ${WRKSRC}/man1/opentracker.1 ${PREFIX}/man/man1/ + ${INSTALL_DATA} ${WRKSRC}/man4/opentracker.conf.4 ${PREFIX}/man/man4/ .include diff --git a/net-opentracker/distinfo b/net-opentracker/distinfo index 8b304e9..16888e2 100644 --- a/net-opentracker/distinfo +++ b/net-opentracker/distinfo @@ -1,2 +1,2 @@ -SHA256 (opentracker-0.1-110868ec.tar.gz) = 1+pn1T2TEAhkj92xEZLB81Z62PIHB+o10X6OnliUQ+o= -SIZE (opentracker-0.1-110868ec.tar.gz) = 68661 +SHA256 (opentracker-1.0.tar.bz2) = gQnL8nHUN0Agr3GaylRIsTVFF8Cy9LdLFnMylEph6zE= +SIZE (opentracker-1.0.tar.bz2) = 66863 diff --git a/net-opentracker/files/opentracker.conf b/net-opentracker/files/opentracker.conf deleted file mode 100644 index db45122..0000000 --- a/net-opentracker/files/opentracker.conf +++ /dev/null @@ -1,106 +0,0 @@ -# opentracker config file -# - -# I) Address opentracker will listen on, using both, tcp AND udp family -# (note, that port 6969 is implicite if ommitted). -# -# If no listen option is given (here or on the command line), opentracker -# listens on 0.0.0.0:6969 tcp and udp. -# -# The next variable determines if udp sockets are handled in the event -# loop (set it to 0, the default) or are handled in blocking reads in -# dedicated worker threads. You have to set this value before the -# listen.tcp_udp or listen.udp statements before it takes effect, but you -# can re-set it for each listen statement. Normally you should keep it at -# the top of the config file. -# -# listen.udp.workers 4 -# -# listen.tcp_udp 0.0.0.0 -# listen.tcp_udp 192.168.0.1:80 -# listen.tcp_udp 10.0.0.5:6969 -# -# To only listen on tcp or udp family ports, list them this way: -# -# listen.tcp 0.0.0.0 -# listen.udp 192.168.0.1:6969 -# -# Note, that using 0.0.0.0 for udp sockets may yield surprising results. -# An answer packet sent on that socket will not necessarily have the -# source address that the requesting client may expect, but any address -# on that interface. -# - -# II) If opentracker runs in a non-open mode, point it to files containing -# all torrent hashes that it will serve (shell option -w) -# -# access.whitelist /path/to/whitelist -# -# or, if opentracker was compiled to allow blacklisting (shell option -b) -# -# access.blacklist ./blacklist -# -# It is pointless and hence not possible to compile black AND white -# listing, so choose one of those options at compile time. File format -# is straight forward: "\n\n..." -# -# If you do not want to grant anyone access to your stats, enable the -# WANT_RESTRICT_STATS option in Makefile and bless the ip addresses -# allowed to fetch stats here. -# -# access.stats 192.168.0.23 -# -# There is another way of hiding your stats. You can obfuscate the path -# to them. Normally it is located at /stats but you can configure it to -# appear anywhere on your tracker. -# -# access.stats_path stats - -# III) Live sync uses udp multicast packets to keep a cluster of opentrackers -# synchronized. This option tells opentracker which port to listen for -# incoming live sync packets. The ip address tells opentracker, on which -# interface to join the multicast group, those packets will arrive. -# (shell option -i 192.168.0.1 -s 9696), port 9696 is default. -# -# livesync.cluster.listen 192.168.0.1:9696 -# -# Note that two udp sockets will be opened. One on ip address 0.0.0.0 -# port 9696, that will join the multicast group 224.0.42.23 for incoming -# udp packets and one on ip address 192.168.0.1 port 9696 for outgoing -# udp packets. -# -# As of now one and only one ip address must be given, if opentracker -# was built with the WANT_SYNC_LIVE feature. -# - -# IV) Sync between trackers running in a cluster is restricted to packets -# coming from trusted ip addresses. While source ip verification is far -# from perfect, the authors of opentracker trust in the correct -# application of tunnels, filters and LAN setups (shell option -A). -# -# livesync.cluster.node_ip 192.168.0.4 -# livesync.cluster.node_ip 192.168.0.5 -# livesync.cluster.node_ip 192.168.0.6 -# -# This is the admin ip address for old style (HTTP based) asynchronus -# tracker syncing. -# -# batchsync.cluster.admin_ip 10.1.1.1 -# - -# V) Control privilege drop behaviour. -# Put in the directory opentracker will chroot/chdir to. All black/white -# list files must be put in that directory (shell option -d). -# -# -# tracker.rootdir /usr/local/etc/opentracker -# -# Tell opentracker which user to setuid to. -# -# tracker.user nobody -# - -# VI) opentracker can be told to answer to a "GET / HTTP"-request with a -# redirect to another location (shell option -r). -# -# tracker.redirect_url https://your.tracker.local/ diff --git a/net-opentracker/patches/patch-Makefile b/net-opentracker/patches/patch-Makefile index bc3976e..94cb696 100644 --- a/net-opentracker/patches/patch-Makefile +++ b/net-opentracker/patches/patch-Makefile @@ -1,17 +1,7 @@ -Corrections for proper compilation and installation. - Index: Makefile ---- Makefile.orig Mon Dec 12 14:18:17 2022 -+++ Makefile Wed Dec 14 21:30:07 2022 -@@ -1,6 +1,6 @@ - # $Id: patch-Makefile,v 1.1.1.1 2023/04/06 06:55:22 ed Exp $ - --CC?=gcc -+CC=cc - - # Linux flavour - # PREFIX?=/opt/diet -@@ -8,17 +8,17 @@ CC?=gcc +--- Makefile.orig Sat Jun 22 07:39:10 2024 ++++ Makefile Wed Feb 26 18:45:27 2025 +@@ -6,17 +6,17 @@ # LIBOWFAT_LIBRARY=$(PREFIX)/lib # BSD flavour @@ -35,5 +25,14 @@ Index: Makefile +BINDIR=$(PREFIX)/bin +STRIP=strip - #FEATURES+=-DWANT_V6 + #FEATURES+=-DWANT_V4_ONLY + #FEATURES+=-DWANT_ACCESSLIST_BLACK +@@ -49,7 +49,7 @@ FEATURES+=-DWANT_FULLSCRAPE + # You need libowfat version 0.34 to allow for automatic release of chunks during + # full scrape transfer, if you rely on an older versions, enable this flag +-#FEATURES+=-DWANT_NO_AUTO_FREE ++FEATURES+=-DWANT_NO_AUTO_FREE + + # Is enabled on BSD systems by default in trackerlogic.h + # on Linux systems the include Makefile adds -lbsd diff --git a/net-opentracker/pkg/PLIST b/net-opentracker/pkg/PLIST index 14755d6..448232a 100644 --- a/net-opentracker/pkg/PLIST +++ b/net-opentracker/pkg/PLIST @@ -1,7 +1,9 @@ -@newgroup _opentracker:891 -@newuser _opentracker:891:891:default:opentracker daemon:/var/empty:/sbin/nologin +@newgroup _opentracker:497 +@newuser _opentracker:497:497:default:opentracker daemon:/var/empty:/sbin/nologin @rcscript ${RCDIR}/opentracker @bin bin/opentracker share/examples/opentracker/ -share/examples/opentracker/opentracker.conf +share/examples/opentracker/opentracker.conf.sample @sample ${SYSCONFDIR}/opentracker.conf +@man man/man1/opentracker.1 +@man man/man4/opentracker.conf.4