From owner-freebsd-ports@FreeBSD.ORG Fri Apr 4 00:01:45 2014 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DF7EF8E2; Fri, 4 Apr 2014 00:01:45 +0000 (UTC) Received: from mail.neelc.org (mail.neelc.org [72.0.227.52]) by mx1.freebsd.org (Postfix) with ESMTP id 8D6BBEBA; Fri, 4 Apr 2014 00:01:45 +0000 (UTC) Received: from www.neelc.org (unknown [192.168.1.1]) by mail.neelc.org (Postfix) with ESMTPA id 25BEF471721; Thu, 3 Apr 2014 19:57:08 -0400 (EDT) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 03 Apr 2014 19:57:07 -0400 From: Neel Chauhan 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> X-Sender: neel@neelc.org User-Agent: Roundcube Webmail/0.9.5 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2014 00:01:45 -0000 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 .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