On May 27, 2012, at 8:19 AM, Bjarne D Mathiesen wrote: > Bradley Giesbrecht wrote: >> >> Apache2 violates mtree. This may be a good time to finally fix this. >> >> Something like only prefixed: >> http://wiki.apache.org/httpd/DistrosDefaultLayout#Gentoo_.28Apache_httpd_2.2.29: > > As far as I can see, we are presetly using this modification of > Apache httpd 2.2 default layout (apache.org source package): > > ServerRoot :: ${prefix}/apache2 > DocumentRoot :: ${prefix}/apache2/htdocs > Apache Config File :: ${prefix}/apache2/conf/httpd.conf > Other Config Files :: ${prefix}/apache2/conf/extra/ > ErrorLog :: ${prefix}/apache2/logs/error_log > AccessLog :: ${prefix}/apache2/logs/access_log > cgi-bin :: ${prefix}/apache2/cgi-bin > binaries (apachectl) :: ${prefix}/apache2/bin > start/stop :: ${prefix}/apache2/bin/apachectl > > How about this : > I think this brings it nicely into the mtree : > > ServerRoot :: ${prefix}/www/ > DocumentRoot :: ${prefix}/www/htdocs > Apache Config File :: ${prefix}/etc/apache2/conf/httpd.conf > Include Files :: ${prefix}/include/apache2 > Other Config Files :: ${prefix}/etc/apache2/conf/extra/ > Module Locations :: ${prefix}/lib/apache2/modules > ErrorLog :: ${prefix}/var/logs/apache2/error_log > AccessLog :: ${prefix}/var/logs/apache2/access_log > cgi-bin :: ${prefix}/www/cgi-bin > binary :: ${prefix}/sbin/httpd > start/stop :: ${prefix}/sbin/apachectl > apxs :: ${prefix}/bin/
Looks good. Is there a reason to not put all the binaries under bin or sbin?
I think if apache is configured to use ports above 2000 a normal user could
start and stop httpd with apachectl. A normal user could use apxs to build
something outside macports.
Maybe prefix/bin would be good for all executables?
And because we have are not installing all of apache2 into it's own prefix I
don't think we need the additional etc/apache2/conf subdir for Config Files.
Because you use ${prefix} in your example we might use ${name} as well:
ServerRoot :: ${prefix}/www/
DocumentRoot :: ${prefix}/www/htdocs
Apache Config File :: ${prefix}/etc/${name}/httpd.conf
Include Files :: ${prefix}/include/${name}
Other Config Files :: ${prefix}/etc/${name}/extra/
Module Locations :: ${prefix}/lib/${name}/modules
ErrorLog :: ${prefix}/var/logs/${name}/error_log
AccessLog :: ${prefix}/var/logs/${name}/access_log
cgi-bin :: ${prefix}/www/cgi-bin
binary :: ${prefix}/bin/httpd
start/stop :: ${prefix}/bin/apachectl
apxs :: ${prefix}/bin/apxs
Regards,
Bradley Giesbrecht (pixilla)
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ macports-dev mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev
