[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Package maintainer scripts



On Mon, Jul 12, 1999 at 05:25:38PM +0200, Jerome Marant wrote:
> Can I find somewhere skeletons for postinst, preinst, postrm and prerm 
> scripts so avoiding the whole rewriting that leads to many bugs ?

There are no skeletons, because those scripts are used for many purposes.
Many packages don't need them at all and many packages have differing
requirements on what a postinst should do.  So, really, all you can do is to
bake your own and go shopping for reusable parts from others' scripts.

Try http://www.debian.org/~srivasta/rules/ .  You can also go and read the
source to other packages that have approximately what you want.

-- 
%%% Antti-Juhani Kaijanaho % gaia@iki.fi % http://www.iki.fi/gaia/ %%%

   "... memory leaks are quite acceptable in many applications ..."
    (Bjarne Stroustrup, The Design and Evolution of C++, page 220)


Reply to: