From owner-freebsd-ports@FreeBSD.ORG Thu Apr 3 23:58:31 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 C49DC6AA; Thu, 3 Apr 2014 23:58:31 +0000 (UTC) Received: from mail.neelc.org (mail.neelc.org [72.0.227.52]) by mx1.freebsd.org (Postfix) with ESMTP id 9F70BE0D; Thu, 3 Apr 2014 23:58:31 +0000 (UTC) Received: from www.neelc.org (unknown [192.168.1.1]) by mail.neelc.org (Postfix) with ESMTPA id 51C17471725; Thu, 3 Apr 2014 20:00:42 -0400 (EDT) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 03 Apr 2014 20:00:42 -0400 From: Neel Chauhan To: bf@FreeBSD.org Subject: [patch] - Fix for "Failed to parse/validate config: Failed to init Log options" Message-ID: X-Sender: neel@neelc.org User-Agent: Roundcube Webmail/0.9.5 Cc: neel@neelc.org, freebsd-ports@freebsd.org 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: Thu, 03 Apr 2014 23:58:31 -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. And my Postfix server couldn't send this email the first time (I actually run my own email server, and from home!). But anyways, hope you enjoy it. -Neel