Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Dec 2004 13:07:33 -0600
From:      Manfred Riem <mnriem@gmail.com>
To:        Brent Verner <brent@rcfile.org>
Cc:        freebsd-java@freebsd.org
Subject:   Re: ports/75348: Tomcat port overwrites server.xml config file
Message-ID:  <37919c31041221110775dc0396@mail.gmail.com>
In-Reply-To: <20041221184340.GA14170@rcfile.org>
References:  <200412211740.iBLHeUcw090127@freefall.freebsd.org> <20041221184340.GA14170@rcfile.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <brent@rcfile.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37919c31041221110775dc0396>