zope: moved to attic

This commit is contained in:
Juergen Daubert 2006-03-03 11:01:34 +00:00
parent ba73f64606
commit 4cd542d252
5 changed files with 0 additions and 7334 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,2 +0,0 @@
3ce41fce6deb1739fec5c4abcd8ab834 Zope-2.8.2-final.tar.gz
1fef1377a85d06d71cd5ae666cb7d3e3 zope

View File

@ -1,53 +0,0 @@
# Description: Z-Object Publishing Environment - a web application server framework based on python
# URL: http://www.zope.org
# Maintainer: Jürgen Daubert, juergen dot daubert at t-online dot de
# Packager: Gunter Coelle, gunter dot coelle at dbaudio dot com
# Depends on: python
name=zope
version=2.8.2-final
release=1
source=(http://zope.org/Products/Zope/2.8.2/Zope-$version.tar.gz\
zope)
build() {
cd Zope-$version
sed -i 's/ACCEPTABLE=\"\"/ACCEPTABLE=\"2.4 2.4.1 2.4.2\"/' configure
./configure --prefix=/usr/lib/zope
make
make PREFIX=$PKG/usr/lib/zope/ install
rm $PKG/usr/lib/zope/doc -r
# Create a ZOPE instance
mkdir -p $PKG/var/lib/zope
chown zope:zope $PKG/var/lib/zope
su zope -c "$PKG/usr/lib/zope/bin/mkzopeinstance.py --dir=$PKG/var/lib/zope --user=admin:secret"
sed -i "s|$PKG||" $PKG/var/lib/zope/etc/zope.conf
sed -i "s|$PKG||" $PKG/var/lib/zope/bin/*
# Remove Windows stuff
rm $PKG/var/lib/zope/bin/runzope.bat
rm $PKG/var/lib/zope/bin/zopeservice.py
# Move logs, configs and bins to CRUX conformal locations
mkdir -p $PKG/var/log/zope $PKG/etc $PKG/usr/bin
touch $PKG/var/log/zope/{event.log,Z2.log}
sed -i 's|^CONFIG_FILE=\"/var/lib/zope/etc/zope.conf\"|CONFIG_FILE=\"/etc/zope.conf\"|' $PKG/var/lib/zope/bin/*
mv $PKG/var/lib/zope/bin/zopectl $PKG/usr/bin
sed -i 's|path $INSTANCE/log/|path /var/log/zope/|' $PKG/var/lib/zope/etc/zope.conf
mv $PKG/var/lib/zope/etc/zope.conf $PKG/etc
rm -r $PKG/var/lib/zope/{etc,log}
rm $PKG/var/lib/zope/inituser
rm -r $PKG/usr/lib/zope/skel
chown -R root:root $PKG/{usr,etc}
chown -R zope:zope $PKG/var/{log,lib}/zope
install -D -m 755 ../zope $PKG/etc/rc.d/zope
}

View File

@ -1,24 +0,0 @@
README for zope
CAUTION
ZOPE 2.8.2-final requires python 2.3.5
Although ZOPE compiles and runs with python 2.4.x it is not officially
supported and will complain about a deprecated whrandom function on startup.
PRE-COMPILE
- Create a ZOPE user/group
$ groupadd -g 30 zope
$ useradd -g zope -u 30 -d /var/lib/zope zope
$ passwd -l zope
POST-INSTALL
Create an initial user "admin" with password "secret"
(Replace credentials with your own ones!)
$ su zope
$ zopectl adduser admin secret

View File

@ -1,23 +0,0 @@
#! /bin/sh
#
# /etc/rc.d/zope: start/stop/restart ZOPE
#
ZOPECTL=/usr/bin/zopectl
case $1 in
start)
su zope -c "$ZOPECTL start"
;;
stop)
su zope -c "$ZOPECTL stop"
;;
restart)
su zope -c "$ZOPECTL restart"
;;
*)
echo "Usage: $0 {start|stop|restart}"
;;
esac
# End of file