the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: pisg
Version: 0.70
Revision: 1
###
Depends: system-perl
BuildDepends: fink (>= 0.24.12-1), system-perl
###
Source: mirror:sourceforge:%n/%n-%v.tar.gz
Source-MD5: 870c5ddf353c70d32159ac2dd310efc7
###
PatchFile: %n.patch
PatchFile-MD5: 22ada0ccc8ae14ba2bebb2ebb2a1e25a
PatchScript: sed 's|@FINKPREFIX@|%p|g' < %{PatchFile} | patch -p1
###
CompileScript: <<
#!/bin/sh -ev
echo "### No compile needed!"
<<
InstallScript: <<
#!/bin/sh -ev
INSTALLDATA="install -m 644"
INSTALLDIR="install -d -m 755"
INSTALLBIN="install -m 755"
echo "### making needed dirs"
echo " - making bin"
$INSTALLDIR %i/bin
echo " - making etc/cron.daily"
$INSTALLDIR %i/etc/cron.daily
echo " - making share/pisg"
$INSTALLDIR %i/share/pisg
echo " - making lib/perl5"
$INSTALLDIR %i/lib/perl5
echo " - making share/man/man1"
$INSTALLDIR %i/share/man/man1
echo " - making share/doc/pisg"
$INSTALLDIR %i/share/doc/pisg
echo
echo "### installing binary"
echo " - installing bin/pisg"
$INSTALLBIN pisg %i/bin
echo
echo "### installing default config"
echo " - installing etc/pisg.cfg"
$INSTALLDATA pisg.cfg %i/etc
echo
echo "### installing default daily cron script"
echo " - installing etc/cron.daily/pisg"
$INSTALLBIN cron.daily %i/etc/cron.daily/pisg
echo
echo "### installing man page"
echo " - installing share/man/man1/pisg.1"
$INSTALLDATA pisg.1 %i/share/man/man1
echo
echo "### installing perl modules"
cd modules
for i in `find . -name \* | sed -e s,"\./","",g`
do
if [ -d $i ]
then
echo " - making dir lib/perl5/$i"
$INSTALLDIR %i/lib/perl5/$i
elif [ -f $i ]
then
echo " - installing lib/perl5/$i"
$INSTALLDATA $i %i/lib/perl5/$i
fi
done
cd ..
echo
echo "### installing pisg language support"
echo " - installing share/pisg/lang.txt"
$INSTALLDATA lang.txt %i/share/pisg
echo
echo "### installing pisg gfxs"
echo " - making dir share/pisg/gfx"
$INSTALLDIR %i/share/pisg/gfx
cd gfx
for i in *
do
if [ -d $i ]
then
echo " - making dir share/pisg/gfx/$i"
$INSTALLDIR %i/share/pisg/gfx/$i
elif [ -f $i ]
then
echo " - installing share/pisg/gfx/$i"
$INSTALLDATA $i %i/share/pisg/gfx/$i
fi
done
cd ..
echo
echo "### installing pisg layouts"
echo " - making dir share/pisg/layout"
$INSTALLDIR %i/share/pisg/layout
cd layout
for i in *
do
if [ -d $i ]
then
echo " - making dir share/pisg/layout/$i"
$INSTALLDIR %i/share/pisg/layout/$i
elif [ -f $i ]
then
echo " - installing share/pisg/layout/$i"
$INSTALLDATA $i %i/share/pisg/layout/$i
fi
done
cd ..
echo
echo "### installing pisg extra scripts"
echo " - making dir share/pisg/scripts"
$INSTALLDIR %i/share/pisg/scripts
cd scripts
for i in `find . -name \* | sed -e s,"\./","",g`
do
if [ -d $i ]
then
echo " - making dir share/pisg/scripts/$i"
$INSTALLDIR %i/share/pisg/scripts/$i
elif [ -f $i ]
then
echo " - installing share/pisg/scripts/$i"
$INSTALLDATA $i %i/share/pisg/scripts/$i
fi
done
cd ..
echo
echo "### installing pisg docs"
echo " - making dir share/doc/pisg"
$INSTALLDIR %i/share/doc/pisg
cd docs
for i in `find . -name \* | sed -e s,"\./","",g`
do
if [ -d $i ]
then
echo " - making dir share/doc/pisg/$i"
$INSTALLDIR %i/share/doc/pisg/$i
elif [ -f $i ]
then
echo " - installing share/doc/pisg/$i"
$INSTALLDATA $i %i/share/doc/pisg/$i
fi
done
cd ..
<<
###
DocFiles: COPYING README
ConfFiles: %p/etc/pisg.cfg
###
Description: Perl IRC Statistics Generator
DescDetail: <<
pisg is an IRC channel statics generator written in Perl, it creates
statistics out from different logfile formats - it was written because
IRCStats wasn't open source. So here's an open source/GPL'ed version to
anyone interested. It's a funny thing for your IRC channel, and it's
highly customizeable.
<<
###
License: GPL
Maintainer: None
Homepage: http://pisg.sourceforge.net/
diff -uNr pisg-0.70/cron.daily pisg-0.70-new/cron.daily
--- pisg-0.70/cron.daily 1969-12-31 19:00:00.000000000 -0500
+++ pisg-0.70-new/cron.daily 2007-02-04 18:48:23.000000000 -0500
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+source @FINKPREFIX@/bin/init.sh
+
+PISG_BIN=@FINKPREFIX@/bin/pisg
+PISG_CONF=@FINKPREFIX@/etc/pisg.cfg
+
+# See if the pisg binary and config file exists
+[ -f ${PISG_BIN} ] || exit 1
+[ -f ${PISG_CONF} ] || exit 1
+
+# Run pisg quietly
+${PISG_BIN} -s -co ${PISG_CONF}
+
+# Exit with pisg's exit code
+exit $?
diff -uNr pisg-0.70/modules/Pisg.pm pisg-0.70-new/modules/Pisg.pm
--- pisg-0.70/modules/Pisg.pm 2006-09-14 14:41:32.000000000 -0400
+++ pisg-0.70-new/modules/Pisg.pm 2007-02-04 18:49:20.000000000 -0500
@@ -101,15 +101,15 @@
maintainer => 'MAINTAINER',
pagehead => 'none',
pagefoot => 'none',
- configfile => 'pisg.cfg',
+ configfile => '@FINKPREFIX@/etc/pisg.cfg',
imagepath => '',
imageglobpath => '',
defaultpic => '',
logdir => [],
nfiles => 0,
lang => 'EN',
- langfile => 'lang.txt',
- cssdir => 'layout/',
+ langfile => '@FINKPREFIX@/share/pisg/lang.txt',
+ cssdir => '@FINKPREFIX@/share/pisg/layout/',
colorscheme => 'default',
altcolorscheme => 'none',
logprefix => '',
diff -uNr pisg-0.70/pisg.1 pisg-0.70-new/pisg.1
--- pisg-0.70/pisg.1 1969-12-31 19:00:00.000000000 -0500
+++ pisg-0.70-new/pisg.1 2007-02-04 18:48:23.000000000 -0500
@@ -0,0 +1,118 @@
+.\" This -*- nroff -*- file has been generated from
+.\" DocBook SGML with docbook-to-man on Debian GNU/Linux.
+...\"
+...\" transcript compatibility for postscript use.
+...\"
+...\" synopsis: .P!
+...\"
+.de P!
+\\&.
+.fl \" force out current output buffer
+\\!%PB
+\\!/showpage{}def
+...\" the following is from Ken Flowers -- it prevents dictionary overflows
+\\!/tempdict 200 dict def tempdict begin
+.fl \" prolog
+.sy cat \\$1\" bring in postscript file
+...\" the following line matches the tempdict above
+\\!end % tempdict %
+\\!PE
+\\!.
+.sp \\$2u \" move below the image
+..
+.de pF
+.ie \\*(f1 .ds f1 \\n(.f
+.el .ie \\*(f2 .ds f2 \\n(.f
+.el .ie \\*(f3 .ds f3 \\n(.f
+.el .ie \\*(f4 .ds f4 \\n(.f
+.el .tm ? font overflow
+.ft \\$1
+..
+.de fP
+.ie !\\*(f4 \{\
+. ft \\*(f4
+. ds f4\"
+' br \}
+.el .ie !\\*(f3 \{\
+. ft \\*(f3
+. ds f3\"
+' br \}
+.el .ie !\\*(f2 \{\
+. ft \\*(f2
+. ds f2\"
+' br \}
+.el .ie !\\*(f1 \{\
+. ft \\*(f1
+. ds f1\"
+' br \}
+.el .tm ? font underflow
+..
+.ds f1\"
+.ds f2\"
+.ds f3\"
+.ds f4\"
+'\" t
+.ta 8n 16n 24n 32n 40n 48n 56n 64n 72n
+.TH "PISG" "1"
+.SH "NAME"
+pisg \(em Perl IRC Statistics Generator
+.SH "DESCRIPTION"
+.PP
+This manual page documents briefly \fBpisg\fP
+.PP
+This manual page was written for the \fBDebian\fP distribution
+because the original program does not have a manual page.
+.PP
+\fBpisg\fP is a program which takes IRC logiles and turns
+the into nice looking stats, which can be amusing to show to the users
+og your channel. It's quite simple to set up using command line or
+configuration file (more flexible and configurable
+.SH "OPTIONS"
+.PP
+These programs follow the usual GNU command line syntax,
+with long options starting with two dashes (`-'). A summary of
+options is included below.
+.IP "\fB-ch --channel=\fP" 10
+Set channel name
+.IP "\fB-l --logfile=\fP" 10
+Log file to parse
+.IP "\fB-o --outfile=\fP" 10
+Name of HTML file to create
+.IP "\fB-ma --maintainer=\fP" 10
+Channel/stats maintainer
+.IP "\fB-f --format=\fP" 10
+Logfile format
+.IP "\fB-n --network=\fP" 10
+IRC network of the
+channel
+.IP "\fB-d --dir=\fP" 10
+Analyse all files in this
+directory. Ignores --logfile
+.IP "\fB-p --prefix=\fP" 10
+Analyse only files prefixed
+by something in dir. Only works with
+--dir
+.IP "\fB-cf ---cfg opt=value\fP" 10
+Specify configuration options
+.IP "\fB-co
+--configfile=\fP" 10
+Configuration file
+.IP "\fB-mo --moduledir=\fP" 10
+Directory containing pisg modules
+.IP "\fB-s --silent\fP" 10
+Suppress output (except error
+messages)
+.IP "\fB-v --version\fP" 10
+Show version
+.IP "\fB-h --help\fP" 10
+Show help
+.SH "AUTHOR"
+.PP
+This manual page was written by Julien Danjou acid@debian.org for
+the \fBDebian\fP system (but may be used by others). Permission is
+granted to copy, distribute and/or modify this document under
+the terms of the GNU Free Documentation
+License, Version 1.1 or any later version published by the Free
+Software Foundation; with no Invariant Sections, no Front-Cover
+Texts and no Back-Cover Texts.
+...\" created by instant / docbook-to-man, Sun 12 May 2002, 19:49