ports/75348: Tomcat port overwrites server.xml config file
Manfred Riem
mnriem at gmail.com
Tue Dec 21 11:07:36 PST 2004
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 at gmail.com
On Tue, 21 Dec 2004 13:43:40 -0500, Brent Verner <brent at 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-java
> To unsubscribe, send any mail to "freebsd-java-unsubscribe at freebsd.org"
>
>
>
>
--
Manfred N. Riem
mnriem at gmail.com
More information about the freebsd-java
mailing list