Commit 36d5dedb authored by Marco Mariani's avatar Marco Mariani

section zimbra-unpack-mta

parent cd6a91dd
......@@ -344,3 +344,63 @@ command =
mkdir -p data/ldap/config
mkdir -p data/ldap/mdb/db
# TODO:
# sudo setcap 'cap_net_bind_service=+ep' /home/marco/zbuild/zimbra-home/openldap/sbin/slapd
[zimbra-unpack-mta]
# extract binaries and scripts from the .deb packages
# export ZIMBRA_INSTALLED_PKGS="zimbra-core zimbra-mta"
recipe = plone.recipe.command
stop-on-error = True
PACKAGE_LIST = zimbra-core zimbra-mta
ZIMBRA_HOME = ${environment:ZIMBRA_HOME}
PACKAGES = /home/marco/zbuild/ZimbraBuild/amd64
update-command = ${:command}
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 altermime-* altermime
ln -sf amavisd-* amavisd
ln -sf bdb-* bdb
ln -sf cbpolicyd-* cbpolicyd
ln -sf clamav-* clamav
ln -sf curl-* curl
ln -sf cyrus-sasl-* cyrus-sasl
ln -sf dspam* dspam
ln -sf heimdal-* heimdal
ln -sf libmemcached* libmemcached
ln -sf mysql* mysql
ln -sf opendkim* opendkim
ln -sf openldap-* openldap
ln -sf openssl-* openssl
ln -sf postfix* postfix
ln -sf rsync-* rsync
ln -sf tcmalloc-* tcmalloc
ln -sf jdk* java
ln -sf zeromq* zeromq
mkdir -p data/amavisd/db
mkdir -p data/amavisd/tmp
mkdir -p data/amavisd/var
mkdir -p data/amavisd/quarantine
mkdir -p data/clamav/db
mkdir -p data/postfix/spool/pid
mkdir -p data/tmp
chmod 1777 data/tmp
# TODO
# touch postfix/conf/main.cf
# ln -s /home/marco/zbuild/zimbra-home/postfix/conf/aliases /etc/aliases
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