From owner-freebsd-ports@FreeBSD.ORG Fri Oct 25 22:12:51 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id EF07A3B0 for ; Fri, 25 Oct 2013 22:12:50 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9342D261A for ; Fri, 25 Oct 2013 22:12:50 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.2.117.99]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.7/8.14.7) with ESMTP id r9PMCkuL061430 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Fri, 25 Oct 2013 23:12:46 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) DKIM-Filter: OpenDKIM Filter v2.8.3 smtp.infracaninophile.co.uk r9PMCkuL061430 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1382739166; bh=G6XXlkyOHXk/t4WVPeACfbZoaQrlgRS1Ed6ARpVGbc8=; h=Date:From:To:Subject:References:In-Reply-To; z=Date:=20Fri,=2025=20Oct=202013=2023:12:45=20+0100|From:=20Matthew =20Seaman=20|To:=20Christian=20We isgerber=20,=20freebsd-ports@freebsd.org|Subje ct:=20Re:=20How=20to=20reference=20/var/foo=20in=20pkg-plist?|Refe rences:=20|In-Reply-To:=20; b=RD2ZBboK3YAQpAecTIvGqUZYWBDxdi0/rnT6usS7VN6HC8fbJ0QCkgVJR7dO8dIz2 mGWe25gsNE4iICP0Ite6ffYR+0nXRjUsTOkHyEzy5EIhCNr5bXGcgAkqn3/ECAm1ZJ /iL+G2hwjDnGf4Bao1bDUWyX0xhoS+Hp978+nTiM= Message-ID: <526AECDD.6060606@infracaninophile.co.uk> Date: Fri, 25 Oct 2013 23:12:45 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: Christian Weisgerber , freebsd-ports@freebsd.org Subject: Re: How to reference /var/foo in pkg-plist? References: In-Reply-To: X-Enigmail-Version: 1.5.2 OpenPGP: id=E7F39EBF Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="RNQXo3KQSrPhqwCgP0rGUrJdAstUqKe41" X-Virus-Scanned: clamav-milter 0.97.8 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Oct 2013 22:12:51 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --RNQXo3KQSrPhqwCgP0rGUrJdAstUqKe41 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 25/10/2013 21:06, Christian Weisgerber wrote: > For a crufty port of mine that I'm converting to staging, I'm trying > this in pkg-plist: >=20 > @exec mkdir -pm 770 /var/spool/bsmtp; chown uucp:uucp /var/spool/bsmt= p > @dirrmtry /var/spool/bsmtp >=20 > Alas, it doesn't package: >=20 > =3D=3D=3D> Building package for bsmtp-1.02_5 > pkg-static: lstat(/usr/ports/mail/bsmtp/work/stage/var/spool/bsmtp/):= > No such file or directory >=20 > This isn't meant to reference ${STAGEDIR}/var/spool/bsmtp, I really > want the absolute path /var/spool/bsmtp. Adding @cwd / doesn't > help. >=20 > What's the correct way to handle this? Use a pkg-install.sh script, or add code to an rc script to create any necessary directory structure when a daemon is first started. Usually working data stored under /var (and any necessary directory structure to hold it) is not counted as part of the port and not deleted on package deinstallation or upgrade. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey JID: matthew@infracaninophile.co.uk --RNQXo3KQSrPhqwCgP0rGUrJdAstUqKe41 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.20 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQJ8BAEBCgBmBQJSauzdXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATxjIQAIC8q0Lr1cOXkEG81fIucZF0 gH2YHuQCgnmBk5XFbU9zclZRgtSrzngyn6I46c8NrFGVrhGaBJ0qho7LC9ftJ2Gy 4boAH+eJLDbXrjuDb+WfjEgFw2KZb9z0Fo5olJ7i5szRsxsNlNe+dKoFCixC6fSN zFTykrLH21U2ytkjKshLJoYWjI9wFn0qs7nwEvDH43rNRiO3+boDmeSlE7Si+Q3k yo9oY09yInUdzCyWppZrTidQjxa2Ca9j/WDFu8oHoUTcRkJajZ7s/oDWSycPGqpR GrjoyM4hbt5+iTENbM+ySP20pqzyyz0tME4HryyIY6d7nWDzB13l/dTlNvyblm7K za31tBYeUW5CnfuysMU0fYTxxzcHjx/uqb2kd8hSSFwnwRY7ZxthCK/QdxjuEhqa xrggK6YaQ+emfPmVBvpLwqxuV/E1h/XhQP0cUo/4DaJaH64V4xWcLa1RLcLE0u5K y/g/rn0jQ4Uv1mRlizmg6WdweAV1ig9gYO6ugfHGs6tLZt97/xbk5OqNhsXnruNJ d7ZCTmsidvawkjQ/cmy6eKAEZhGPp0WdFmlB8cl34g75GHFd2YOR8GaVQXd29drD 5jANc6Dyi0ecz0ghr68Ruhm4/W09KRiknNl5We4kQMaN+O7Q5fuSJrtJcttVEZx/ KMMKlZSB16Y+8Ts5gLX/ =BM7Z -----END PGP SIGNATURE----- --RNQXo3KQSrPhqwCgP0rGUrJdAstUqKe41--