Is staging a port really this simple?
Matthew Seaman
m.seaman at infracaninophile.co.uk
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.
Cheers,
Matthew
--
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey
JID: matthew at infracaninophile.co.uk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1036 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20140527/072f0a34/attachment.sig>
More information about the freebsd-ports
mailing list