Porting question
Matthew Seaman
m.seaman at infracaninophile.co.uk
Mon Jan 25 17:24:12 UTC 2010
Larry Rosenman wrote:
> I've asked portmgr before, but still haven't found a decent way to do what I
> want, so let me post this publicly.
>
> I want to make the sysutils/lsof port fail early with a decent message if
> the kernel sources aren't loaded on the system.
>
> The most common question/problem report I get is when the lsof configure
> script fails due to a lack of the system sources.
>
> Ideas on how to do this cleanly in the port Makefile?
>
Can't you do something like this?
pre-everything:
@if [ ! -f /usr/src/sys/conf/newvers.sh ] ; then \
${ECHO_MSG} "==> Error: Can't find kernel sources" ; \
${FALSE} ; \
fi
(completely untested...)
Cheers,
Matthew
--
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
Kent, CT11 9PW
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 259 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20100125/f5d503fb/signature.pgp
More information about the freebsd-ports
mailing list