[MacPorts] #8605: BUG: apache2 doesn't leave modified extra config files alone
MacPorts
trac at macosforge.org
Tue Mar 25 19:59:10 PDT 2008
#8605: BUG: apache2 doesn't leave modified extra config files alone
--------------------------------+-------------------------------------------
Reporter: wyuenho at gmail.com | Owner: imajes at macports.org
Type: defect | Status: new
Priority: Normal | Milestone: Port Bugs
Component: ports | Version:
Resolution: | Keywords:
--------------------------------+-------------------------------------------
Comment (by jmr at macports.org):
The squid port handles this by installing only *.conf.default, and
creating *.conf in post-activate only if they don't already exist:
{{{
post-activate {
# Make sure initial conf files are present and setup correctly
foreach f { squid.conf mime.conf } {
if {![file exists ${prefix}/etc/squid/${f}]} {
file copy ${prefix}/etc/squid/${f}.default \
${prefix}/etc/squid/${f}
}
}
}
}}}
--
Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/8605#comment:9>
MacPorts </projects/macports>
Ports system for Mac OS
More information about the macports-tickets
mailing list