zope _unstable_ port information

Package: zope
Version: 2.6.3
Revision: 1105
BuildDepends: fink (>= 0.24.12)
Depends: python25, daemonic
Source: http://www.zope.org/Products/Zope/%v/Zope-%v-src.tgz
Source-MD5: 904cf97757401fd353275d0807685460
PatchFile: %n.patch
PatchFile-MD5: 6a0255b2092d865a080fac6efbcd1e80
PatchScript: <<
sed 's|@PREFIX@|%p|g' <%{PatchFile} | patch -p1
find . -type f | xargs perl -pi -e 's,/usr(/local|)/bin/python(\d+\.\d+)?,%p/bin/python2.5,g; s,/usr/bin/env python(\d+\.\d+)?,%p/bin/python2.5,g'
<<
#
CompileScript: <<
%p/bin/python2.5 wo_pcgi.py
/usr/bin/find . -name '*.pyc' -delete
<<
#
InstallScript: <<
install -d -m 755 %i/lib/zope/
install -c -m 755 z2.py zpasswd.py %i/lib/zope
install -c -m 755 start stop %i/lib/zope
install -d -m 755 %i/lib/zope/Extensions
/bin/cp -R -L Extensions/* %i/lib/zope/Extensions
install -d -m 755 %i/lib/zope/ZServer
/bin/cp -R -L ZServer/* %i/lib/zope/ZServer
install -d -m 755 %i/lib/zope/import
/bin/cp -R -L import/* %i/lib/zope/import
install -d -m 755 %i/lib/zope/lib
/bin/cp -R -L lib/* %i/lib/zope/lib
install -d -m 755 %i/lib/zope/pcgi
/bin/cp -R -L pcgi/* %i/lib/zope/pcgi
install -d -m 755 %i/lib/zope/utilities
/bin/cp -R -L utilities/* %i/lib/zope/utilities
install -d -m 755 %i/var/lib/zope
install -d -m 1775 %i/var/lib/zope/var
install -c -m 644 var/Data.fs.in %i/var/lib/zope/var
install -d -m 755 %i/sbin
ln -s ../lib/zope/z2.py %i/sbin/zope-z2
ln -s ../lib/zope/zpasswd.py %i/sbin/zope-zpasswd
install -d -m 755 %i/etc/zope
install -c -m 755 zope.cnf %i/etc/zope
install -c -m 755 zopectl %i/sbin
install -d -m 755 %i/share/man/man8
/usr/bin/gzip *.8
install -c -m 644 *.8.gz %i/share/man/man8
<<
#
DocFiles: <<
README.txt LICENSE.txt doc/CHANGES.txt doc/CREDITS.txt doc/DEBUGGING.txt
doc/ENVIRONMENT.txt doc/FAQ.txt doc/HELPSYS.txt doc/HISTORY.txt
doc/INSTALL.txt doc/LOGGING.txt doc/SECURITY.txt doc/UNITTEST.txt
doc/WEBSERVER.txt doc/ZODB.txt
<<
#
ConfFiles: %p/etc/zope/zope.cnf
#
DaemonicFile: <<

Zope Web Application Server
Zope Web Application Server


%p/sbin/zopectl

start
%p/var/lib/zope/access
%p/var/lib/zope/var/Z2.pid



<<
#
PreRmScript: <<
# sample prerm script for Debian python packages
# written 1998 by Gregor Hoffleit
# modified for fink by Kilian Koepsell

PACKAGE=zope

# shut down zope
%p/sbin/zopectl stop

/usr/bin/find %p/lib/zope -name '*.pyc' -delete

# clean up
if [ $1 != "upgrade" ]; then
daemonic remove zope
fi
<<
#
PostInstScript: <<
# sample postinst script for Debian python packages
# written 1998 by Gregor Hoffleit
# modified for fink by Kilian Koepsell

# byte-compile the python source files
%p/bin/python2.5 %p/lib/python2.5/compileall.py %p/lib/zope

# correct permissions and make the Zope instance owned by the www user
chown root:admin %p/var/lib/zope/var
chmod 1775 %p/var/lib/zope/var
chown -R www:admin %p/var/lib/zope/var/*

# setting up the administrator user
if [ ! -f %p/var/lib/zope/access ] ; then
echo
echo "We will now set up an administrator user in Zope."
echo "Please choose a username and a password for the Zope administrator:"
echo "(This username and the password are only used inside Zope. They are"
echo "completely unrelated to your system's accounts.)"
echo
echo "You can encrypt the password in SHA, CRYPT or CLEARTEXT."
echo
echo "You can limit the domains from which the administrator can login"
echo "into Zope, by providing a list of domain names separated with spaces."
echo
%p/sbin/zope-zpasswd %p/var/lib/zope/access
fi

# If we don't have an Data.fs, create one from the new template!
if [ ! -f %p/var/lib/zope/var/Data.fs ]; then
cp %p/var/lib/zope/var/Data.fs.in %p/var/lib/zope/var/Data.fs
chown www:admin %p/var/lib/zope/var/Data.fs
chmod 600 %p/var/lib/zope/var/Data.fs
fi

# update init script if necessary
daemonic install zope
<<
#
Description: Open Source Web Application Server
DescDetail: <<
Zope enables teams to collaborate in the creation and management of dynamic
web-based business applications such as intranets and portals. Zope makes it
easy to build features such as site search, news, personalisation, and
e-commerce into your web applications.
<<
DescUsage: <<
The default web port for Zope is 8080. You can modify this port in the file
%p/etc/zope/zope.cnf
The command line option '-P 9000', for example, will make 9080 the web server
port and 9021 the ftp port. See 'man zope-z2' for more details.

You can use the command zope-zpasswd to set the zope superuser password:
zope-zpasswd %p/var/lib/zope/access

You can start/stop the server using the command
zopectl start/stop

Afterwards you can connect to the server using a web browser pointing to
http://localhost:8080

If you want to start the Zope server automatically at system startup, execute
daemonic enable zope

To disable it, run
daemonic disable zope
<<
DescPort: <<
Customised the Debian postinst script and start/stop script zopectl
by Gregor Hoffleit .
<<

License: OSI-Approved
Homepage: http://www.zope.com
Maintainer: None