Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jan 2010 17:23:50 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Larry Rosenman <ler@lerctr.org>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Porting question
Message-ID:  <4B5DD3A6.4010203@infracaninophile.co.uk>
In-Reply-To: <00d801ca9ddf$05054620$0f0fd260$@org>
References:  <00d801ca9ddf$05054620$0f0fd260$@org>

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

Larry Rosenman wrote:
> I've asked portmgr before, but still haven't found a decent way to do w=
hat I
> want, so let me post this publicly.
>=20
> I want to make the sysutils/lsof port fail early with a decent message =
if
> the kernel sources aren't loaded on the system.
>=20
> The most common question/problem report I get is when the lsof configur=
e
> script fails due to a lack of the system sources.=20
>=20
> Ideas on how to do this cleanly in the port Makefile?
>=20

Can't you do something like this?

pre-everything:
	@if [ ! -f /usr/src/sys/conf/newvers.sh ] ; then         \
	    ${ECHO_MSG} "=3D=3D> Error: Can't find kernel sources" ; \
	    ${FALSE} ;                                           \
	fi

(completely untested...)

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
                                                  Kent, CT11 9PW


--------------enigAB8712E00F5DF262556B79C4
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREIAAYFAktd060ACgkQ8Mjk52CukIxGYQCeJtaOdZGXaxbZo/a3KZAnSPEc
mc8AnjpU/Q8oJSs8RWwA//gEiLj7rUen
=B4Ef
-----END PGP SIGNATURE-----

--------------enigAB8712E00F5DF262556B79C4--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B5DD3A6.4010203>