From owner-freebsd-ports@FreeBSD.ORG Fri Feb 5 14:42:05 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4435B106568F for ; Fri, 5 Feb 2010 14:42:05 +0000 (UTC) (envelope-from spil.oss@googlemail.com) Received: from mail-px0-f183.google.com (mail-px0-f183.google.com [209.85.216.183]) by mx1.freebsd.org (Postfix) with ESMTP id 1CA888FC22 for ; Fri, 5 Feb 2010 14:42:04 +0000 (UTC) Received: by pxi13 with SMTP id 13so1123623pxi.3 for ; Fri, 05 Feb 2010 06:42:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=boA6cBWTOI/uExCrInPl5LxN6LUjD7hrMyyZv9vcuDg=; b=h7JHA2zyTKtrwC6FPFPuHYfvfPPeVR0Ow45EQpF0J368NRYvuXJ793zqA2+CEKEdVm j630WtiQWnTHR+3Gvg3QYnuqoQJh0DdCSpp5vFOLZHapFJHgEnjgUWE4EUO9e+YVCicg rtuQA45N+hMBobf9HdsTgvl2jn3jyv70Hu4lU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type; b=T7AGKNB0dO+pPmy5llxox72XAhNVScipKJ7TbEhvPbmgJj5wftFQBWWGV5IQqTPvRd x2NJJpfXj0tysxr+N398nt+jGUEtBZeTTbYf3w6iFqQTfWIBY6smYapy2rspHZqCJ2jk O2P1IvTtB+F51LJ+EbkCEbxUNzEsg1t7hqaCo= MIME-Version: 1.0 Received: by 10.140.55.4 with SMTP id d4mr1911251rva.117.1265380924633; Fri, 05 Feb 2010 06:42:04 -0800 (PST) In-Reply-To: <5fbf03c21002050636y39a308b7v1d51699942ba2c06@mail.gmail.com> References: <5fbf03c21002050636y39a308b7v1d51699942ba2c06@mail.gmail.com> Date: Fri, 5 Feb 2010 15:42:04 +0100 Message-ID: <5fbf03c21002050642i744a59d4yf6588c2f5c5823d0@mail.gmail.com> From: Spil Oss To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: net/samba34 does not create all required directories X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: spil.oss@gmail.com List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Feb 2010 14:42:05 -0000 On Fri, Feb 5, 2010 at 3:36 PM, Spil Oss wrote: > Hi, > > Just built net/samba34 (only ACL, AIO, FAM, SYSLOG and POPT enabled) > and created a package samba34-3.4.5.tbz in my build jail. > > Installed the package in a different jail and couldn't start samba. > > First error was the pid-files related to /var/run/samba34 not existing > > Second error > "initialise_wins: failed to open wins.tdb. Error was No such file or directory" > Solved by tempory disabling wins support in smb.conf. After fixing > third error I re-enabled it and it lives in /var/lib/samba as well > > Third error > "write_browse_list: Can't open file /var/lib/samba/browse.dat" > > 1. /var/run/samba34 was not created by the package (was created in the > build jail) > 2. /var/lib/samba was not created > > smbd -b | grep DIR revealed all directories that must exist when starting samba > > Upgrading info is a bit meager, no UPGRADING file and the doc contains > only a reference to the smbpasswd deprecation. > > > Kind regards, > > Spil. > Checked some more, and it seems that STATEDIR and CACHEDIR are new build variables as I haven't found these in the 3.3.9 build. These two variables were /var/lib/samba by default causing my error. Changelog contains the following changes --with-statedir=DIR Where to put persistent state files --with-cachedir=DIR Where to put temporary cache files Guess these should point to /var/db/samba34 rather than /var/lib/samba Just let me know if I need to file a PR Kind regards, Spil.