# Zope Portfile ############################################################### # $Id$ PortSystem 1.0 name zope version 2.6.1 revision 0 categories www python zope maintainers wb@willbarton.com description Object-Oriented Python Web Application Server long_description Zope is a leading open source application server, \ specializing in content management, portals, and \ custom applications. platforms darwin homepage http://www.zope.org master_sites http://www.zope.org/Products/Zope/${version}/ distname Zope-${version}-src distfiles Zope-${version}-src.tgz checksums md5 a17f36b86b6e489797d8e52f1ba48efe depends_lib bin:python:python extract.post_args | gnutar -xf - configure { } # It would be nice to have a 2.1 port of python in addition to 2.2, this # port should DEFINITELY be considered experimental until then. set python /usr/bin/env\ python build.cmd ${python} build.target wo_pcgi.py build.env ZDIR=${prefix}/lib/${name} # Default Zope User and Password. The password is changed from what is # printed durring the build, as the user will not see that by default. set defuser admin set defpasswd M1p4Ss post-build { system "cd ${worksrcpath} && ${python} zpasswd.py \ -u ${defuser} -p ${defpasswd} inituser" } install { set path ${destroot}${prefix}/lib/ set zopebase ${path}${name} system "install -d ${path}" system "install -d ${zopebase}" system "cd ${worksrcpath}; cp -Rp * ${zopebase}" system "sed -e \"s,%%DPPATH%%,${prefix}/lib/${name},g\" \ ${filespath}/zopectl > ${destroot}${prefix}/bin/zopectl" system "sed -e \"s,${worksrcpath},${prefix}/lib/$name,g\" \ ${zopebase}/stop > ${zopebase}/stop.new; \ mv ${zopebase}/stop.new ${zopebase}/stop;\ chmod 755 ${zopebase}/stop" system "cd ${destroot}${prefix} && chmod 755 bin/zopectl" system "cd ${zopebase} && chmod -R 755 var" system "cd ${zopebase} && chmod 700 z2.py" ui_msg "The '${defuser}' user's password has been\ set to '${defpasswd}'. Please change it." ui_msg "You can use '${prefix}/bin/zopectl' to start\ and stop Zope." }