[55559] trunk/dports/net/dnetc/Portfile

jmr at macports.org jmr at macports.org
Thu Aug 13 04:21:36 PDT 2009


Revision: 55559
          http://trac.macports.org/changeset/55559
Author:   jmr at macports.org
Date:     2009-08-13 04:21:35 -0700 (Thu, 13 Aug 2009)
Log Message:
-----------
dnetc: update to 2.9105.511b, get correct distfile on x86 (#11119)

Modified Paths:
--------------
    trunk/dports/net/dnetc/Portfile

Modified: trunk/dports/net/dnetc/Portfile
===================================================================
--- trunk/dports/net/dnetc/Portfile	2009-08-13 11:16:25 UTC (rev 55558)
+++ trunk/dports/net/dnetc/Portfile	2009-08-13 11:21:35 UTC (rev 55559)
@@ -3,7 +3,9 @@
 PortSystem      1.0
 
 name            dnetc
-version         2.9010.495
+version         2.9105.511b
+set branch      [join [lrange [split ${version} .] 0 1] .]
+set minor       [lindex [split ${version} .] end]
 categories      net
 maintainers     nomaintainer
 description     distributed.net client
@@ -20,12 +22,26 @@
 
 homepage        http://distributed.net/
 platforms       darwin
-distfiles       dnetc495-macosx-ppc.tar.gz
-checksums       md5 a9ce95ebb986cdf3dcab04c4922688ad
-master_sites    ftp://ftp.distributed.net/pub/dcti/v2.9010/ \
-                http://http.distributed.net/pub/dcti/v2.9010/
-worksrcdir      dnetc495-macosx-ppc
 
+master_sites    ftp://ftp.distributed.net/pub/dcti/v${branch}/ \
+                http://http.distributed.net/pub/dcti/v${branch}/
+
+platform i386 {
+    distname        ${name}${minor}-macosx-x86
+    checksums       md5 ff9cd03f6b41dcb4dc1609189b8844f5 \
+                    sha1 63f327ab925c1cda0ccdba66472cec8ec1c279ae \
+                    rmd160 c8bf288464dca88968f39c936aa8ddf3c5a88824
+    worksrcdir      ${name}511-macosx-x86
+}
+
+platform powerpc {
+    distname        ${name}${minor}-macosx-ppc
+    checksums       md5 d0c9f31951c9767ae83cfa2646c5eb98 \
+                    sha1 7c7bf07f415d367428487b24019c1a84498f8a34 \
+                    rmd160 bebfa883f3c136e45714fe8a77e4577527e8b2ab
+    worksrcdir      ${name}511-macosx-ppc
+}
+
     startupitem.create    yes
     startupitem.start "${prefix}/share/${name}/dnetc.init start"
     startupitem.stop "${prefix}/share/${name}/dnetc.init stop"
@@ -33,9 +49,10 @@
 use_configure   no
 build     {}
 destroot  {
-  xinstall -m 755 -d ${destroot}${prefix}/bin
   xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
   xinstall -m 755 -d ${destroot}${prefix}/share/${name}
+  xinstall -m 755 -d ${destroot}${prefix}/var/db/${name}
+  destroot.keepdirs  ${destroot}${prefix}/var/db/${name}
   xinstall -m 755 ${worksrcpath}/dnetc ${destroot}${prefix}/bin
 
   eval xinstall -m 644 [glob ${worksrcpath}/docs/*] ${destroot}${prefix}/share/doc/${name}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090813/dc11440c/attachment-0001.html>


More information about the macports-changes mailing list