From owner-freebsd-questions Fri Jun 12 07:27:34 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA18705 for freebsd-questions-outgoing; Fri, 12 Jun 1998 07:27:34 -0700 (PDT) (envelope-from owner-freebsd-questions@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 HAA18594 for ; Fri, 12 Jun 1998 07:27:05 -0700 (PDT) (envelope-from jaitken@dimension.net) Received: (from jaitken@localhost) by gizmo.dimension.net (8.8.8/8.8.8) id KAA06672 for questions@freebsd.org; Fri, 12 Jun 1998 10:27:00 -0400 (EDT) From: Jeff Aitken Message-Id: <199806121427.KAA06672@gizmo.dimension.net> Subject: FreeBSD packages To: questions@FreeBSD.ORG Date: Fri, 12 Jun 1998 10:26:59 -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-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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-questions" in the body of the message