Date: Thu, 03 Apr 2014 19:57:07 -0400 From: Neel Chauhan <neel@neelc.org> To: bf@FreeBSD.org, freebsd-ports@FreeBSD.org Subject: [patch] - Fix for "Failed to parse/validate config: Failed to init Log options" Message-ID: <21f484a277b6ca327212c3c29ab05975@mail.neelc.org>
next in thread | raw e-mail | index | archive | help
Hi,
I have a patch to fix the "Failed to parse/validate config: Failed to
init Log options" problem whenever I start Tor on FreeBSD. It is:
--- Makefile.old 2014-04-03 19:48:25.000000000 -0400
+++ Makefile 2014-04-03 19:49:57.000000000 -0400
@@ -42,6 +42,9 @@
CONFLICTS= tor-devel-[0-9]*
+PLIST_SUB= USERS=${USERS}
+PLIST_SUB+= GROUPS=${GROUPS}
+
.include <bsd.port.options.mk>
.if ( (${OSVERSION} < 900000) || \
--- pkg-plist.old 2014-04-03 19:37:16.000000000 -0400
+++ pkg-plist 2014-04-03 19:47:56.000000000 -0400
@@ -8,6 +8,8 @@
man/man1/tor-resolve.1.gz
man/man1/tor.1.gz
man/man1/torify.1.gz
+@exec touch /var/log/tor ; chown %%USERS%%:%%GROUPS%% /var/log/tor
+@exec mkdir /var/run/tor ; chown -R %%USERS%%:%%GROUPS%% /var/run/tor
%%DATADIR%%/geoip
%%DATADIR%%/geoip6
@dirrm %%DATADIR%%
I'm in a hurry to post this because I'm a high school student and I
don't want my mom to be too angry with me, but I did test this and it
worked. Hope you enjoy it.
-Neel
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?21f484a277b6ca327212c3c29ab05975>
