[106729] trunk/dports/www/webdot/Portfile

ryandesign at macports.org ryandesign at macports.org
Thu Jun 6 13:25:06 PDT 2013


Revision: 106729
          https://trac.macports.org/changeset/106729
Author:   ryandesign at macports.org
Date:     2013-06-06 13:25:06 -0700 (Thu, 06 Jun 2013)
Log Message:
-----------
webdot: create the cache directory, with the right ownership

Modified Paths:
--------------
    trunk/dports/www/webdot/Portfile

Modified: trunk/dports/www/webdot/Portfile
===================================================================
--- trunk/dports/www/webdot/Portfile	2013-06-06 20:24:25 UTC (rev 106728)
+++ trunk/dports/www/webdot/Portfile	2013-06-06 20:25:06 UTC (rev 106729)
@@ -31,6 +31,12 @@
 
 require_active_variants path:bin/dot:graphviz tcl
 
+set www_user www
+if {${os.platform} == "darwin" && ${os.major} >= 9} {
+    set www_user _www
+}
+set www_group ${www_user}
+
 post-configure {
     reinplace "/^CGI-BIN_DIR=/s|=.*$|=${cgi_bin}|" ${worksrcpath}/Makefile
     reinplace "/^HTML_DIR=/s|=.*$|=${html_dir}/|" ${worksrcpath}/Makefile
@@ -41,16 +47,16 @@
     reinplace "/^PS2EPSI=/s|=.*$|=${prefix}/bin/ps2epsi|" ${worksrcpath}/Makefile
 }
 
-platform darwin {
-    post-configure {
-        set www_user www
-        if {${os.major} >= 9} {
-            set www_user _www
-        }
-        reinplace "/^HTTPD-USER-GROUP=/s|=.*$|=${www_user}:${www_user}|" ${worksrcpath}/Makefile
-    }
+post-configure {
+    reinplace "/^HTTPD-USER-GROUP=/s|=.*$|=${www_user}:${www_group}|" ${worksrcpath}/Makefile
 }
 
+destroot.keepdirs ${destroot}${prefix}/var/cache/webdot
+
+post-destroot {
+    xinstall -d ${destroot}${prefix}/var/cache/webdot -o ${www_user} -g ${www_group}
+}
+
 set www                 ${prefix}/www
 set html_dir            ${www}/htdocs
 set cgi_bin             ${www}/cgi-bin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130606/530d7514/attachment.html>


More information about the macports-changes mailing list