From owner-freebsd-ports Wed Jun 9 2:35: 8 1999 Delivered-To: freebsd-ports@freebsd.org Received: from firewall2.lehman.com (firewall.Lehman.COM [192.147.65.67]) by hub.freebsd.org (Postfix) with ESMTP id 6FFD614D25 for ; Wed, 9 Jun 1999 02:35:06 -0700 (PDT) (envelope-from nclayton@lehman.com) Received: from relay.messaging-svcs2.lehman.com by firewall2.lehman.com (8.8.6/8.8.6) id FAA02773; Wed, 9 Jun 1999 05:35:05 -0400 (EDT) Received: from lonmailhost.lehman.com by relay.messaging-svcs2.lehman.com (8.9.3/8.8.5) id FAA04027; Wed, 9 Jun 1999 05:34:34 -0400 (EDT) Received: by lonmailhost.lehman.com (SMI-8.6/Lehman Bros. V1.5) id KAA09849; Wed, 9 Jun 1999 10:34:33 +0100 Message-ID: <19990609103433.J22307@lehman.com> Date: Wed, 9 Jun 1999 10:34:33 +0100 From: nclayton@lehman.com To: ports@freebsd.org Subject: Automatic handling of pkg/MESSAGE and pkg/INSTALL; ${LOCALBASE} Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i Organization: Lehman Brothers Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi folks, I'm not a particularly prolific porter, and I only maintain a couple of ports useful to the Doc. Proj., so I don't keep a close eye on this mailing list. I'm reading the porting documentation at http://www.freebsd.org/handbook/porting.html and a couple of oddities struck me. If you go and read the description of pkg/MESSAGE, you see that it is only automatically displayed if the user is adding the package, and not if they do "make install" on the port. If you want to display it during the port you need to do something like; post-install: @${CAT} pkg/MESSAGE which strikes me as a little odd. Surely if the file exists then the port should display it at install time anyway, without (presumably) a couple of hundred ports all duplicating the above code in their Makefiles. Similarly, pkg/INSTALL, which is only automatically run by the package; to get that functionality in the port you need to do; pre-install: @pkg/INSTALL ${PKGNAME} PRE-INSTALL [...] post-install: @pkg/INSTALL ${PKGNAME} POST-INSTALL Surely the above would make more sense, and then the description changes to something like; If you want to have certain commands run before or after the port is installed (either with "make install", or by "pkg_add ", place them in a script called pkg/INSTALL. This script will receive two parameters . . . Finally, ${LOCALBASE}. The textproc/docproj port has a number of dependencies on files/directories (as opposed to programs) that are currently written as; ${PREFIX}/share/sgml/iso8879:${PORTSDIR}/textproc/iso8879 Would I be right in thinking that ${PREFIX} in this example should really be ${LOCALBASE}? Thanks, N -- --+==[ Systems Administrator, Year 2000 Test Lab, Lehman Brothers, Inc. ]==+-- --+==[ 1 Broadgate, London, EC2M 7HA 0171-601-0011 x5514 ]==+-- --+==[ Year 2000 Testing: It's about time. . . ]==+-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message