From owner-freebsd-questions@FreeBSD.ORG Fri Sep 5 07:59:31 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3FD8016A4BF; Fri, 5 Sep 2003 07:59:31 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 47DFB43FF7; Fri, 5 Sep 2003 07:59:28 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) h85EwEQr080109 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 5 Sep 2003 15:59:16 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)h85EwEPO080108; Fri, 5 Sep 2003 15:58:14 +0100 (BST) (envelope-from matthew) Date: Fri, 5 Sep 2003 15:58:14 +0100 From: Matthew Seaman To: Heinrich Rebehn Message-ID: <20030905145814.GB79611@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Heinrich Rebehn , ports@freebsd.org, freebsd-questions References: <3F586C9A.1010805@ant.uni-bremen.de> <20030905111001.GA77412@happy-idiot-talk.infracaninophile.co.uk> <3F58773F.6040309@ant.uni-bremen.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Pd0ReVV5GZGQvF3a" Content-Disposition: inline In-Reply-To: <3F58773F.6040309@ant.uni-bremen.de> User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-11.4 required=5.0 tests=AWL,BAYES_00,EMAIL_ATTRIBUTION,IN_REP_TO,PGP_SIGNATURE_2, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MUTT autolearn=ham version=2.55 X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: ports@freebsd.org cc: freebsd-questions Subject: Re: xdm config files overwritten after upgrading Xfree86-clients from ports X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Sep 2003 14:59:31 -0000 --Pd0ReVV5GZGQvF3a Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 05, 2003 at 01:45:03PM +0200, Heinrich Rebehn wrote: > Matthew Seaman wrote: > >However, I just keep a backup copy of the /usr/X11R6/lib/X11/xdm > >directory handy: > > > > # cd /usr/X11R6/lib/X11/ > > # rsync -avx --delete xdm/ xdm.bak/ > > > > Cheers, > > > > Matthew > > >=20 > Ok, this would help for xdm. I wonder however, how many other packages ar= e=20 > out there with similar behaviour and what other directories i should have= a=20 > copy of handy. >=20 > Or, to put it this way: I would like a port/package system that i can rel= y=20 > on :-) In practice, this really doesn't bite port/package users very often. The Porter's Handbook states: If your port requires some configuration files in PREFIX/etc, do not just install them and list them in pkg-plist. That will cause pkg_delete to delete files carefully edited by the user and a new installation to wipe them out. Instead, install sample files with a suffix (filename.sample will work well) and print out a message pointing out that the user has to copy and edit the file before the software can be made to work. (http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/dads-con= fig.html) which perhaps should be generalized to configuration files installed anywhere, rather than just under PREFIX/etc. Of all the ports I have installed, which is several hundred encorporating general desktop usage, web serving, databases, etc., the only ones I've had problems with regarding trashing my original configuration files are XFree86-4-clients and the Horde, Imp, Turba etc. group of web apps. (These last, to be fair, always preserve my config files as .previous and updates do tend to involve non-compatible changes to the configuration file contents.) The only other Gotcha! of this type is when a /usr/local/etc/rc.d startup script gets changed to the new rc.subr(8) style. Previously those scripts were generally held to be configurable files and you had to copy the sample file into place, edit it and make sure it was executable before the service would be set up to auto-start on reboot. With the new rc_subr style, the script doesn't need to be edited, but you generally have to add some lines to /etc/rc.conf to enable the service. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --Pd0ReVV5GZGQvF3a Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/WKSGdtESqEQa7a0RAmVxAJ9o5Xs6MyJgyHs5qYj+XSe4tOeQaQCfQXBX r32qqxCznZaNjYAwbrAax2o= =wm5h -----END PGP SIGNATURE----- --Pd0ReVV5GZGQvF3a--