[linux-l] post-install Hook fuer ein bestimmtest Paket

Pascal Volk linux-l at edelhost.de
So Sep 30 13:15:03 CEST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hallo zusammen,

gibt es neben 'Paket selber bauen' noch eine andere Lösung für das
Debiansche Paketmanagement, um nach der Installation oder dem Update
eines bestimmten Paktes eine bestimmte Aktion automatisch ausführen
zu lassen?

Ich kam bisher nur so weit, folgendes in die /etc/apt/apt.conf
einzufügen:
  DPkg
  {
    Post-Invoke {"if $BEDINGUNG; then $HANDLUNG; else exit 0; fi";};
  }

Das Problem daran ist, dass bei jeder/jedem De-/Installation/Update,
eines beliebigen Pakets, die Handlung ausgeführt wird, falls die
Bedingung war ist.
Ziel ist es, nur eine einzige Datei eines bestimmten Pakets in ein
bestimmtes Verzeichnis zu kopieren, aber nur dann, wenn das bestimmte
Paket aktualisiert wird.

Gruß
Pascal
- -- 
rm -Rfv /tmp/../ && echo "are
you sure???"

Die BeLUG im IRC:
irc://irc.freenode.net/#belug
 ____ ____ ____ ____ ____ _________ ____ ____ ____ ____ ____ ____ 
 ||/ |||j |||o |||i |||n |||       |||# |||b |||e |||l |||u |||g ||
 ||__|||__|||__|||__|||__|||_______|||__|||__|||__|||__|||__|||__||
 |/__\|/__\|/__\|/__\|/__\|/_______\|/__\|/__\|/__\|/__\|/__\|/__\|

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFG/4U3Nx2k6gsBqqkRApXpAJ9/JsELimCzaTLTSHEZKzGsRMzkbwCgxNz7
yob4GnFeibismyfHzHDeMho=
=Q9Zx
-----END PGP SIGNATURE-----



Mehr Informationen über die Mailingliste linux-l