# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # irc/tircd # irc/tircd/Makefile # irc/tircd/distinfo # irc/tircd/pkg-descr # irc/tircd/files # irc/tircd/files/tircd.sh.in # irc/tircd/pkg-plist # echo c - irc/tircd mkdir -p irc/tircd > /dev/null 2>&1 echo x - irc/tircd/Makefile sed 's/^X//' >irc/tircd/Makefile << '6f2afb3f773a26b5a1a7a1a0d023b1da' X# New ports collection makefile for: tircd X# Date created: 6th March 2010 X# Whom: Gavin Atkinson X# X# $FreeBSD$ X# X XPORTNAME= tircd XPORTVERSION= 0.10 XCATEGORIES= irc XMASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} XDISTNAME= ${PORTNAME}_v${PORTVERSION} XEXTRACT_SUFX= .tgz X XMAINTAINER= gavin@FreeBSD.org XCOMMENT= IRC proxy to Twitter X XRUN_DEPENDS= p5-JSON-Any>=0:${PORTSDIR}/converters/p5-JSON-Any \ X p5-libwww>=0:${PORTSDIR}/www/p5-libwww \ X p5-URI>=0:${PORTSDIR}/net/p5-URI \ X p5-Time-Local>=0:${PORTSDIR}/devel/p5-Time-Local \ X p5-Storable>=0:${PORTSDIR}/devel/p5-Storable \ X p5-Net-Twitter-Lite>=0:${PORTSDIR}/net/p5-Net-Twitter-Lite \ X p5-POE>=0:${PORTSDIR}/devel/p5-POE \ X p5-POE-Filter-IRCD>=0:${PORTSDIR}/irc/p5-POE-Filter-IRCD X XWRKSRC= ${WRKDIR}/tircd X XUSE_PERL5= yes XNO_BUILD= yes X XMAN1= tircd.1 XUSE_RC_SUBR= tircd.sh X Xpost-patch: X ${REINPLACE_CMD} -e '1s,^#!/usr/bin/perl,#!${PREFIX}/bin/perl,' \ X -e 's,/etc/tircd.cfg,${PREFIX}/etc/tircd.cfg,g' \ X ${WRKSRC}/tircd.pl X ${REINPLACE_CMD} -e 's,/etc/tircd.cfg,${PREFIX}/etc/tircd.cfg,g' \ X ${WRKSRC}/tircd.pod X pod2man ${WRKSRC}/tircd.pod > ${WRKSRC}/tircd.1 X Xdo-install: X ${INSTALL_SCRIPT} ${WRKSRC}/tircd.pl ${PREFIX}/bin/tircd.pl X ${INSTALL_DATA} ${WRKSRC}/tircd.cfg.example ${PREFIX}/etc/tircd.cfg.example X ${INSTALL_MAN} ${WRKSRC}/tircd.1 ${MANPREFIX}/man/man1/tircd.1 X Xpost-install: X @if [ ! -f ${PREFIX}/etc/tircd.cfg ]; then \ X ${CP} -p ${PREFIX}/etc/tircd.cfg.example ${PREFIX}/etc/tircd.cfg ; \ X fi X X.include 6f2afb3f773a26b5a1a7a1a0d023b1da echo x - irc/tircd/distinfo sed 's/^X//' >irc/tircd/distinfo << '5ad4c3b39d23f0b46ab6ee9636ebdc12' XMD5 (tircd_v0.10.tgz) = b98d8dfac4aec44327f65e5643b5af34 XSHA256 (tircd_v0.10.tgz) = 81f5ea5441af71d242acc4c2e98757e26005f19235752e8053193bab2aecea54 XSIZE (tircd_v0.10.tgz) = 26766 5ad4c3b39d23f0b46ab6ee9636ebdc12 echo x - irc/tircd/pkg-descr sed 's/^X//' >irc/tircd/pkg-descr << '23c3b208feb9a4a52a8ddbf4017d4926' Xtircd presents Twitter as an irc channel. You can connect to tircd Xwith any IRC client, and tweet as if you were on IRC. The daemon Xsupports authentication via OAuth or standard http and https Xauthentication, and supports direct messages, automatic URL shortening, Xand Twitter searching. X XQuickstart: in irssi, "/connect localhost 6667 twitpass twituser" Xand join #twitter X X - @gavinatkinson X XWWW: http://code.google.com/p/tircd/ 23c3b208feb9a4a52a8ddbf4017d4926 echo c - irc/tircd/files mkdir -p irc/tircd/files > /dev/null 2>&1 echo x - irc/tircd/files/tircd.sh.in sed 's/^X//' >irc/tircd/files/tircd.sh.in << '248386998649d4647609e4ced71877a5' X#! /bin/sh X# $FreeBSD$ X# X# PROVIDE: tircd X# REQUIRE: LOGIN syslogd X# KEYWORD: shutdown X# X# Add the following lines to /etc/rc.conf.local or /etc/rc.conf X# to enable this service: X# X# tircd_enable (bool): Set to NO by default. X# Set it to YES to enable tircd. X X. %%RC_SUBR%% X Xname="tircd" Xrcvar=${name}_enable X Xcommand="%%PREFIX%%/bin/$name.pl" Xcommand_args="> /dev/null &" Xrequired_files="%%PREFIX%%/etc/tircd.cfg" X Xload_rc_config $name X X: ${tircd_enable="NO"} X Xrun_rc_command "$1" 248386998649d4647609e4ced71877a5 echo x - irc/tircd/pkg-plist sed 's/^X//' >irc/tircd/pkg-plist << 'eb6e375d81d2cb5adc00a95c5107292b' Xbin/tircd.pl X@unexec if cmp -s %D/etc/tircd.cfg.example %D/etc/tircd.cfg; then rm -f %D/etc/tircd.cfg; fi Xetc/tircd.cfg.example X@exec if [ ! -f %D/etc/tircd.cfg ] ; then cp -p %D/%F %B/tircd.cfg; fi eb6e375d81d2cb5adc00a95c5107292b exit