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 configurescript 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
signature.asc
Description: OpenPGP digital signature