Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 May 2014 06:52:02 +0100
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        freebsd-ports@freebsd.org
Subject:   Re: Standard procedures for var directory
Message-ID:  <53706182.7010404@FreeBSD.org>
In-Reply-To: <CA%2BnPUkxTPcdgGP1EZSKK%2BGYQaoXmgPmTND9CaQBzU704Ydi3zQ@mail.gmail.com>
References:  <CA%2BnPUkxTPcdgGP1EZSKK%2BGYQaoXmgPmTND9CaQBzU704Ydi3zQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53706182.7010404>