# Copyright 2003 Alexander Holler # Distributed under the terms of the GNU General Public License, v2 or later # $Header: /cvsroot/gentoo-deutsch/ebuilds/net-mail/exchange4linux/exchange4linux-2.5.8.0.ebuild,v 1.6 2003/07/05 19:07:04 holler Exp $ DESCRIPTION="exchange4linux - exchange4linux is a production/stable server solution to store/exchange workgroup data on Linux in a style simular to Exchange. Main goal is to provide Outlook users a free and open server alternative on Linux." HOMEPAGE="http://www.exchange4linux.org/" VER="2.5.8.0-1" SRC_URI="http://www.neuberger-hughes.com/pub/exchange4linux/exchange4linux-all-${VER}.tgz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 amd64" # omniORBpy includes a dependency to omniORB # postgresql isn't included in depend because it needs to be build with # python as use-flag (see below) RDEPEND="virtual/glibc dev-lang/python >=dev-python/omniorbpy-2.1" DEPEND="virtual/glibc dev-lang/python >=dev-python/omniorbpy-2.1 >=dev-db/postgresql-7.4.7-r1 >=dev-db/pygresql-3.5" src_compile() { mv /var/tmp/portage/${P}/work/${PN}-all-${VER} /var/tmp/portage/${P}/work/${PN}-${PV} cd ${S}/exchange4linux-${PV}/BILL-StorageServer omniidlrun.py -bpython msgstore.idl python /usr/lib/python2.3/compileall.py . rm server.sh cd ${S}/exchange4linux-${PV}/BILL-StorageMailer python /usr/lib/python2.3/compileall.py . rm mail.local.sh cd ${S}/exchange4linux-${PV}/BILL-StorageIMAP4Server omniidlrun.py -bpython msgstore.idl python /usr/lib/python2.3/compileall.py . rm BILL-IMAP4gw* } src_install () { dodoc ${S}/exchange4linux-${PV}/README* ${S}/exchange4linux-${PV}/BILL-StorageServer/LICENCE.TXT insinto /etc newins ${S}/exchange4linux-${PV}/BILL-StorageServer/bill.conf.ex bill.conf exeinto /etc/init.d doexe ${FILESDIR}/exchange4linux chown root:postgres ${D}etc/bill.conf chmod 660 ${D}etc/bill.conf touch ${D}etc/billpasswd chown root:postgres ${D}etc/billpasswd chmod 660 ${D}etc/billpasswd rm ${S}/exchange4linux-${PV}/BILL-StorageServer/bill.conf.ex rm ${S}/exchange4linux-${PV}/BILL-StorageServer/LICENCE.TXT rm ${S}/exchange4linux-${PV}/BILL-StorageServer/README.TXT mkdir ${D}usr/share/exchange4linux mv ${S}/exchange4linux-${PV}/BILL-StorageServer ${D}usr/share/exchange4linux/BILL-StorageServer mv ${S}/exchange4linux-${PV}/BILL-StorageMailer ${D}usr/share/exchange4linux/BILL-StorageMailer mv ${S}/exchange4linux-${PV}/BILL-StorageIMAP4Server ${D}usr/share/exchange4linux/BILL-StorageIMAP4Server exeinto /usr/sbin doexe ${FILESDIR}/exchange4linux-deliver doexe ${FILESDIR}/exchange4linux-migrate-sql-schema-23-to-24 exeinto /usr/share/exchange4linux/BILL-StorageServer doexe ${FILESDIR}/server.sh exeinto /usr/share/exchange4linux/BILL-StorageIMAP4Server doexe ${FILESDIR}/BILL-IMAP4gw* mkdir ${D}var mkdir ${D}var/run mkdir ${D}var/run/exchange4linux/ chown postgres:postgres ${D}var/run/exchange4linux/ touch ${D}var/run/exchange4linux/exchange4linux.pid chown postgres:postgres ${D}var/run/exchange4linux/exchange4linux.pid } pkg_postinst() { einfo "**************************************" einfo "* Use *" einfo "* /etc/init.d/exchange4linux admin *" einfo "* to setup users. *" einfo "**************************************" } pkg_postrm() { einfo "***************************************" einfo "* The postgresql database (mstore009) *" einfo "* for exchange4linux is not removed. *" einfo "* You have to do this by hand, e.g. *" einfo "* su - postgres *" einfo "* dropdb mstore009 *" einfo "* exit *" einfo "***************************************" }