Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 May 2014 07:07:17 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        freebsd-ports@freebsd.org
Subject:   Re: Is staging a port really this simple?
Message-ID:  <53842B95.7090600@infracaninophile.co.uk>
In-Reply-To: <53840869.xP0jQy92GIgSbFZy%perryh@pluto.rain.com>
References:  <524CE820.5060003@missouri.edu> <20131003061511.GF85314@ithaqua.etoilebsd.net> <538179d9.ERL3ZKEnk4pQKKib%perryh@pluto.rain.com> <CADtCJqoTpSB0E9uN8Y6CkZm_8wjU0b5Pc50vT=pB-bHjZmGpeQ@mail.gmail.com> <538197E3.1070609@marino.st> <53840869.xP0jQy92GIgSbFZy%perryh@pluto.rain.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--VvgcNiIvNTQuhl0gJF53g8rS7CR2qjvek
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 27/05/2014 04:37, Perry Hutchison wrote:
>  post-install:
> -	@[ -f ${PREFIX}/etc/diskcheckd.conf ] \
> -		|| ${CP} -p ${PREFIX}/etc/diskcheckd.conf.sample \
> -			${PREFIX}/etc/diskcheckd.conf
> +	@${CP} -p ${STAGEDIR}${PREFIX}/etc/diskcheckd.conf.sample \
> +		${STAGEDIR}${PREFIX}/etc/diskcheckd.conf

When converting a port to staging, you generally end up deleting
post-install targets like the above.  You only need
diskcheckd.conf.sample in the staging area (and hence in the generated
package).  It's the @sample business in pkg-plist (or the equivalent
@exec statements) which will perform this action when the package is
finally installed on your system.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.

PGP: http://www.infracaninophile.co.uk/pgpkey
JID: matthew@infracaninophile.co.uk


--VvgcNiIvNTQuhl0gJF53g8rS7CR2qjvek
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/

iQJ8BAEBCgBmBQJThCucXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC
QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATli8P/ineuBd/Xvi6KfxwnbTtEG4H
qT9Ju2Zs9Svm0s3J48TRENQ2ZZgMhLpnZyVeNQAYqvqq4wukhM+/TC+2zNrklaPh
rq7kBK5/iz3nLCZt7jp7a98UAboE0O9fhKjhX1HQ2RuK7BB/2ifKsJEQCljFjg+r
/0gfwfKOBzsFxFAwZ1ar2xuZsBwNacfg+hxlpOIHTIsqEUApTXoCvtEDystTyYYt
s52Ro73SyN3oeMAb1xKdWrBoQ5yjR2uSbVN2D/8VPBSfWoOZu4ZEfI+MF398iy7F
0JBW9h28TXNKsSGJ6ullHhxrWXxoMmHHRJhNU93Mrw0W2wulUjplDNdWf9AH0l33
LEeRB+RNy4GM3yjhKaiYkQWCz4OLrJefcyQOpoCNnMOzyGjETtOxFEczTFbqRiKI
zQx8yoZOrJDVMJlt2z2AwGhCFhIESIWpKK1MLqaET67z9iXsYNiCXe4ei0DT+je/
sTYCpkL/v62w/SynjPmcSZ0BEPQu63jCa95fAZT7FSwpjFMr0XLovS6ZDqxrz9Yb
qVzEdxKI2/bkdnujH/l7PM7vH/2t6taggK4vJZXnSObJcS9Phyz5KR9Afjbe3lIJ
U8wZzAGlS6thg7YPQMiYEKqgCW4vCsr265u+x8kIWn72+ymWcWcP91MZ9GzqbbaA
718QmQm6dmvQepA6nkNX
=mxXJ
-----END PGP SIGNATURE-----

--VvgcNiIvNTQuhl0gJF53g8rS7CR2qjvek--



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