Date: Tue, 30 May 2000 13:50:23 -0400 From: Will Andrews <andrews@technologist.com> To: papowell@astart.com Cc: freebsd-ports@FreeBSD.ORG Subject: Re: A possible flaw and headache in the PORTS philosophy Message-ID: <20000530135023.B21627@argon.gryphonsoft.com> In-Reply-To: <200005301734.KAA02193@h4.private>; from papowell@astart.com on Tue, May 30, 2000 at 10:34:30AM -0700 References: <200005301734.KAA02193@h4.private>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, May 30, 2000 at 10:34:30AM -0700, papowell@astart.com wrote: > Summary: > > You need a way at PACKAGE generation time to tell the package > creation stuff to put some 'postinstall files' into the package. Do this with a post-install target in the Makefile. post-install: [ install some files ] Then just put the files in pkg/PLIST. > You need a way at PACKAGE install time to tell the POST script > that the files are located at a specific location. What "POST script" are you talking about? > You need a way at PACKAGE removal time to tell the PACKAGE stuff > that the 'postinstall files' are to be ignored and not to > indicate an error if they cannot be found/removed. Simple fix: don't put them in the PLIST. > Being the anal retentive person that I am, I want to TEST the > installation automagically, both for the ports_from_source and > the pkg_add stuff. There is a test process described on: http://www.FreeBSD.org/handbook/porting.html Which I assume you read before you tried porting LPRng. > The problem I am encountering is that the current set of package > targets/support in the Makefile do not lend themselves to packages > that require 'transient' files to be put into a package, and then > to be installed by the POST package script. Files that should not be removed by the packaging system shouldn't go in the PLIST. > Here is an example. The LPRng software uses a couple of configuration > files, /etc/printcap, /etc/lpd.conf, /etc/lpd.perms which MUST > be put into these locations, but only if the original files are not > present. This (can be? should be?) done by creating some 'prototype' > files for package use, and then when you run 'pkg_add' have the POST > script in the package move them to the appropriate locations. Put examples of these files in ${PREFIX}/etc, and notify the user that they must merge them into their /etc counterparts. -- Will Andrews <andrews@technologist.com> GCS/E/S @d- s+:+>+:- a--->+++ C++ UB++++ P+ L- E--- W+++ !N !o ?K w--- ?O M+ V-- PS+ PE++ Y+ PGP+>+++ t++ 5 X++ R+ tv+ b++>++++ DI+++ D+ G++>+++ e->++++ h! r-->+++ y? 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?20000530135023.B21627>