Skip site navigation (1)Skip section navigation (2)
Date:      27 Jan 2006 16:34:35 -0200
From:      Jean Milanez Melo <jmelo@freebsdbrasil.com.br>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/92434: Patch: Mk/bsd.port.mk automatic show pkg-message
Message-ID:  <20060127183435.25252.qmail@capeta.freebsdbrasil.com.br>
Resent-Message-ID: <200601271840.k0RIe36h033760@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         92434
>Category:       ports
>Synopsis:       Patch: Mk/bsd.port.mk automatic show pkg-message
>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:   Fri Jan 27 18:40:02 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Jean Milanez Melo
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD capeta.freebsdbrasil.com.br 5.3-STABLE FreeBSD 5.3-STABLE #5: Wed Mar 2 15:03:19 BRT 2005 eksffa@capeta.freebsdbrasil.com.br:/usr/obj/usr/src/sys/CAPETA i386


	
>Description:
	
- I made a patch to do "${CAT} ${PKGMESSAGE}" automatically if the pkg-message exists on port.
- If the portmgr's approve my idea i'm avaliable to make a big patch with changes on all ports.
>How-To-Repeat:
	
>Fix:

	

--- bsd.port.mk.diff begins here ---
--- bsd.port.mk.orig	Fri Jan 27 15:45:11 2006
+++ bsd.port.mk	Fri Jan 27 15:48:12 2006
@@ -3788,7 +3788,7 @@
 				check-already-installed
 _INSTALL_SUSEQ= check-umask install-mtree pre-su-install \
 				pre-su-install-script do-install install-desktop-entries \
-				post-install post-install-script add-plist-info \
+				post-install post-install-script show-pkgmessage add-plist-info \
 				add-plist-docs add-plist-post install-rc-script compress-man \
 				run-ldconfig fake-pkg security-check
 _PACKAGE_DEP=	install
@@ -5425,5 +5425,12 @@
 .endif
 .endif
 
+.endif
+
+.if !target(show-pkgmessage)
+show-pkgmessage:
+	@if [ -f ${PKGMESSAGE} ]; then \
+	${CAT} ${PKGMESSAGE}; \
+	fi
 .endif
 # End of post-makefile section.
--- bsd.port.mk.diff ends here ---


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



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