[prev in list] [next in list] [prev in thread] [next in thread]
List: freebsd-java
Subject: Re: ports/75348: Tomcat port overwrites server.xml config file
From: Manfred Riem <mnriem () gmail ! com>
Date: 2004-12-21 19:07:33
Message-ID: 37919c31041221110775dc0396 () mail ! gmail ! com
[Download RAW message or body]
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
_______________________________________________
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"
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic