From owner-freebsd-ports@FreeBSD.ORG Sun Mar 21 17:25:21 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 6BF16106564A for ; Sun, 21 Mar 2010 17:25:21 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id D1D338FC12 for ; Sun, 21 Mar 2010 17:25:20 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.187.76.163]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.4/8.14.4) with ESMTP id o2LGq6sK034717 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Sun, 21 Mar 2010 16:52:06 GMT (envelope-from m.seaman@infracaninophile.co.uk) Message-ID: <4BA64EB5.1060100@infracaninophile.co.uk> Date: Sun, 21 Mar 2010 16:52:05 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 MIME-Version: 1.0 To: freebsd-ports@freebsd.org References: <20100317184936.2310.qmail@wcfields.tmseck.homedns.org> <20100321143652.GB1784@wcfields.tmseck.homedns.org> In-Reply-To: <20100321143652.GB1784@wcfields.tmseck.homedns.org> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.95.3 at happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_ADSP_ALL, SPF_FAIL autolearn=no version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on happy-idiot-talk.infracaninophile.co.uk Subject: Re: correct location for third party /var files X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Mar 2010 17:25:21 -0000 On 21/03/2010 14:36:52, Thomas-Martin Seck wrote: > Anyway, I just tried to move cache/log/pidfile to /var and found that > this seems a bit tricky if not impossible when you generate your > packagelist dynamically with PLIST_DIRS/PLIST_FILES. It looks like you > need to wrap your absolute paths (or rather the @dirrm(try) calls in the > plist) between "@cwd /" and "@cwd %%PREFIX%%". Does anyone know how to > achieve this without resorting to a static pkg-plist? (I'd rather not > introduce a static pkg-plist file with tons of substitutions for squid-2 > and squid-3.0 because of the configurable list of installed error > directories but for 3.1 and up this could be doable if there is no other > solution. The plan would be to have the cache in /var/squid/cache, logs > in /var/log/squid and the pidfile in /var/squid/; this is so that the > squid master process does not need root privileges just to be able to > write to /var/run.) Instead of trying to make the pkg plist do difficult things, why not just include code in your RC script to create whatever working files and directories you need under /var when squid is started up? Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW