# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils IUSE="spamassassin" SLOT="0" LICENSE="LGPL-2" KEYWORDS="~x86" DESCRIPTION="A calendar and webmail application, which includes its own MTA" SRC_URI="http://kelley.ca/hulaTar/tars/hula-r${PV}.tgz" HOMEPAGE="http://hula-project.org/" DEPEND="dev-libs/openssl >=sys-devel/automake-1.7 dev-util/pkgconfig spamassassin? ( mail-filter/spamassassin )" MY_S=${WORKDIR}/${PN}-r${PV} src_compile() { cd ${MY_S} if use spamassassin; then epatch ${FILESDIR}/define_spamassassin.patch || die fi ./autogen.sh \ --prefix=/usr \ --mandir=/usr/share/man \ --localstatedir=/var || die emake || die "emake failed" } src_install() { cd ${MY_S} make DESTDIR=${D} install || die "make failed" exeinto ${D}/etc/init.d doexe ${FILESDIR}/hula } pkg_postinst() { echo einfo "Before using Hula, you must run hulasetup." einfo "For more information on hulasetup run 'hulasetup --help'." echo einfo "Run '/etc/init.d/hula start' to start Hula." echo einfo "The administration interface is located at 'http://your.domain:89/'" echo einfo "The default login credentials are::" einfo " Username: admin" einfo " Password: hula" echo einfo "Initial configuration howto:" einfo " http://www.hula-project.org/Installation_tutorial#Initial_Configuration" if use spamassassin; then einfo "Spamassassin howto:" einfo " http://www.hula-project.org/Setting_Up_SpamAssassin" fi echo }