ports/103161: Add 'make version' to bsd.port.mk

Lars Engels lars.engels at 0x20.net
Mon Sep 11 20:50:27 UTC 2006


>Number:         103161
>Category:       ports
>Synopsis:       Add 'make version' to bsd.port.mk
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 11 20:50:23 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Lars Engels
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD maggie.bsd-geek.de 7.0-CURRENT FreeBSD 7.0-CURRENT #6: Mon Sep 11 21:18:11 CEST 2006 lars at maggie.bsd-geek.de:/usr/obj/usr/src/sys/MAGGIE i386


	
>Description:
When run in a port's directory, 'make version' shows the the port's name and version (${PKGNAME}), so no more searching in the Makefile is needed.
While I'm in ports.7, I added the description for 'make maintainer', too.
	
>How-To-Repeat:
	
>Fix:

	

--- make_version.diff begins here ---
--- bsd.port.mk.orig	Mon Aug 14 15:24:18 2006
+++ bsd.port.mk	Thu Aug 24 20:45:45 2006
@@ -2763,6 +2763,11 @@
 	@${ECHO_CMD} "${MAINTAINER}"
 .endif
 
+.if !target(version)
+version:
+	@${ECHO_CMD} "${PKGNAME}"
+.endif
+
 .if !target(check-makefile)
 check-makefile::
 	@${DO_NADA}
--- ports.7.orig	Thu Aug 24 20:49:25 2006
+++ ports.7	Mon Sep 11 22:38:51 2006
@@ -321,6 +321,10 @@
 Generate a one-line description of each port for use in the
 .Pa INDEX
 file.
+.It Cm maintainer
+Show e-mail address of the port's maintainer.
+.It Cm version
+Show version of the port.
 .It Cm index
 Create
 .Pa /usr/ports/INDEX ,
--- make_version.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list