Date: Fri, 2 Jun 2000 19:52:36 -0700 From: Jeremy Lea <reg@FreeBSD.ORG> 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> 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
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000602195236.G302>