Is staging a port really this simple?

Matthew Seaman m.seaman at
Tue May 27 06:07:32 UTC 2014

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.



Dr Matthew J Seaman MA, D.Phil.

JID: matthew at

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1036 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the freebsd-ports mailing list