1 | # $Id: Portfile,v 1.2 2003/08/26 04:53:07 rshaw Exp $ |
---|
2 | PortSystem 1.0 |
---|
3 | name zope-localfs |
---|
4 | version 1.0.0 |
---|
5 | categories www python zope |
---|
6 | maintainers robert@or.homeip.net |
---|
7 | description Zope Local File System folder |
---|
8 | long_description The Local File System is an add-in product for \ |
---|
9 | the Zope web application server. It allows users \ |
---|
10 | to access the contents of the file system on a \ |
---|
11 | Zope server as if they were contained in the \ |
---|
12 | Zope Object Database. It allows you to serve \ |
---|
13 | files and browse directories from the local file \ |
---|
14 | system (or network shares on Windows platforms). \ |
---|
15 | It also allows you to upload files to the file \ |
---|
16 | system. |
---|
17 | platforms darwin |
---|
18 | homepage http://sourceforge.net/projects/localfs |
---|
19 | distname LocalFS-1-0-0 |
---|
20 | extract.sufx .tgz |
---|
21 | master_sites sourceforge:localfs |
---|
22 | checksums md5 f3d27cfb5d09232bf2a01dad736c0740 |
---|
23 | depends_build bin:python2.1:python21 \ |
---|
24 | path:${prefix}/www/Zope:zope |
---|
25 | configure {} |
---|
26 | |
---|
27 | set python /usr/bin/env\ python2.1 |
---|
28 | set zopehome ${prefix}/www/Zope |
---|
29 | |
---|
30 | pre-build { |
---|
31 | system "cp ${zopehome}/inst/compilezpy.py \ |
---|
32 | ${workpath}/lib/python/Products" |
---|
33 | } |
---|
34 | |
---|
35 | build { |
---|
36 | system "cd ${workpath}/lib/python/Products && \ |
---|
37 | ${python} ${workpath}/lib/python/Products/compilezpy.py" |
---|
38 | system "cd ${workpath}/lib/python/Products && \ |
---|
39 | ${python} -O ${workpath}/lib/python/Products/compilezpy.py" |
---|
40 | } |
---|
41 | |
---|
42 | destroot { |
---|
43 | set zopebase ${destroot}${zopehome} |
---|
44 | set productsdir ${zopebase}/lib/python/Products |
---|
45 | set zopeuser zope |
---|
46 | |
---|
47 | # Copy Plone products into the Products directory |
---|
48 | system "install -d ${productsdir}" |
---|
49 | system "cp -R ${workpath}/lib/python/Products/LocalFS ${productsdir}" |
---|
50 | system "cd ${zopebase} && chown -R zope lib" |
---|
51 | system "cd ${zopebase} && chgrp -R www lib" |
---|
52 | } |
---|
53 | # vim: ts=8 sw=8 |
---|