commit b5976536825a52b9913a39ca03e90cf8cbd85482
parent 2327bf9f6637422f00073e4eccec7bd21cb9bc1f
Author: emmett1 <emmett1.2miligrams@protonmail.com>
Date: Sun, 12 Oct 2025 15:08:21 +0000
tor: new added
Diffstat:
6 files changed, 42 insertions(+), 0 deletions(-)
diff --git a/repos/extra/tor/.checksum b/repos/extra/tor/.checksum
@@ -0,0 +1,2 @@
+11a0991a6efa39319b7577d0ab4c1b1c0500f709820513f47c7047c66d08a2d3 run
+60099d493c02086388e2b2b3e1acf4da0be4ce06a2a3c97a836c3ce1e08b0df9 tor-0.4.8.19.tar.gz
diff --git a/repos/extra/tor/.files b/repos/extra/tor/.files
@@ -0,0 +1,25 @@
+drwxr-xr-x root/root etc/
+drwxr-xr-x root/root etc/sv/
+drwxr-xr-x root/root etc/sv/tor/
+-rwxr-xr-x root/root etc/sv/tor/run.new
+lrwxrwxrwx root/root etc/sv/tor/supervise -> ../../../run/runit/supervise.tor
+drwxr-xr-x root/root etc/tor/
+-rw-r--r-- root/root etc/tor/torrc.sample.new
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/tor
+-rwxr-xr-x root/root usr/bin/tor-gencert
+-rwxr-xr-x root/root usr/bin/tor-print-ed-signing-cert
+-rwxr-xr-x root/root usr/bin/tor-resolve
+-rwxr-xr-x root/root usr/bin/torify
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/man/
+drwxr-xr-x root/root usr/share/man/man1/
+-rw-r--r-- root/root usr/share/man/man1/tor-gencert.1.gz
+-rw-r--r-- root/root usr/share/man/man1/tor-print-ed-signing-cert.1.gz
+-rw-r--r-- root/root usr/share/man/man1/tor-resolve.1.gz
+-rw-r--r-- root/root usr/share/man/man1/tor.1.gz
+-rw-r--r-- root/root usr/share/man/man1/torify.1.gz
+drwxr-xr-x root/root usr/share/tor/
+-rw-r--r-- root/root usr/share/tor/geoip
+-rw-r--r-- root/root usr/share/tor/geoip6
diff --git a/repos/extra/tor/abuild b/repos/extra/tor/abuild
@@ -0,0 +1,6 @@
+name=tor
+version=0.4.8.19
+release=1
+source="https://dist.${name}project.org/${name}-${version}.tar.gz
+ run"
+sv=run
diff --git a/repos/extra/tor/depends b/repos/extra/tor/depends
@@ -0,0 +1 @@
+libevent
diff --git a/repos/extra/tor/preinstall b/repos/extra/tor/preinstall
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+addgroup -S tor 2>/dev/null
+adduser -S -D -H -h /var/lib/tor -s /sbin/nologin -g tor -G tor tor 2>/dev/null
diff --git a/repos/extra/tor/run b/repos/extra/tor/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+[ -r conf ] && . ./conf
+ulimit -n ${MAX_OPEN_FILES:-65536}
+exec tor ${OPTS:=--quiet} --runasdaemon 0 2>&1