# 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: # # tircd # tircd/Makefile # tircd/distinfo # tircd/files # tircd/files/tircd.sh.in # tircd/pkg-descr # tircd/pkg-plist # echo c - tircd mkdir -p tircd > /dev/null 2>&1 echo x - tircd/Makefile sed 's/^X//' >tircd/Makefile << 'c354c084b7facdcac862dc436872d614' 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= 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 ${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_MAN} ${WRKSRC}/tircd.1 ${MAN1PREFIX}/man/man1/tircd.1 X ${INSTALL_DATA} ${WRKSRC}/tircd.cfg.example ${PREFIX}/etc/tircd.cfg.example 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 c354c084b7facdcac862dc436872d614 echo x - tircd/distinfo sed 's/^X//' >tircd/distinfo << 'b9e41b7771bb359357e49748e964f003' XMD5 (tircd_v0.10.tgz) = b98d8dfac4aec44327f65e5643b5af34 XSHA256 (tircd_v0.10.tgz) = 81f5ea5441af71d242acc4c2e98757e26005f19235752e8053193bab2aecea54 XSIZE (tircd_v0.10.tgz) = 26766 b9e41b7771bb359357e49748e964f003 echo c - tircd/files mkdir -p tircd/files > /dev/null 2>&1 echo x - tircd/files/tircd.sh.in sed 's/^X//' >tircd/files/tircd.sh.in << '6bc58d6b695dfcd68bfb6d80694ddc25' 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" 6bc58d6b695dfcd68bfb6d80694ddc25 echo x - tircd/pkg-descr sed 's/^X//' >tircd/pkg-descr << '427b34f85ca9bbc5bbd82df12d0b91e8' 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/ 427b34f85ca9bbc5bbd82df12d0b91e8 echo x - tircd/pkg-plist sed 's/^X//' >tircd/pkg-plist << '55c7a1140a29ce27ac7dbd0cd4c754f0' 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 55c7a1140a29ce27ac7dbd0cd4c754f0 exit