# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ RESTRICT="nomirror" DESCRIPTION="FreePOPs, WebMail->POP3 converter" HOMEPAGE="http:/freepops.sourceforge.net/" SRC_URI="mirror://sourceforge/freepops/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64 ~alpha ~ppc" IUSE="doc" DEPEND=" doc? ( >=app-doc/doxygen-1.3* app-text/tetex app-text/aspell || ( app-text/ghostscript app-text/ghostscript-afpl ) ) >=net-misc/curl-7.10.8 " src_compile() { einfo "Building application" ./configure.sh linux || die make all WHERE=/usr/ || die if use doc then einfo "Building documentation" make doc || die fi } src_install() { dobin src/freepopsd doman doc/freepopsd.1 insinto /usr/share/freepops dodoc AUTHORS COPYING README ChangeLog TODO dodoc doc/* dohtml -r modules/html modules/html_lua insinto /usr/share/freepops/lua doins src/lua/*.lua modules/include/*.lua config.lua insinto /etc/freepops doins config.lua # compatibility with sources (until this is an external portage ebuild) mkdir ${D}/etc/init.d/ ${D}/etc/conf.d/ cp ${S}/buildfactory/freePOPsd.initd ${D}/etc/init.d/freePOPsd || die cp ${S}/buildfactory/freePOPsd.confd ${D}/etc/conf.d/freePOPsd || die } pkg_postinst() { einfo "Service is installed in /etc/init.d/freePOPsd." einfo "Please edit /etc/conf.d/freePOPsd to configure" einfo "the server, then just configure the pop3 server in" einfo "your preferred mail client to the ip address and" einfo "port number you chose." }