Date: Mon, 15 Jun 1998 11:34:42 -0400 (EDT) From: Jeff Aitken <jaitken@dimension.net> To: freebsd-hackers@FreeBSD.ORG Subject: FreeBSD packages (fwd) Message-ID: <199806151534.LAA15512@gizmo.dimension.net>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806151534.LAA15512>