From owner-freebsd-java@FreeBSD.ORG Tue Dec 21 19:07:36 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 726F616A4CE for ; Tue, 21 Dec 2004 19:07:36 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id C924443D1D for ; Tue, 21 Dec 2004 19:07:35 +0000 (GMT) (envelope-from mnriem@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so357520wra for ; Tue, 21 Dec 2004 11:07:34 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=InEDgs1wjagaOVOizp7bhPg1RqVFgJB3hUVOTN6NdM/GkGsth56PvnwEgBkKKGu9++bUNKJ4LtO6VVHB3iMjvjhsAU5E+xFSR8+SvUBt1JygTNJ+v9ee41LcG8lsXOHg2M6Zn6zO06XLV/XdgvGjb1d5JO7Pfeu7PQ419xKEzNE= Received: by 10.54.36.77 with SMTP id j77mr702779wrj; Tue, 21 Dec 2004 11:07:34 -0800 (PST) Received: by 10.54.10.23 with HTTP; Tue, 21 Dec 2004 11:07:33 -0800 (PST) Message-ID: <37919c31041221110775dc0396@mail.gmail.com> Date: Tue, 21 Dec 2004 13:07:33 -0600 From: Manfred Riem To: Brent Verner In-Reply-To: <20041221184340.GA14170@rcfile.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <200412211740.iBLHeUcw090127@freefall.freebsd.org> <20041221184340.GA14170@rcfile.org> cc: Kang Liu cc: freebsd-java@freebsd.org Subject: Re: ports/75348: Tomcat port overwrites server.xml config file X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Manfred Riem List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Dec 2004 19:07:36 -0000 Why not use server.xml.sample for the original version? That way one never has to worry ;) And it is the same scheme as with rc scripts. Kind regards, Manfred N. Riem mnriem@gmail.com On Tue, 21 Dec 2004 13:43:40 -0500, Brent Verner wrote: > All, > > Would it help to create a script like the attached (I'd > call it install-port-conf or install-conf)? What this would > do (should you remove the echo from the cp lines...) is > check for the currently installed package from ${PKGORIGIN} > and check to see if the file to be installed has been modified > from the original distributed file. If the user has modified > it, then we'll leave it alone and create the new file as > ${FILE}.new. If the user hasn't modified it, copy the old > file to ${FILE}.old and install the new ${FILE} > > From the makefile it might be used as follows: > > INSTALL_CONF=/path/to/install-conf # probably shipped in port files > # ... > do-install: > ${INSTALL_CONF} ${PKGORIGIN} ${WRKDIR}/server.xml ${APP_HOME}/conf/server.xml > ${INSTALL_CONF} ${PKGORIGIN} ${WRKSRC}/web.xml ${APP_HOME}/conf/web.xml > > Of course, the attached script would need to be completed. The only > thing it does reliably is tell you if a previously installed version > of a file to be installed was modified by the user. > > Comments? > > brent > > > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" > > > > -- Manfred N. Riem mnriem@gmail.com