From owner-freebsd-ports@FreeBSD.ORG Mon May 12 05:52:18 2014 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 ESMTPS id D668DF94 for ; Mon, 12 May 2014 05:52:18 +0000 (UTC) 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)) (Client CN "smtp.infracaninophile.co.uk", Issuer "ca.infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 834902BA9 for ; Mon, 12 May 2014 05:52:18 +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.8/8.14.8) with ESMTP id s4C5qA25056310 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Mon, 12 May 2014 06:52:11 +0100 (BST) (envelope-from matthew@FreeBSD.org) Authentication-Results: lucid-nonsense.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org DKIM-Filter: OpenDKIM Filter v2.8.3 smtp.infracaninophile.co.uk s4C5qA25056310 Authentication-Results: smtp.infracaninophile.co.uk/s4C5qA25056310; dkim=none reason="no signature"; dkim-adsp=none Message-ID: <53706182.7010404@FreeBSD.org> Date: Mon, 12 May 2014 06:52:02 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Subject: Re: Standard procedures for var directory References: In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="dUNlRm7gErPdwd7nheN67M2KbGs0U8cpM" X-Virus-Scanned: clamav-milter 0.98.1 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 May 2014 05:52:19 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --dUNlRm7gErPdwd7nheN67M2KbGs0U8cpM Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 11/05/2014 21:56, Muhammad Moinur Rahman wrote: > What's the standard procedure for creating files or folders after > installation? pkg-install/pkg-deinstall or @exec/@unexec? Right now, what the standard should be is unclear. @exec/@unexec is apparently slated for removal -- but does that apply to all uses or just standard actions like handling config files which have recently grown their own @escapes? There is no target date for when @exec/@unexec might disappear and there's a lot of prior-art around the ports tree stil= l. pkg-install/pkg-deinstall is supported, but seems a bit heavy-weight for a lot of the common use cases. A third alternative, where applicable, is to test for and set up any necessary directory structures (presumably under /var) from a rc script. Files should always be created from the pkg plist, even if they are just empty. There is a change coming which will allow directories to be treated pretty much exactly the same as regular files or sym-links -- but this depends on the last vestiges of pkg_tools support being purged from the tree. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey --dUNlRm7gErPdwd7nheN67M2KbGs0U8cpM 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/ iQJ8BAEBCgBmBQJTcGGKXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATxn4P/0tcBp86d51TrFNGvKGrVQ8p QGkw31Lrpjh7PKkl31IFc/1VsVshXeRbKLCjsPdOvu9HQekflXZOiaftHrAqondu 5/Tr5cdtcViKX500GwX/YtTiEffZD4+L5FEeDV2s/Za1bdE5YcSfTfA+BvCqkIjp +dFk9ApfQFoYy0sRg7jljgP2x6BB3QMZIEuklS5DYDQf3ENvcoTlZzQfT6w6i4pB 1Rr3hJYpCwGS0MNuG9wv3+4d+D7R1z5pFnN7e+uhjEWNvuq4mUOEsYt6OFVGSdtG CIHCMgb7GKiVxCGq35aWsF+20JM0wiiSWOtfy80lFRp5ZiQ7/zpQ7QYAv0QjfTA5 sy1+iHDe+jGEUrGqj8aIKC1VO0SYreT+xYm9K0Cku0fY0yMlbtuPd/2EpZDa2XUR 1Dt3+1dkU8F7hQENCUlUn9i4jV0zAe4bGkQ10ZjebykvmmdWA0Y5U7VZiWSAesGh MSyQE9XnJ6SR7RTlrpdtSvnQCMbonV1yKo2QCpCnL0Wcf6sPvTi2ECFLUqHlURF5 F2QJI171A6z/tyZ/g1Hyz7FhnCYWVDLC8yBRhwnlMHEWr8PQhS71dlZynznFEWgL ZaHt230YffyDYQp18g4hYqRaAkyseAxFDETUdZSoN6qrZAsabySwujn5iiiuju1U N72Ja+QUUdoLDw8QLJRk =yAe2 -----END PGP SIGNATURE----- --dUNlRm7gErPdwd7nheN67M2KbGs0U8cpM--