I'm working on a hack for dpkg to allow equivalent functionality to rpm
In my hacked dpkg there are directories: /etc/dpkg/postinst.d
/etc/dpkg/postrm.d /etc/dpkg/preinst.d /etc/dpkg/prerm.d
run-parts is used to run the scripts in those directories, with each script
taking a single parameter of the name of the package that is being installed,
The pre*.d scripts are run before the package provided pre* scripts. The
post*.d scripts are run after the package provided post* scripts.
I am thinking of having just /etc/dpkg/scripts.d and then having the scripts
have two parameters, one for the package name and the other for the operation.
Please let me know what you think.
Before anyone asks, I am not releasing my code yet. I have to do more
testing myself before I'll consider releasing it (and having non-standard
versions of dpkg floating around is not what we really want).
If you send email to me or to a mailing list that I use which has >4 lines
of legalistic junk at the end then you are specifically authorizing me to do
whatever I wish with the message and all other messages from your domain, by
posting the message you agree that your long legalistic sig is void.
To UNSUBSCRIBE, email to email@example.com
with a subject of "unsubscribe". Trouble? Contact firstname.lastname@example.org