From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on finch.gentoo.org X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DMARC_NONE,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=4.0.0 Received: from smtp08.iafrica.com (smtp08.iafrica.com [196.2.51.8]) by chiba.3jane.net (Postfix) with ESMTP id D8208EED5 for ; Mon, 19 Nov 2001 12:24:38 -0600 (CST) Received: from nosferatu.lan ([196.30.180.26]) by smtp08.iafrica.com (Sun Internet Mail Server sims.3.5.2000.03.23.18.03.p10) with ESMTP id <0GN2003O98E2MU@smtp08.iafrica.com> for gentoo-dev@gentoo.org; Mon, 19 Nov 2001 20:22:52 +0200 (SAT) Date: Mon, 19 Nov 2001 20:26:34 +0200 From: Martin Schlemmer Subject: Re: [gentoo-dev] Package configuration In-reply-to: <1006185046.339.0.camel@willow> To: Gentoo-Dev Message-id: <1006194396.28665.11.camel@nosferatu.lan> MIME-version: 1.0 X-Mailer: Evolution/0.99.0 (Preview Release) Content-type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-3KPoKCBv4VBGhBXuAQAz" References: <20011119100550.C147024@plato.zk3.dec.com> <1006185046.339.0.camel@willow> Sender: gentoo-dev-admin@gentoo.org Errors-To: gentoo-dev-admin@gentoo.org X-BeenThere: gentoo-dev@gentoo.org X-Mailman-Version: 2.0.6 Precedence: bulk Reply-To: gentoo-dev@gentoo.org List-Help: List-Post: List-Subscribe: , List-Id: Developer discussion list List-Unsubscribe: , List-Archive: X-Archives-Salt: 80f8479e-f145-4270-84cc-c6a2c2d72ad6 X-Archives-Hash: 2d583ee2d27f977ddef35c660e32b0f3 --=-3KPoKCBv4VBGhBXuAQAz Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mon, 2001-11-19 at 17:50, Geert Bevin wrote: > > Usually, portage addresses this by providing good defaults and then > > documentation for less standard configuration. If you need something t= o > > be executed (non-optionally) after merge, you can define a > > pkg_postinst() function in your ebuild. I think this addresses a large > > percentage of the cases without adding a more complex mechanism. >=20 > Problem is this example situation. I install postgres which creates the > default database by default. Then one day I want to upgrade and again a > default database is created and it overwrites the existing one .... > major catastrophy ! Having a setup script available and notifying the > user of its existance makes it easy to install a default setup without > having to wade through the manuals of all the software before being able > to use it and protects an unwary user from accidentally erasing or > overwriting existing data files. >=20 What about the setup script (or pkg_postinst() ) checking if the default database exist before creating it ? > > Some sort of post-install user interaction has been discussed, with > > everything from an interactive config GUI to listing recommended > > documentation. This may be written eventually, but the set of possible > > solutions is large, diverse, and heavily dependant on personal taste, > > all of which tend to slow down the actual writing of code. >=20 > Imho, starting with basic bash scripts is a good approach. When text ui > and gui become available additional support for those can be added > later. >=20 >=20 > --=20 > Geert Bevin > the Leaf sprl/bvba > "Use what you need" Pierre Theunisstraat 1/47 > http://www.theleaf.be 1030 Brussels > gbevin@theleaf.be Tel & Fax +32 2 241 19 98 >=20 > _______________________________________________ > gentoo-dev mailing list > gentoo-dev@gentoo.org > http://lists.gentoo.org/mailman/listinfo/gentoo-dev --=20 Martin Schlemmer Gentoo Linux Developer, Desktop Team Developer Cape Town, South Africa --=-3KPoKCBv4VBGhBXuAQAz Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQA7+U7alsNeMtCTD6kRAmiOAJ9oagLdd+5UxvUpqeHVqOfoxH7Q0QCeMQL6 qZkYVYcNlk5zygXCvbSGyRk= =D3SD -----END PGP SIGNATURE----- --=-3KPoKCBv4VBGhBXuAQAz--