From owner-freebsd-hackers Mon Jun 15 08:35:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA28956 for freebsd-hackers-outgoing; Mon, 15 Jun 1998 08:35:06 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from gizmo.dimension.net (gizmo.dimension.net [209.12.7.20]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA28928 for ; Mon, 15 Jun 1998 08:34:58 -0700 (PDT) (envelope-from jaitken@dimension.net) Received: (from jaitken@localhost) by gizmo.dimension.net (8.8.8/8.8.8) id LAA15512 for freebsd-hackers@freebsd.org; Mon, 15 Jun 1998 11:34:42 -0400 (EDT) From: Jeff Aitken Message-Id: <199806151534.LAA15512@gizmo.dimension.net> Subject: FreeBSD packages (fwd) To: freebsd-hackers@FreeBSD.ORG Date: Mon, 15 Jun 1998 11:34:42 -0400 (EDT) Reply-to: jaitken@dimension.net X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, I sent the following message to -questions but got no replies. I'm hoping someone here can help answer the question so I don't have to go digging through the pkg_add/pkg_create source. --Jeff > When creating a FreeBSD package that replaces one or more files > which already exist on the system, you can use the 'preserve' > option in the packing list file to save files which would be > overwritten. These saved files are restored when the package is > removed. > > However, I can't seem to find out what the name of the saved command > is _from within my package_. I can see that if I replace > /usr/bin/foo, the original /usr/bin/foo is renamed to > /usr/bin/.foo.PACKAGENAME.backup. > > Can I rely on this naming scheme, or is there a programatic way of > finding out what a file was renamed to from within a package (e.g., > in an install script or somesuch)? > > Alternatively, can I get this information out of any of the pkg_??? > commands? I have tried most everything in the man pages, but no > luck so far. > -- Jeff Aitken jaitken@dimension.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message