Skip site navigation (1)Skip section navigation (2)
Date:      16 Sep 1998 07:37:11 +0900
From:      sada@e-mail.ne.jp
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/7940: make depended packages and index on demand
Message-ID:  <19980915223711.7256.qmail@sada.e-mail.ne.jp>

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

>Number:         7940
>Category:       ports
>Synopsis:       make depend packages and index on demand
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 15 15:40:00 PDT 1998
>Last-Modified:
>Originator:     SADA Kenji
>Organization:
Nagoya.Aichi.Japan
>Release:        FreeBSD 2.2.7-RELEASE i386
>Environment:

	FreeBSD 2.2.7-RELEASE i386
	bsd.port.mk: 1.287 1998/09/10

>Description:

	Two option flags which would be useful to make
	your own package-collection.

	 * BUILD_PACKAGE_AT_INSTALL_TIME

	If defined, `make package' would be automaticaly executed
	whenever `make install' is done.
	You can build all depended packages at once.

	 * REGISTER_PACKAGE_INDEX_AT_INSTALL_TIME

	If defined, build packages would be registered on the file
	`${PACKAGES}/INDEX'.

>How-To-Repeat:
>Fix:

--- bsd.port.mk.orig	Wed Sep 16 04:55:34 1998
+++ bsd.port.mk	Wed Sep 16 05:04:25 1998
@@ -1489,6 +1489,9 @@
 ${INSTALL_COOKIE}:
 	@cd ${.CURDIR} && ${MAKE} ${.MAKEFLAGS} build
 	@cd ${.CURDIR} && ${MAKE} ${.MAKEFLAGS} real-install
+.if defined(BUILD_PACKAGE_AT_INSTALL_TIME)
+	@cd ${.CURDIR} && ${MAKE} ${.MAKEFLAGS} real-package
+.endif
 ${PACKAGE_COOKIE}:
 	@cd ${.CURDIR} && ${MAKE} ${.MAKEFLAGS} install
 	@cd ${.CURDIR} && ${MAKE} ${.MAKEFLAGS} real-package
@@ -1507,6 +1510,12 @@
 real-install: _PORT_USE
 	@${ECHO_MSG} "===>  Installing for ${PKGNAME}"
 real-package: _PORT_USE
+.if defined(REGISTER_PACKAGE_INDEX_AT_INSTALL_TIME)
+	@${MAKE} ${.MAKEFLAGS} describe \
+	| ${CAT} - ${PACKAGES}/INDEX \
+	| sort -t '|' +1|uniq >${PACKAGES}/INDEX.tmp
+	${MV} ${PACKAGES}/INDEX.tmp ${PACKAGES}/INDEX
+.endif
 
 # Empty pre-* and post-* targets, note we can't use .if !target()
 # in the _PORT_USE macro
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message



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