From owner-freebsd-ports@FreeBSD.ORG Thu May 13 18:15:17 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D849716A4D0 for ; Thu, 13 May 2004 18:15:17 -0700 (PDT) Received: from basement.kutulu.org (pcp03610121pcs.longhl01.md.comcast.net [68.49.239.235]) by mx1.FreeBSD.org (Postfix) with ESMTP id BDB5E43D5C for ; Thu, 13 May 2004 18:15:14 -0700 (PDT) (envelope-from kutulu@kutulu.org) Received: from wombat.localnet (wombat.localnet [192.168.69.3]) by basement.kutulu.org (Postfix) with ESMTP id BA8F9A93E; Thu, 13 May 2004 21:15:13 -0400 (EDT) Received: by wombat.localnet (Postfix, from userid 1001) id 95C36B827; Thu, 13 May 2004 21:15:13 -0400 (EDT) Date: Thu, 13 May 2004 21:15:13 -0400 From: Michael Edenfield To: Ben Bangert Message-ID: <20040514011513.GA51312@wombat.localnet> Mail-Followup-To: Ben Bangert , Lars.Koeller@Uni-Bielefeld.DE, ports@FreeBSD.org References: <7DEC7598-A53D-11D8-AFB0-0003937C4014@knowledgetap.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PNTmBPCT7hxwcZjr" Content-Disposition: inline In-Reply-To: <7DEC7598-A53D-11D8-AFB0-0003937C4014@knowledgetap.com> X-Mailer: Mutt http://www.mutt.org/ X-Accept-Language: en X-PGP-Key: http://www.kutulu.org/pgp/kutulu.asc X-PGP-Fingerprint: 1CE0 3C31 7013 D529 406D 37DC 09CC CD84 A46C 878F User-Agent: Mutt/1.5.6i cc: ports@FreeBSD.org cc: Lars.Koeller@Uni-Bielefeld.DE Subject: Re: FreeBSD Port: bacula-1.32f5 updating destroys prior bacula conf files X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 May 2004 01:15:18 -0000 --PNTmBPCT7hxwcZjr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Ben Bangert [040513 20:28]: > Ummmmm >=20 > I ran portupgrade the other day on bacula. Christ was that a mistake. I= =20 > had the absurd idea that as portupgrade has always done with every port= =20 > thus upgraded, it would save a copy of the conf files for the port.=20 > Prolly to .old or something. If upgrading the port removed your config files, then the port is most likely to blame, not portupgrade. The only backups (AFAIK) that portupgrade keeps are old shared libraries, and if requested, a backup of the old packages. The way most ports work (and SHOULD work), the port installs a "sample" copy of the config files as filename.conf.{sample,dist,default,etc}. If there is no live copy of the config file present, and a config file is required, this sample is copied over. Since the live config file is never part of the pkg-plist, it doesn't get removed during a pkg_delete or make deinstall. The bacula port looks like it does the exact opposite, for some reason. It includes the following in it's post-install target: if [ -f ${PREFIX}/etc/bconsole.conf.new ]; then \ ${ECHO_CMD} "etc/console.conf.new" >> ${TMPPLIST}; \ elif [ -f ${PREFIX}/etc/bconsole.conf ]; then \ ${MV} ${PREFIX}/etc/bconsole.conf ${PREFIX}/etc/bconsole.co= nf.sample; \ ${ECHO_CMD} "etc/bconsole.conf.sample" >> ${TMPPLIST}; \ fi If I'm reading that correctly, if there's an existing config file it will get moved out of the way on upgrade, and then (since it's now in the pkg-plist), REMOVED on uninstall. =20 --Mike --PNTmBPCT7hxwcZjr Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFApB2hCczNhKRsh48RAsuMAJ9wTih7dODvESfS5LVBSkfcxxuIuwCgrJDo H93nZXdw8M99zstbr245wso= =3SLt -----END PGP SIGNATURE----- --PNTmBPCT7hxwcZjr--