www portfiles - inconsistent settings

Bjarne D Mathiesen macintosh at mathiesen.info
Wed May 30 08:36:57 PDT 2012


I'm seeing som inconsistensies in the naming conventions as well as the
path at which ports that install web-sites into ${prefix}/www

_phpmyadmin_ :
set docroot         ${destroot}${prefix}/www/${name}
destroot {
    xinstall -d -m 0755 ${docroot}
    eval copy [glob ${worksrcpath}/*] ${docroot}
}

_roundcubemail_ :
destroot {
    set docpath ${destroot}${prefix}/www/${name}
    xinstall -m 755 -d ${docpath}/html
    eval file copy [glob ${workpath}/${distname}/*] ${docpath}/html
}

_drupal7_ :
set docroot ${destroot}${prefix}/www/data
destroot {
  xinstall -d -m 0755 ${docroot}/drupal7
  eval file copy [glob ${worksrcpath}/*] ${docroot}/drupal7
  eval file copy ${worksrcpath}/.htaccess ${docroot}/drupal7
}

_apache2_ :
    datadir:        ${prefix}/www+
    htdocsdir:      ${datadir}/htdocs

some we've got the following inconsistensies:
1) docroot / docpath
   which one do we use ???
2) defining doc-root/-path in-/out-side destroot
   should they be defined inside or outside ???
   I'm tending to outside because of what happens in phpmyadmin
3) we've got:
       /www/${name}
       /www/${name}/html
       /www/data/${name}
       /www/${name}/htdocs
   these ought to brought in line.
   My suggestion is : /www/${name}/html

-- 
Bjarne D Mathiesen
København N ; Danmark ; Europa
----------------------------------------------------------------------
denne besked er skrevet i et totalt M$-frit miljø
MacOS X 10.7.3 Lion ; 2.8GHz Intel Core i7 ; 16GB 1067MHz DDR3


More information about the macports-dev mailing list