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

Hi Malte,

On 25.03.2012 14:29, Malte Forkel wrote:
> Actually, I had read those before my post. I'm afraid I still don't
> see where they describe how to handle an "extra" script like the
> one I'm thinking about.

Well you covered the problems pretty well already. To use such a
library, it must be guaranteed to be present on your system. You can
achieve that by depending (or even pre-depending if you need
preinst/prerm scripts) but there is no guarantee at all for
postrm/postinst scripts.

Once you realized that, you can think how to make it available to your
package. There your solution to depend on another package sounds
feasible (and, well, over-engineered).

As another alternative which comes me in mind is a pseudo-shared
library. You would put the common functions into
debian/maintscripts-common and copy its contents at build time to a
defined position in your maintainer script (e.g. just like debhelper
does with #DEBHELPER#).


- -- 
with kind regards,
Arno Töll
IRC: daemonkeeper on Freenode/OFTC
GnuPG Key-ID: 0x9D80F36D
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJPbxFEAAoJEMcrUe6dgPNtXuQP/jICuWA8nTt9/B01pRuPGro5
Ydboc4UnqgVSD+LAdN+nr0HplBGdJRc/TXeFD0zTcy/JePbgCBAvWJd9aOMZ7KUl
dD9hj8abxSb2uLQBZq1cJycGkowZ9x9FUf8j2c8g9xKvWao2ZGGy4TX+PjCskhK2
Oux7FWF59pamn4nsfq24wRIe3QHPiTB/LCET/cSHWXY7Q/pordmRnOPwu6GYA5jV
Pylx194jAyDh722I724DLeQUTXNLttLcE4sYEGF8gbJeIjwceGYflaa1mWKLHmAx
sFo6MARZh20sijZW0dzJ9A+2d00VGmc9ASxr6szlVKwkO9wXo+aeNDu7yLtWRKCK
szWWR2pKwHZJT71150noGMRyq4W6H/LSTdGDna8aq4SNQ4Nt1OezGxlRwhGxayZ6
e4sX0S/DEiustxqG5jF5P1W8hNDxtyn+EcwRKCqcyQsuuevxAhElg9MgomDb/PlL
YDNrht7FYzbum0fllDTCjYMebAh/hFA2mXNAa6keel/H55Fx92d2OWxVAaGvaJP9
EYlvjJBzSmx+oRbT9LWdiN5Cy9eMkMvClQXFqE3EUR0mw7NqJxie8lKjobU7CCey
tOloiLv4fb3DLPLyowYU99ZhXPqXU5snwpoa6w6BjSDNqlQHDFSIO+7dejUMVe4O
JbEpk36kY3GYNt1QIjAd
=UUuC
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4f6f1144.2020...@toell.net

Reply via email to