From owner-freebsd-questions@FreeBSD.ORG Fri Oct 16 14:14:20 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4737F1065672 for ; Fri, 16 Oct 2009 14:14:20 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from dd12710.kasserver.com (dd12710.kasserver.com [85.13.134.233]) by mx1.freebsd.org (Postfix) with ESMTP id 06B568FC3A for ; Fri, 16 Oct 2009 14:14:19 +0000 (UTC) Received: from current.Sisis.de (cazador.sisis.de [193.31.11.193]) by dd12710.kasserver.com (Postfix) with ESMTP id 2685B1867074F for ; Fri, 16 Oct 2009 16:14:21 +0200 (CEST) Received: (from guru@localhost) by current.Sisis.de (8.14.3/8.14.3/Submit) id n9GEEIBb004353 for freebsd-questions@freebsd.org; Fri, 16 Oct 2009 16:14:18 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: current.Sisis.de: guru set sender to guru@unixarea.de using -f Date: Fri, 16 Oct 2009 16:14:17 +0200 From: Matthias Apitz To: freebsd-questions@freebsd.org Message-ID: <20091016141417.GA4328@current.Sisis.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 8.0-CURRENT (i386) Subject: print the PKGNAME of a port X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Oct 2009 14:14:20 -0000 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 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 - w http://www.unixarea.de/ Vote NO to EU The Lisbon Treaty: http://www.no-means-no.eu