mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
- Update to 0.2010.05.30
PR: ports/147222 Submitted by: Chris Rees <utisoft@gmail.com> (maintainer)
This commit is contained in:
parent
428a0bf85e
commit
289d5d44fa
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=255365
4 changed files with 37 additions and 31 deletions
|
@ -6,7 +6,7 @@
|
|||
#
|
||||
|
||||
PORTNAME= opentracker
|
||||
PORTVERSION= 0.2009.06.27
|
||||
PORTVERSION= 0.2010.05.30
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= http://www.bayofrum.net/dist/${PORTNAME}/ \
|
||||
http://www.glenbarber.us/ports/net/${PORTNAME}/
|
||||
|
@ -16,6 +16,7 @@ COMMENT= A free lightweight bittorrent tracker using libowfat
|
|||
|
||||
BUILD_DEPENDS= ${LOCALBASE}/lib/libowfat.a:${PORTSDIR}/devel/libowfat
|
||||
|
||||
USE_BZIP2= yes
|
||||
USE_RC_SUBR= ${PORTNAME}
|
||||
|
||||
OPTIONS= WANT_ACCESSLIST_BLACK "Enable client blacklisting" Off \
|
||||
|
@ -63,5 +64,6 @@ post-install:
|
|||
${CP} -p ${PREFIX}/etc/${PORTNAME}/${PORTNAME}.conf.sample \
|
||||
${PREFIX}/etc/${PORTNAME}/${PORTNAME}.conf ; \
|
||||
fi
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
MD5 (opentracker-0.2009.06.27.tar.gz) = b453bbd8b557f6cdd633ab000b9ef6db
|
||||
SHA256 (opentracker-0.2009.06.27.tar.gz) = e8b3437bc98ab6f9f25cbb107a272ae1e4c86ce635c11195c197cae5f0d40fe7
|
||||
SIZE (opentracker-0.2009.06.27.tar.gz) = 45117
|
||||
MD5 (opentracker-0.2010.05.30.tar.bz2) = cf0836a3c54254ae98ce1037c55ea9fb
|
||||
SHA256 (opentracker-0.2010.05.30.tar.bz2) = 53b111cafd101ead61fb2b26760935b66657e5eba9067e28115be325391ec0bc
|
||||
SIZE (opentracker-0.2010.05.30.tar.bz2) = 48228
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
--- Makefile.orig 2009-06-27 16:48:37.000000000 +0100
|
||||
+++ Makefile 2009-06-27 18:19:43.000000000 +0100
|
||||
--- Makefile.orig 2010-05-30 16:16:13.000000000 +0100
|
||||
+++ Makefile 2010-05-30 16:17:20.000000000 +0100
|
||||
@@ -8,14 +8,14 @@
|
||||
# LIBOWFAT_LIBRARY=$(PREFIX)/lib
|
||||
|
||||
|
@ -8,51 +8,41 @@
|
|||
-# LIBOWFAT_HEADERS=$(PREFIX)/include/libowfat
|
||||
-# LIBOWFAT_LIBRARY=$(PREFIX)/lib
|
||||
+PREFIX?=/usr/local
|
||||
+LIBOWFAT_HEADERS=$(LOCALBASE)/include/libowfat
|
||||
+LIBOWFAT_LIBRARY=$(LOCALBASE)/lib
|
||||
+LIBOWFAT_HEADERS=$(PREFIX)/include/libowfat
|
||||
+LIBOWFAT_LIBRARY=$(PREFIX)/lib
|
||||
|
||||
# Debug flavour
|
||||
-PREFIX?=..
|
||||
-LIBOWFAT_HEADERS=$(PREFIX)/libowfat
|
||||
-LIBOWFAT_LIBRARY=$(PREFIX)/libowfat
|
||||
+# PREFIX?=..
|
||||
+# LIBOWFAT_HEADERS=$(PREFIX)/libowfat
|
||||
+# LIBOWFAT_LIBRARY=$(PREFIX)/libowfat
|
||||
+#PREFIX?=..
|
||||
+#LIBOWFAT_HEADERS=$(PREFIX)/libowfat
|
||||
+#LIBOWFAT_LIBRARY=$(PREFIX)/libowfat
|
||||
|
||||
BINDIR?=$(PREFIX)/bin
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
#FEATURES+=-DWANT_LOG_NETWORKS
|
||||
#FEATURES+=-DWANT_RESTRICT_STATS
|
||||
#FEATURES+=-DWANT_IP_FROM_PROXY
|
||||
@@ -35,7 +35,7 @@
|
||||
#FEATURES+=-DWANT_MODEST_FULLSCRAPES
|
||||
#FEATURES+=-DWANT_SPOT_WOODPECKER
|
||||
#FEATURES+=-DWANT_SYSLOGS
|
||||
-FEATURES+=-DWANT_FULLSCRAPE
|
||||
+#FEATURES+=-DWANT_FULLSCRAPE
|
||||
|
||||
#FEATURES+=-D_DEBUG_HTTPERROR
|
||||
|
||||
@@ -46,23 +46,15 @@
|
||||
SOURCES=opentracker.c trackerlogic.c scan_urlencoded_query.c ot_mutex.c ot_stats.c ot_vector.c ot_clean.c ot_udp.c ot_iovec.c ot_fullscrape.c ot_accesslist.c ot_http.c ot_livesync.c
|
||||
@@ -56,14 +56,13 @@
|
||||
|
||||
OBJECTS = $(SOURCES:%.c=%.o)
|
||||
-OBJECTS_debug = $(SOURCES:%.c=%.debug.o)
|
||||
|
||||
-.SUFFIXES: .debug.o .o .c
|
||||
+.SUFFIXES: .o .c
|
||||
.SUFFIXES: .debug.o .o .c
|
||||
|
||||
-all: $(BINARY) $(BINARY).debug
|
||||
+all: $(BINARY)
|
||||
|
||||
CFLAGS_production = $(CFLAGS) $(OPTS_production) $(FEATURES)
|
||||
-CFLAGS_debug = $(CFLAGS) $(OPTS_debug) $(FEATURES)
|
||||
CFLAGS_debug = $(CFLAGS) $(OPTS_debug) $(FEATURES)
|
||||
|
||||
$(BINARY): $(OBJECTS) $(HEADERS)
|
||||
$(CC) -o $@ $(OBJECTS) $(LDFLAGS)
|
||||
- strip $@
|
||||
-$(BINARY).debug: $(OBJECTS_debug) $(HEADERS)
|
||||
- $(CC) -o $@ $(OBJECTS_debug) $(LDFLAGS)
|
||||
-
|
||||
-.c.debug.o : $(HEADERS)
|
||||
- $(CC) -c -o $@ $(CFLAGS_debug) $(<:.debug.o=.c)
|
||||
|
||||
.c.o : $(HEADERS)
|
||||
$(CC) -c -o $@ $(CFLAGS_production) $<
|
||||
$(BINARY).debug: $(OBJECTS_debug) $(HEADERS)
|
||||
$(CC) -o $@ $(OBJECTS_debug) $(LDFLAGS)
|
||||
proxy: $(OBJECTS_proxy) $(HEADERS)
|
||||
|
|
14
net/opentracker/pkg-message
Normal file
14
net/opentracker/pkg-message
Normal file
|
@ -0,0 +1,14 @@
|
|||
This tracker is open in a sense that everyone announcing a torrent is welcome
|
||||
to do so and will be informed about anyone else announcing the same torrent.
|
||||
Unless -DWANT_IP_FROM_QUERY_STRING is enabled (which is meant for debugging
|
||||
purposes only), only source IPs are accepted. The tracker implements a minimal
|
||||
set of essential features only but was able respond to far more than 10000
|
||||
requests per second on a Sun Fire 2200 M2 (thats where we found no more clients
|
||||
able to fire more of our testsuite.sh script).
|
||||
|
||||
Some tweaks you may want to try under FreeBSD:
|
||||
|
||||
sysctl kern.ipc.somaxconn=1024
|
||||
sysctl kern.ipc.nmbclusters=32768
|
||||
sysctl net.inet.tcp.msl=10000
|
||||
sysctl kern.maxfiles=10240
|
Loading…
Add table
Reference in a new issue