[Pkg-privacy-commits] [onioncat] 149/340: Debian: fixing Chicken Egg Problem with tor Hidden service
Ximin Luo
infinity0 at moszumanska.debian.org
Sat Aug 22 13:04:34 UTC 2015
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch debian
in repository onioncat.
commit a32c26c3567b4a68890c961783fab201375f2ec0
Author: axp <axp at 58e1ccc2-750e-0410-8d0d-f93ca75ab447>
Date: Fri Feb 20 15:24:50 2009 +0000
Debian: fixing Chicken Egg Problem with tor Hidden service
git-svn-id: http://www.cypherpunk.at/svn/onioncat/trunk@461 58e1ccc2-750e-0410-8d0d-f93ca75ab447
---
debian/init.d | 17 +++++++++++++++--
debian/onioncat.default | 16 ++++++++++++++++
2 files changed, 31 insertions(+), 2 deletions(-)
diff --git a/debian/init.d b/debian/init.d
index be9fe98..1eccac7 100644
--- a/debian/init.d
+++ b/debian/init.d
@@ -17,6 +17,7 @@ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/bin/ocat # Introduce the server's location here
NAME=ocat # Introduce the short server's name here
+NAMEL=onioncat
DESC="OnionCat Hidden Service Connector"# Introduce a short description here
LOGDIR=/var/log/onioncat # Log directory to use
@@ -49,10 +50,22 @@ DAEMONUSER=debian-tor # Users to run the daemons as. If this value
# is set start-stop-daemon will chuid the server
# Include defaults if available
-if [ -f /etc/default/$NAME ] ; then
- . /etc/default/$NAME
+if [ -f /etc/default/$NAMEL ] ; then
+ . /etc/default/$NAMEL
fi
+
+# Defaults - don't touch, edit /etc/default/onioncat
+ENABLED=0
+
+
+if [ "$ENABLED" = "0" ]; then
+ echo "$DESC: disabled, see /etc/default/onioncat"
+ exit 0
+fi
+
+
+
# Use this if you want the user to explicitly set 'RUN' in
# /etc/default/
#if [ "x$RUN" != "xyes" ] ; then
diff --git a/debian/onioncat.default b/debian/onioncat.default
new file mode 100644
index 0000000..e557809
--- /dev/null
+++ b/debian/onioncat.default
@@ -0,0 +1,16 @@
+##
+#This is the default Configuration File for Onioncat.
+# You must at least set the right hostname, but before
+# you can do this TOR needs to be configured for Hidden Services
+# For Example:
+# /etc/tor/torrc
+# HiddenServiceDir /var/lib/tor/hidden_service/
+# HiddenServicePort 8060 127.0.0.1:8060
+#
+# After doing so, get your Hosyname from: /var/lib/tor/hidden_service/hostname
+# and append it to the DAEMON options.
+# For Example:
+# DAEMON="-u debian-tor gfwljfhnapq91sz4.onion"
+# and !!!! SET ENABLED=1 !!!!
+ENABLED=0
+DAEMON="-u debian-tor <HiddenService url>"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/onioncat.git
More information about the Pkg-privacy-commits
mailing list