On Saturday, February 9, 2002, at 10:45  AM, Peter O'Gorman wrote:

>>
>> That won't work with a shared fink folder. I pointed that out in my 
>> original mail I believe :)
> Yes, I really ought to learn to read...
>
> Fink could write to /sw/var/lib/dpkg/available directly (this isn't 
> going to be shared).
> Changing dpkg doesn't seem like the "right thing".


Changing the deb package database formats would probably be a bad idea.

Changing dpkg to have a system wide set of preinst postinst, and prerm 
scripts (Perhaps in a directory run with run-parts) that would be called 
at sensible times. It may even be accepted in the upstream sources, 
however I think they have other things to worry about like releasing 
debian 3.0.

How is this for an idea for what a darwin-5.2 psuedopackage might do.

Place a script in the global preinst script.d dir that does something 
like this.


#!/bin/sh

VERSION=5.2

case $(uname -s) in
Darwin)
     ;;
*)
     echo "Not a Darwin system" 1>&2
     echo darwin$VERSION deinstall | dpkg --set-selections
     exit 1
esac

instver=$(uname -r)

case $instver in
$VERSION)
     ;;
*)
     echo "Darwin version has changed. Re-Run apt-get upgrade" 1>&2
     echo darwin$VERSION deinstall | dpkg --set-selections
     echo darwin$instver install | dpkg --set-selections
     exit 1
esac

==============================
David Stanaway
Personal: [EMAIL PROTECTED]
Work: [EMAIL PROTECTED]


_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to