--- piespy-0.4.0.orig/debian/compat
+++ piespy-0.4.0/debian/compat
@@ -0,0 +1 @@
+5
--- piespy-0.4.0.orig/debian/dirs
+++ piespy-0.4.0/debian/dirs
@@ -0,0 +1,2 @@
+usr/bin
+usr/share/piespy
--- piespy-0.4.0.orig/debian/piespy.sh
+++ piespy-0.4.0/debian/piespy.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+INI="$1"
+shift
+if [ "x$INI" == "x" ]; then
+ INI="./config.ini"
+fi
+
+if [ ! -e "$INI" ]; then
+ echo Configuration file "$INI" not found. >&2
+ echo An example configuration file may be found in >&2
+ echo /usr/share/doc/piespy/examples/config.ini . >&2
+ exit 1
+fi
+
+if [ "x$2" != "x" ]; then
+ echo "Usage: piespy [configuration file]" >&2
+ exit 1
+fi
+
+exec java -Djava.awt.headless=true -classpath /usr/share/piespy/pircbot.jar:/usr/share/piespy/piespy.jar org.jibble.socnet.SocialNetworkBot "$INI"
--- piespy-0.4.0.orig/debian/rules
+++ piespy-0.4.0/debian/rules
@@ -0,0 +1,86 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
+endif
+
+## Upstream distributes pircbot as a JAR of both binaries and source.
+## Here we rebuild it out of paranoia.
+
+pircbot.jar:
+ dh_testdir
+ cd lib && mkdir pircbot && cd pircbot && \
+ jar -xf ../pircbot.jar && \
+ find . -name '*.class' -exec rm {} ';' && \
+ javac `find . -name '*.java'` && \
+ jar -cf ../../pircbot.jar org
+
+piespy.jar: pircbot.jar
+ dh_testdir
+ mkdir piebuild && cd piebuild && cp -R ../org . && \
+ find . -name '*.class' -exec rm {} ';' && \
+ find . -name 'CVS' | xargs rm -rf && \
+ javac -classpath $(CURDIR)/pircbot.jar `find . -name '*.java'` && \
+ jar -cf ../piespy.jar org
+
+build: pircbot.jar piespy.jar
+ cd debian/; \
+ xsltproc --nonet /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl piespy.man.xml
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -rf build-stamp pircbot.jar piespy.jar lib/pircbot piebuild debian/piespy.1
+
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ install -m 644 pircbot.jar piespy.jar $(CURDIR)/debian/piespy/usr/share/piespy
+ install debian/piespy.sh $(CURDIR)/debian/piespy/usr/bin/piespy
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs
+ dh_installdocs
+ dh_installexamples $(CURDIR)/config.ini
+ dh_install
+ dh_installman debian/piespy.1
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary-arch:
+ ### Nothing to do
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
--- piespy-0.4.0.orig/debian/piespy.man.xml
+++ piespy-0.4.0/debian/piespy.man.xml
@@ -0,0 +1,123 @@
+<?xml version='1.0' encoding='ISO-8859-1'?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
+"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
+
+<!--
+
+Process this file with an XSLT processor: `xsltproc \
+-''-nonet /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/\
+manpages/docbook.xsl manpage.dbk'. A manual page
+<package>.<section> will be generated. You may view the
+manual page with: nroff -man <package>.<section> | less'. A
+typical entry in a Makefile or Makefile.am is:
+
+DB2MAN=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/\
+manpages/docbook.xsl
+XP=xsltproc -''-nonet
+
+manpage.1: manpage.dbk
+ $(XP) $(DB2MAN) $<
+
+The xsltproc binary is found in the xsltproc package. The
+XSL files are in docbook-xsl. Please remember that if you
+create the nroff version in one of the debian/rules file
+targets (such as build), you will need to include xsltproc
+and docbook-xsl in your Build-Depends control field.
+
+-->
+
+ <!-- Fill in your name for FIRSTNAME and SURNAME. -->
+ <!ENTITY dhfirstname "<firstname>Bryan</firstname>">
+ <!ENTITY dhsurname "<surname>Donlan</surname>">
+ <!-- Please adjust the date whenever revising the manpage. -->
+ <!ENTITY dhdate "<date>2007-04-05</date>">
+ <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
+ allowed: see man(7), man(1). -->
+ <!ENTITY dhsection "<manvolnum>1</manvolnum>">
+ <!ENTITY dhemail "<email>bdonlan@gmail.com</email>">
+ <!ENTITY dhusername "Bryan Donlan">
+ <!ENTITY dhucpackage "<refentrytitle>piespy</refentrytitle>">
+ <!ENTITY dhpackage "piespy">
+
+ <!ENTITY debian "<productname>Debian</productname>">
+ <!ENTITY gnu "<acronym>GNU</acronym>">
+ <!ENTITY gpl "&gnu; <acronym>GPL</acronym>">
+]>
+
+<refentry>
+ <refentryinfo>
+ <address>
+ &dhemail;
+ </address>
+ <author>
+ &dhfirstname;
+ &dhsurname;
+ </author>
+ <copyright>
+ <year>2007</year>
+ <holder>&dhusername;</holder>
+ </copyright>
+ &dhdate;
+ </refentryinfo>
+ <refmeta>
+ &dhucpackage;
+
+ &dhsection;
+ </refmeta>
+ <refnamediv>
+ <refname>&dhpackage;</refname>
+
+ <refpurpose>bot to visualize IRC social networks</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <cmdsynopsis>
+ <command>&dhpackage;</command>
+ <arg><option>configuration file</option></arg>
+ </cmdsynopsis>
+ </refsynopsisdiv>
+ <refsect1>
+ <title>DESCRIPTION</title>
+
+ <para>This manual page documents briefly the
+ <command>&dhpackage;</command> and <command>bar</command>
+ commands.</para>
+
+ <para>This manual page was written for the &debian; distribution
+ because the original program does not have a manual page.
+ </para>
+
+ <para><command>&dhpackage;</command> is a program that monitors an IRC
+ channel, and graphs the social relationships in that channel.
+ </para>
+ </refsect1>
+ <refsect1>
+ <title>OPTIONS</title>
+
+
+ <variablelist>
+ <varlistentry>
+ <term><option><replaceable>configuration file</replaceable></option></term>
+ <listitem>
+ <para>The configuration file to use. If none is specified, config.ini in the current directory will be used.</para>
+ </listitem>
+ </varlistentry>
+
+ </variablelist>
+ </refsect1>
+ <refsect1>
+ <title>AUTHOR</title>
+
+ <para>This manual page was written by &dhusername; &dhemail; for
+ the &debian; system (but may be used by others). Permission is
+ granted to copy, distribute and/or modify this document under
+ the terms of the &gnu; General Public License, Version 2 any
+ later version published by the Free Software Foundation.
+ </para>
+ <para>
+ On Debian systems, the complete text of the GNU General Public
+ License can be found in /usr/share/common-licenses/GPL.
+ </para>
+
+ </refsect1>
+</refentry>
+
--- piespy-0.4.0.orig/debian/control
+++ piespy-0.4.0/debian/control
@@ -0,0 +1,17 @@
+Source: piespy
+Section: net
+Priority: extra
+Maintainer: Bryan Donlan <bdonlan@gmail.com>
+Build-Depends: debhelper (>= 5), default-jdk | java-compiler, fastjar | jar, xsltproc, docbook-xsl
+Standards-Version: 3.7.2
+Homepage: http://www.jibble.org/piespy/
+
+Package: piespy
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, openjdk-6-jre | java-runtime
+Description: An IRC bot to visualize social networks
+ PieSpy is an IRC bot that monitors a set of IRC channels. It uses a
+ simple set of heuristics to infer relationships between pairs of users.
+ These inferrences allow PieSpy to build a mathematical model of a
+ social network for any channel. These social networks can be drawn and
+ used to create animations of evolving social networks.
--- piespy-0.4.0.orig/debian/copyright
+++ piespy-0.4.0/debian/copyright
@@ -0,0 +1,20 @@
+This package was debianized by Bryan Donlan <bdonlan@gmail.com> on
+Sun, 1 Apr 2007 23:38:19 -0400.
+
+It was downloaded from http://www.jibble.org/piespy/
+
+Upstream Author: Paul James Mutton <paul@jibble.org>
+
+Copyright: Copyright 2001-2004 Paul James Mutton
+
+License:
+
+This software is dual-licensed, allowing you to choose between the GNU
+General Public License (GPL) and the www.jibble.org Commercial License.
+Since the GPL may be too restrictive for use in a proprietary application,
+a commercial license is also provided. Full license information can be
+found at http://www.jibble.org/licenses/ . The full text of the GPL is also
+available on debian systems as /usr/share/common-licenses/GPL .
+
+The Debian packaging is (C) 2007, Bryan Donlan <bdonlan@gmail.com> and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
--- piespy-0.4.0.orig/debian/docs
+++ piespy-0.4.0/debian/docs
@@ -0,0 +1 @@
+README.txt
--- piespy-0.4.0.orig/debian/changelog
+++ piespy-0.4.0/debian/changelog
@@ -0,0 +1,29 @@
+piespy (0.4.0-2.2) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Build-depend on default-jdk instead of gcj.
+
+ -- Matthias Klose <doko@debian.org> Mon, 29 Aug 2011 21:22:13 +0200
+
+piespy (0.4.0-2.1) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Switch to openjdk, closes: #484535, #481988
+ * Add homepage field
+ * Remove empty dir /usr/sbin from package
+
+ -- Riku Voipio <riku.voipio@iki.fi> Thu, 04 Sep 2008 18:14:53 +0300
+
+piespy (0.4.0-2) unstable; urgency=low
+
+ * Fix duplicate entry in debian/docs
+ * Fix FTBFS by using single dash arguments (Closes: #423819)
+
+ -- Bryan Donlan <bdonlan@gmail.com> Thu, 17 May 2007 19:53:00 -0400
+
+piespy (0.4.0-1) unstable; urgency=low
+
+ * Initial release (Closes: #374860)
+
+ -- Bryan Donlan <bdonlan@gmail.com> Mon, 02 Apr 2007 00:48:32 -0400
+
--- piespy-0.4.0.orig/debian/watch
+++ piespy-0.4.0/debian/watch
@@ -0,0 +1,4 @@
+version=3
+
+http://www.jibble.org/piespy/ \
+ .*/files/PieSpy-(.*).zip