Commit 954355ca authored by Marco Mariani's avatar Marco Mariani

section zimbra-unpack-store

parent 153b5904
......@@ -263,3 +263,41 @@ input = inline:
recipe = slapos.cookbook:mkdirectory
zimbra-home = ${buildout:directory}/zimbra-home
[zimbra-unpack-store]
# extract binaries and scripts from the .deb packages
recipe = plone.recipe.command
stop-on-error = True
PACKAGE_LIST = zimbra-core zimbra-store
ZIMBRA_HOME = ${environment:ZIMBRA_HOME}
PACKAGES = /home/marco/zbuild/ZimbraBuild/amd64
command =
rm -rf ${:ZIMBRA_HOME}
mkdir ${:ZIMBRA_HOME}
cd ${:ZIMBRA_HOME}
for pkg_name in ${:PACKAGE_LIST}; do
echo "Unpacking $pkg_name..."
ar x ${:PACKAGES}/$pkg_name*.deb
tar xvf data.tar.gz --strip=5 >/dev/null
rm data.tar.gz
rm control.tar.gz
done
ln -sf bdb-* bdb
ln -sf curl-* curl
ln -sf cyrus-sasl-* cyrus-sasl
ln -sf heimdal-* heimdal
ln -sf mysql-standard-* mysql
ln -sf openldap-* openldap
ln -sf openssl-* openssl
ln -sf rsync-* rsync
ln -sf tcmalloc-* tcmalloc
ln -sf jdk* java
ln -sf jetty-distribution-* jetty
ln -sf jetty-distribution-* mailboxd
mkdir -p data/tmp
chmod 1777 data/tmp
mkdir backup ssl .ssh zmstat
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment