debian/0000755000000000000000000000000012157773214007177 5ustar debian/control0000644000000000000000000000151012157773214010577 0ustar Source: tircd Section: net Priority: optional Build-Depends: debhelper (>= 7) Maintainer: Michael Stapelberg Standards-Version: 3.9.4 Homepage: http://code.google.com/p/tircd/ Package: tircd Architecture: all Depends: adduser, libjson-any-perl, libwww-perl, libpoe-perl, liburi-perl, libhtml-parser-perl, libnet-twitter-lite-perl (>= 0.12002-3), libpoe-filter-ircd-perl, ${misc:Depends} Description: ircd proxy to the twitter API tircd presents Twitter as an IRC channel. You can connect to tircd with any IRC client, and Twitter as if you were on IRC. . To update your status on Twitter, send a message to the #twitter channel. When users you follow update their status, tircd will be sent to the channel as a message from them. Other actions are similarly mapped to the equivalent IRC commands and events. debian/tircd.default0000644000000000000000000000001212157771770011650 0ustar ENABLED=0 debian/source/0000755000000000000000000000000012157771770010504 5ustar debian/source/format0000644000000000000000000000001412157771770011712 0ustar 3.0 (quilt) debian/compat0000644000000000000000000000000212157771770010402 0ustar 7 debian/tircd.init0000644000000000000000000000236012157771770011177 0ustar #!/bin/sh ### BEGIN INIT INFO # Provides: tircd # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Twitter IRC deamon ### END INIT INFO ACTION="${1}" NAME="tircd" DESC="Twitter IRC proxy" PIDFILE="/var/run/tircd.pid" LOGFILE="/var/log/tircd/tircd.log" BINARY="/usr/bin/tircd" test -x ${BINARY} || exit 0 . /lib/lsb/init-functions ENABLED=0 if [ -f /etc/default/tircd ]; then . /etc/default/tircd fi case "${ACTION}" in start|start-now) if [ "${ENABLED}" != "1" ]; then exit 0 fi log_daemon_msg "Starting ${DESC}" ${NAME} if start-stop-daemon --start -q --oknodo --pidfile ${PIDFILE} \ --make-pidfile --chuid tircd --user tircd --name tircd \ --background --startas ${BINARY} then log_end_msg 0 else log_end_msg 1 fi ;; stop|stop-now) log_daemon_msg "Stopping ${DESC}" ${NAME} if start-stop-daemon --stop --quiet --pidfile ${PIDFILE} \ --retry 10 2>&1 >>${LOGFILE} then rm -f ${PIDFILE} log_end_msg 0 else log_end_msg 1 fi ;; restart|force-reload) ${0} stop sleep 1 ${0} start ;; *) echo "Usage: /etc/init.d/${NAME} {start|stop|restart|force-reload}" exit 1 ;; esac exit 0 debian/tircd.postinst0000644000000000000000000000034712157771770012122 0ustar #!/bin/sh set -e if [ "$1" = "configure" ]; then adduser --system --quiet --group --no-create-home tircd || true mkdir -p /var/log/tircd chown -R tircd:tircd /var/log/tircd chown -R tircd:tircd /var/lib/tircd fi #DEBHELPER# debian/rules0000755000000000000000000000103312157772527010262 0ustar #!/usr/bin/make -f build: build-arch build-indep build-arch: build-stamp build-indep: build-stamp build-stamp: dh build touch $@ clean: dh $@ install: install-stamp install-stamp: build-stamp dh install install -m 644 tircd.cfg.example debian/tircd/etc/tircd.cfg install tircd.pl debian/tircd/usr/bin/tircd pod2man tircd.pod > debian/tircd/usr/share/man/man1/tircd.1 dh_compress touch $@ binary-arch: binary-indep: install dh $@ binary: binary-arch binary-indep .PHONY: binary binary-arch binary-indep install clean build debian/examples/0000755000000000000000000000000012157771770011022 5ustar debian/examples/tweetlen.pl0000644000000000000000000000436312157771770013214 0ustar # tweetlen - keep track of the length of your tweets # -------------------------------------------------- # # This script provides a statusbar item (called 'tweetlen') that, when # you are typing in #twitter, displays how many characters you have # left out of Twitter's 140-character limit. If you have fewer than 20 # characters left, the item is highlighted in magenta, and if there # are fewer than 10, red. # # To add it to your statusbar, load this script and then type # "/statusbar window add -alignment right tweetlen". (Replace the # -alignment with whatever suits your taste.) # Copyright (c) 2009, Decklin Foster # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. use Irssi; use Irssi::TextUI; use strict; our %IRSSI = ( authors => 'Decklin Foster', contact => 'decklin@red-bean.com', name => 'tweetlen', description => 'Update length of tweet in statusbar', license => 'ISC', ); Irssi::statusbar_item_register('tweetlen', undef, 'tweetlen_sb'); Irssi::signal_add_last('gui key pressed', 'key_pressed'); sub key_pressed { Irssi::statusbar_items_redraw('tweetlen'); } sub tweetlen_sb { my ($item, $size_only) = @_; my @witems = Irssi::active_win->items; my $text = ""; if (@witems && $witems[0]->{name} eq "#twitter") { my $chars = 140 - length(Irssi::parse_special("\$L")); if ($chars < 10) { $chars = "%R$chars%n"; } elsif ($chars < 20) { $chars = "%M$chars%n"; } $text = "{sb $chars}"; } $item->default_handler($size_only, $text, undef, 1); } debian/watch0000644000000000000000000000026412157772070010231 0ustar version=3 http://code.google.com/p/tircd/downloads/list .*=tircd[_\-]v?(\d.*)\.(?:tgz|tbz2|tar\.(?:gz|bz2|xz)).* # Bart Martens Sat, 01 Dec 2012 12:13:36 +0000 debian/tircd.dirs0000644000000000000000000000005512157771770011174 0ustar etc usr/bin usr/share/man/man1 var/lib/tircd debian/gbp.conf0000644000000000000000000000003612157771770010622 0ustar [DEFAULT] pristine-tar = True debian/patches/0000755000000000000000000000000012157772434010631 5ustar debian/patches/series0000644000000000000000000000006412157771770012050 0ustar digest_sha.patch default_config.patch logging.patch debian/patches/digest_sha.patch0000644000000000000000000000125112157772324013761 0ustar Description: Use Digest::SHA instead of Digest::SHA1 Digest::SHA1 is not available in Debian, but Digest::SHA is shipped with perl > 5.9, so we use that. Author: Michael Stapelberg --- Forwarded: http://code.google.com/p/tircd/issues/detail?id=102 Last-Update: 2012-05-20 Index: tircd-0.30/tircd.pl =================================================================== --- tircd-0.30.orig/tircd.pl 2013-06-16 10:31:29.000000000 +0200 +++ tircd-0.30/tircd.pl 2013-06-18 07:49:01.856603277 +0200 @@ -20,7 +20,7 @@ # @Olatho - issue 45 use HTML::Entities; -use Digest::SHA1 qw(sha1_base64); +use Digest::SHA qw(sha1_base64); my $VERSION = '.30'; debian/patches/default_config.patch0000644000000000000000000000173512157772410014623 0ustar Description: default config: store data in /var/lib The default config which tircd ships needs to be changed by the user, otherwise all data will not survive cleaning /tmp (when rebooting, for example). This patch changes the storage_path to be /var/lib/tircd. Author: Michael Stapelberg --- Forwarded: not-needed Last-Update: 2012-05-20 Index: tircd-0.30/tircd.cfg.example =================================================================== --- tircd-0.30.orig/tircd.cfg.example 2013-06-16 10:31:44.000000000 +0200 +++ tircd-0.30/tircd.cfg.example 2013-06-18 07:49:58.275861085 +0200 @@ -33,7 +33,7 @@ # This controls where tircd will store it's configuration data # This is used to store per-user preferences and channel lineups # If not set, data will not be saved between user sessions -storage_path /tmp/tircd +storage_path /var/lib/tircd # This controls how POE logs data # Current options for logtype are 'stdout', 'stderr', 'file', or 'none', debian/patches/logging.patch0000644000000000000000000000142112157772434013276 0ustar Description: Log to file Make tircd log to file by default. Author: Michael Stapelberg --- Forwarded: not-needed Last-Update: 2012-05-20 Index: tircd-0.30/tircd.cfg.example =================================================================== --- tircd-0.30.orig/tircd.cfg.example 2013-06-18 07:49:58.275861085 +0200 +++ tircd-0.30/tircd.cfg.example 2013-06-18 07:50:18.723592083 +0200 @@ -38,8 +38,8 @@ # This controls how POE logs data # Current options for logtype are 'stdout', 'stderr', 'file', or 'none', # If file is chosen logfile must be set to a path for the log file -logtype stdout -logfile tircd.log +logtype file +logfile /var/log/tircd/tircd.log # This option turns on lots of extra debugging. The default setting is 0 or off. debug 0 debian/copyright0000644000000000000000000000313412157771770011140 0ustar This package was debianized by Decklin Foster on Thu, 12 Mar 2009 12:56:21 -0400. It was downloaded from . Upstream Author: Chris Nelson Copyright: Copyright (c) 2009 Chris Nelson License: tircd is free software; you can redistribute it and/or modify it under the terms of either: a) the GNU General Public License as published by the Free Software Foundation b) the "Artistic License" tweetlen.pl's license: Copyright (c) 2009, Decklin Foster Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. On Debian GNU/Linux systems, the complete text of the Artistic License can be found in `/usr/share/common-licenses/Artistic'. The Debian packaging is copyright 2009, Decklin Foster and is licensed under the GPL, see `/usr/share/common-licenses/GPL'. debian/tircd.postrm0000644000000000000000000000021112157771770011551 0ustar #!/bin/sh set -e #DEBHELPER# if [ "$1" = "purge" ]; then deluser --quiet --system tircd >/dev/null || true rm -rf /var/log/tircd fi debian/changelog0000644000000000000000000000226712157772213011056 0ustar tircd (0.30-1) unstable; urgency=low * New upstream release (Closes: #712441) * Include updated debian/watch file (Thanks bartm) * Bump Standards-Version (no changes necessary) -- Michael Stapelberg Tue, 18 Jun 2013 07:45:57 +0200 tircd (0.21.2-2) unstable; urgency=low * Ship /var/lib/tircd as an empty directory (Closes: #673789) -- Michael Stapelberg Mon, 21 May 2012 23:21:40 +0200 tircd (0.21.2-1) unstable; urgency=low * New upstream version (Closes: #622884) * New maintainer (Closes: #660511) * Add init script, run as tircd user (Closes: #586977) -- Michael Stapelberg Sun, 20 May 2012 16:54:54 +0200 tircd (0.10-2) unstable; urgency=low * Fix PONG replies (Closes: #548736) -- Decklin Foster Tue, 02 Mar 2010 12:13:52 -0500 tircd (0.10-1) unstable; urgency=low * New upstream version * Add tweetlen.pl to examples * Fix watch file -- Decklin Foster Tue, 02 Mar 2010 11:27:56 -0500 tircd (0.7-1) unstable; urgency=low * Initial release (Closes: #518180) -- Decklin Foster Thu, 12 Mar 2009 12:53:41 -0400 debian/tircd.examples0000644000000000000000000000003412157771770012046 0ustar debian/examples/tweetlen.pl