pkgsrc/mail/fetchyahoo/Makefile
obache 5e6899f7f7 Import fetchyahoo version 2.10.6.
Based on PR 33091, made pkglint clean and update.

FetchYahoo is a Perl script that downloads mail from a Yahoo! account
to a local mail spool. It is meant to replace fetchmail for people
using Yahoo! mail since Yahoo!'s POP service no longer free. It
downloads messages to a local mail spool, including all parts and
attachments. It then deletes messages unless requested not to. It can
also optionally forward messages to a specified e-mail address and
repeat with a given interval.
2007-01-13 15:38:52 +00:00

51 lines
1.8 KiB
Makefile

# $NetBSD: Makefile,v 1.1.1.1 2007/01/13 15:38:52 obache Exp $
#
DISTNAME= fetchyahoo-2.10.6
CATEGORIES= mail
MASTER_SITES= http://fetchyahoo.sourceforge.net/
#MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=fetchyahoo/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://fetchyahoo.sourceforge.net/
#HOMEPAGE= http://fetchyahoo.twizzler.org
COMMENT= Download mails from Yahoo webmail into mbox
DEPENDS+= p5-libwww-[0-9]*:../../www/p5-libwww
DEPENDS+= p5-HTML-Parser-[0-9]*:../../www/p5-HTML-Parser
DEPENDS+= p5-MIME-tools-[0-9]*:../../mail/p5-MIME-tools
DEPENDS+= p5-Net-[0-9]*:../../net/p5-Net
DEPENDS+= p5-Crypt-SSLeay-[0-9]*:../../security/p5-Crypt-SSLeay
DEPENDS+= p5-URI-[0-9]*:../../www/p5-URI
DEPENDS+= p5-MailTools-[0-9]*:../../mail/p5-MailTools
DEPENDS+= p5-IO-stringy-[0-9]*:../../devel/p5-IO-stringy
DEPENDS+= p5-MIME-Base64-[0-9]*:../../converters/p5-MIME-Base64
DEPENDS+= p5-Term-ReadKey-[0-9]*:../../devel/p5-Term-ReadKey
USE_TOOLS+= perl:run
REPLACE_PERL= fetchyahoo
NO_BUILD= yes
EGDIR= ${PREFIX}/share/examples/fetchyahoo
DOCDIR= ${PREFIX}/share/doc/fetchyahoo
CONF_FILES= ${EGDIR}/fetchyahoorc ${PKG_SYSCONFDIR}/fetchyahoorc
SUBST_CLASSES+= sa2
SUBST_STAGE.sa2= pre-configure
SUBST_FILES.sa2= fetchyahoo fetchyahoo.1 INSTALL
SUBST_SED.sa2= -e s!/etc/fetchyahoorc!${PKG_SYSCONFDIR}/fetchyahoorc!g
SUBST_SED.sa2+= -e s!/usr/share/doc/fetchyahoo!${DOCDIR}!g
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/fetchyahoo ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/fetchyahoo.1 ${PREFIX}/${PKGMANDIR}/man1
${INSTALL_DATA_DIR} ${DOCDIR}
${INSTALL_DATA_DIR} ${EGDIR}
.for i in COPYING ChangeLog Credits INSTALL TODO index.html
${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/doc/fetchyahoo
.endfor
${INSTALL_DATA} ${WRKSRC}/fetchyahoorc ${PREFIX}/share/examples/fetchyahoo
.include "../../mk/bsd.pkg.mk"