diff --git a/net-im/newsbot/Makefile b/net-im/newsbot/Makefile new file mode 100644 index 000000000000..3349d02f8bde --- /dev/null +++ b/net-im/newsbot/Makefile @@ -0,0 +1,35 @@ +# ex:ts=8 +# Ports collection makefile for: newsbot +# Date created: Mar 12, 2004 +# Whom: ijliao +# +# $FreeBSD$ +# + +PORTNAME= newsbot +PORTVERSION= 0.4.5 +CATEGORIES= net +MASTER_SITES= http://www.jabberstudio.org/files/${PORTNAME}/ +DISTNAME= ${PORTNAME}-0.45 + +MAINTAINER= ports@FreeBSD.org +COMMENT= Gathers news from RDF/RSS and send them to your IM client + +RUN_DEPENDS= ${PYTHON_SITELIBDIR}/jabber.py:${PORTSDIR}/net/py-jabber + +USE_PYTHON= 2.2+ +NO_BUILD= yes + +PLIST_FILES= bin/newsbot + +do-install: + @${SED} "s,%%DATADIR%%,${DATADIR}," \ + < ${FILESDIR}/newsbot > ${PREFIX}/bin/newsbot + @${CHMOD} +x ${PREFIX}/bin/newsbot + @${MKDIR} ${DATADIR} + @(cd ${WRKSRC} && ${INSTALL_DATA} *.py *.cfg README bothelp ${DATADIR}) + @${FIND} ${DATADIR} -type f | \ + ${SED} "s,^${PREFIX}/,," >> ${TMPPLIST} + @${ECHO_CMD} "@dirrm ${DATADIR:S,^${PREFIX}/,,}" >> ${TMPPLIST} + +.include diff --git a/net-im/newsbot/distinfo b/net-im/newsbot/distinfo new file mode 100644 index 000000000000..2e67440fc9a4 --- /dev/null +++ b/net-im/newsbot/distinfo @@ -0,0 +1,2 @@ +MD5 (newsbot-0.45.tar.gz) = 83935032e3934f77acf4389304ac84b1 +SIZE (newsbot-0.45.tar.gz) = 32039 diff --git a/net-im/newsbot/files/newsbot b/net-im/newsbot/files/newsbot new file mode 100644 index 000000000000..88b1421c0c0f --- /dev/null +++ b/net-im/newsbot/files/newsbot @@ -0,0 +1,3 @@ +#!/bin/sh + +cd %%DATADIR%%/newsbot && python bot.py diff --git a/net-im/newsbot/pkg-descr b/net-im/newsbot/pkg-descr new file mode 100644 index 000000000000..51e56df62372 --- /dev/null +++ b/net-im/newsbot/pkg-descr @@ -0,0 +1,17 @@ +newsBot gathers news from various news feeds(RDF/RSS-pages) and send the news +to your IM client. The bot is a console based application and uses the Jabber +network for messaging. + +Each RDF/RSS-page is checked every 30 min in a running order. When a new news +item is found, the news will be sent to the users with the website in its site +list. The news item will include(if available) title, date, link and a short +description. + +Features: + * Individual user settings. + * 15 bot commands. + * Over 30 news feeds to choose from. + * Ability to add and remove news feeds. + * and more... + +WWW: http://newsbot.jabberstudio.org/ diff --git a/net/Makefile b/net/Makefile index 06f5d6013b15..e661da605f8c 100644 --- a/net/Makefile +++ b/net/Makefile @@ -346,6 +346,7 @@ SUBDIR += netspeed_applet SUBDIR += netstrain SUBDIR += nettest + SUBDIR += newsbot SUBDIR += ng_netflow SUBDIR += ngrep SUBDIR += ngrep-lib diff --git a/net/newsbot/Makefile b/net/newsbot/Makefile new file mode 100644 index 000000000000..3349d02f8bde --- /dev/null +++ b/net/newsbot/Makefile @@ -0,0 +1,35 @@ +# ex:ts=8 +# Ports collection makefile for: newsbot +# Date created: Mar 12, 2004 +# Whom: ijliao +# +# $FreeBSD$ +# + +PORTNAME= newsbot +PORTVERSION= 0.4.5 +CATEGORIES= net +MASTER_SITES= http://www.jabberstudio.org/files/${PORTNAME}/ +DISTNAME= ${PORTNAME}-0.45 + +MAINTAINER= ports@FreeBSD.org +COMMENT= Gathers news from RDF/RSS and send them to your IM client + +RUN_DEPENDS= ${PYTHON_SITELIBDIR}/jabber.py:${PORTSDIR}/net/py-jabber + +USE_PYTHON= 2.2+ +NO_BUILD= yes + +PLIST_FILES= bin/newsbot + +do-install: + @${SED} "s,%%DATADIR%%,${DATADIR}," \ + < ${FILESDIR}/newsbot > ${PREFIX}/bin/newsbot + @${CHMOD} +x ${PREFIX}/bin/newsbot + @${MKDIR} ${DATADIR} + @(cd ${WRKSRC} && ${INSTALL_DATA} *.py *.cfg README bothelp ${DATADIR}) + @${FIND} ${DATADIR} -type f | \ + ${SED} "s,^${PREFIX}/,," >> ${TMPPLIST} + @${ECHO_CMD} "@dirrm ${DATADIR:S,^${PREFIX}/,,}" >> ${TMPPLIST} + +.include diff --git a/net/newsbot/distinfo b/net/newsbot/distinfo new file mode 100644 index 000000000000..2e67440fc9a4 --- /dev/null +++ b/net/newsbot/distinfo @@ -0,0 +1,2 @@ +MD5 (newsbot-0.45.tar.gz) = 83935032e3934f77acf4389304ac84b1 +SIZE (newsbot-0.45.tar.gz) = 32039 diff --git a/net/newsbot/files/newsbot b/net/newsbot/files/newsbot new file mode 100644 index 000000000000..88b1421c0c0f --- /dev/null +++ b/net/newsbot/files/newsbot @@ -0,0 +1,3 @@ +#!/bin/sh + +cd %%DATADIR%%/newsbot && python bot.py diff --git a/net/newsbot/pkg-descr b/net/newsbot/pkg-descr new file mode 100644 index 000000000000..51e56df62372 --- /dev/null +++ b/net/newsbot/pkg-descr @@ -0,0 +1,17 @@ +newsBot gathers news from various news feeds(RDF/RSS-pages) and send the news +to your IM client. The bot is a console based application and uses the Jabber +network for messaging. + +Each RDF/RSS-page is checked every 30 min in a running order. When a new news +item is found, the news will be sent to the users with the website in its site +list. The news item will include(if available) title, date, link and a short +description. + +Features: + * Individual user settings. + * 15 bot commands. + * Over 30 news feeds to choose from. + * Ability to add and remove news feeds. + * and more... + +WWW: http://newsbot.jabberstudio.org/