# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 DESCRIPTION="POP/SMTP access to Yahoo Mail" HOMEPAGE="http://yahoopops.sourceforge.net" SRC_URI="mirror://sourceforge/yahoopops/yahoopops-${PV}-linux-src.tar.bz2 http://yahoopops.sourceforge.net/downloads/mimepp-1.3.3.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND=">=net-misc/curl-7.10.5 >=dev-libs/openssl-0.9.7a dev-libs/libxml2" src_unpack () { unpack yahoopops-${PV}-linux-src.tar.bz2 unpack mimepp-1.3.3.tar.gz mv YP5 ${P} } src_compile () { export CONFIG_LOC=/etc/yahoopops export XML_INC=`/usr/bin/xml2-config --cflags` export XML_LIB=`/usr/bin/xml2-config --libs` export SSL_INC=/usr/include export SSL_LIB=/usr/lib export CURL_INC=/usr/include export CURL_LIB=/usr/lib export MIMEPP=${WORKDIR}/mimepp cd ${S}/src make || die } src_install () { dosbin src/yahoopops dodoc README docs/* #Put the files in /etc/yahoopops dodir /etc/yahoopops insinto /etc/yahoopops newins src/yahoopops_samplerc yahoopopsrc doins src/localization.* exeinto /etc/init.d newexe ${FILESDIR}/yahoopops.initd yahoopops } pkg_postinst () { einfo "------------------------------------------------" einfo " " einfo " Please check /etc/yahoopops/yahoopopsrc " einfo " for configuration options " einfo " " einfo " If you want yahoopops to be run at system " einfo " boot, please issue this command: " einfo " " einfo " # rc-update add yahoopops default " einfo "------------------------------------------------" }