From owner-freebsd-ports Fri Jun 2 19:53: 9 2000 Delivered-To: freebsd-ports@freebsd.org Received: from shale.csir.co.za (shale.csir.co.za [146.64.46.5]) by hub.freebsd.org (Postfix) with ESMTP id DD3CF37B546 for ; Fri, 2 Jun 2000 19:53:04 -0700 (PDT) (envelope-from reg@shale.csir.co.za) Received: from C992631-A.pinol1.sfba.home.com (C992631-A.pinol1.sfba.home.com [24.12.58.155]) by shale.csir.co.za (8.9.3/8.9.3) with ESMTP id EAA71612; Sat, 3 Jun 2000 04:52:55 +0200 (SAT) (envelope-from reg@shale.csir.co.za) Received: (from reg@localhost) by C992631-A.pinol1.sfba.home.com (8.9.3/8.9.3) id TAA91124; Fri, 2 Jun 2000 19:52:36 -0700 (PDT) (envelope-from reg) Date: Fri, 2 Jun 2000 19:52:36 -0700 From: Jeremy Lea To: papowell@astart.com Cc: freebsd-ports@FreeBSD.ORG Subject: Re: A possible flaw and headache in the PORTS philosophy Message-ID: <20000602195236.G302@shale.csir.co.za> Mail-Followup-To: Jeremy Lea , papowell@astart.com, freebsd-ports@FreeBSD.ORG References: <200005301734.KAA02193@h4.private> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <200005301734.KAA02193@h4.private>; from papowell@astart.com on Tue, May 30, 2000 at 10:34:30AM -0700 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, On Tue, May 30, 2000 at 10:34:30AM -0700, papowell@astart.com wrote: > 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. The normal way that this is done is to install a set of sample files (with a .sample) extension, and place these in the PLIST (so that they go into /usr/local). Then add some lines in the PLIST like this (not tested): @exec if [ ! -f /etc/printcap ]; then cp %D/etc/printcap.sample /etc/printcap @unexec if [ cmp %D/etc/princap.sample /etc/printcap ]; then rm /etc/printcap You get the picture? Regards, -Jeremy -- FreeBSD - Because the best things in life are free... http://www.freebsd.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message