Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Oct 2009 16:14:17 +0200
From:      Matthias Apitz <guru@unixarea.de>
To:        freebsd-questions@freebsd.org
Subject:   print the PKGNAME of a port
Message-ID:  <20091016141417.GA4328@current.Sisis.de>

Next in thread | Raw E-Mail | Index | Archive | Help

Hello,

For the ports in /usr/ports is there a way to print the resulting
PKGNAME of a given port, like:

# cd /usr/ports/x11/kde3
# make name
kde-3.5.10_2
#

for this test above I just added the following lines at the end of the
Makefile after the include line:

.include <bsd.port.mk>
name:
        @echo ${PKGNAME}

I have had a look into bsd.port.mk but could not see anythink like the
silly output (without making the port). Thanks

	matthias
-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <guru@unixarea.de> - w http://www.unixarea.de/
Vote NO to EU The Lisbon Treaty: http://www.no-means-no.eu



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20091016141417.GA4328>