# $Id: Portfile,v 1.1 2004/02/16 00:27:41 rshaw Exp $ PortSystem 1.0 name zope-localfs version 1.1.0 revision 1 categories www zope python maintainers rshaw@opendarwin.org description Zope Local File System folder long_description The Local File System is an add-in product for \ the Zope web application server. It allows users \ to access the contents of the file system on a \ Zope server as if they were contained in the \ Zope Object Database. It allows you to serve \ files and browse directories from the local file \ system (or network shares on Windows platforms). \ It also allows you to upload files to the file \ system. platforms darwin freebsd homepage http://sourceforge.net/projects/localfs master_sites sourceforge:localfs dist_subdir zope/${name} distname LocalFS-1-1-0 extract.suffix .tgz checksums md5 738c05ad9e4cb59518269bc21fa79a1d # Use Python 2.3 from DarwinPorts explicitly set python ${prefix}/bin/python2.3 # Location to install Zope products and the Zope user set zopehome ${prefix}/libexec/Zope set zopeinst ${prefix}/www/Zope set zopeprod ${zopehome}/lib/python/Products set zopeuser zope set zopegroup www # Depends on Zope depends_build path:${zopehome}:zope platform freebsd { extract.post_args | gtar -xf - } worksrcdir lib/python/Products/LocalFS patchfiles patch-FSObject.py use_configure no pre-build { file copy ${zopehome}/bin/compilezpy.py ${workpath} reinplace "s|^.*sys.stdout|#&|" ${workpath}/compilezpy.py system "find ${worksrcpath} -name '*.py\[co\]' | xargs rm" } build { system "cd ${worksrcpath} && ${python} ${workpath}/compilezpy.py" } destroot { if {$env(USER) != "root"} { ui_msg "------------------------------------------------------------" ui_msg "Note that you are not installing as root, so files installed" ui_msg "by this port will not end up with proper ownership and" ui_msg "likely not work correctly with Zope." ui_msg "------------------------------------------------------------" } # Install products xinstall -d -m 0755 ${destroot}${zopeprod} system "cp -R ${worksrcpath} ${destroot}${zopeprod}" if {$env(USER) == "root"} { system "chown -R ${zopeuser} ${destroot}${zopehome}" system "chgrp -R ${zopegroup} ${destroot}${zopehome}" } }