Update of /cvsroot/fink/experimental/thesin/finkinfo/utils
In directory sc8-pr-cvs1:/tmp/cvs-serv31287

Added Files:
        pisg-0.44-2.info pisg-0.44-2.patch 
Removed Files:
        pisg-0.44-1.info pisg-0.44-1.patch 
Log Message:
fix for the cronjob

--- NEW FILE: pisg-0.44-2.info ---
Package: pisg
Version: 0.44
Revision: 2
###
Depends: getopt-long-pm
###
Source: mirror:sourceforge:%n/%n-%v.tar.gz
Source-MD5: 3443111791a13d03190ac315ec03481e
###
PatchScript: sed 's|@FINKPREFIX@|%p|g' < %a/%f.patch | patch -p1
###
CompileScript: <<
  #!/bin/sh
  echo "### No compile needed!"
<<
InstallScript: <<
  #!/bin/sh
  echo "### making needed dirs"
  echo "  - making %i/bin"
  mkdir -p %i/bin
  echo "  - making %i/etc/cron.daily"
  mkdir -p %i/etc/cron.daily
  echo "  - making %i/share/pisg"
  mkdir -p %i/share/pisg
  echo "  - making %i/lib/perl5"
  mkdir -p %i/lib/perl5
  echo "  - making %i/share/man/man1"
  mkdir -p %i/share/man/man1
  echo "  - making %i/share/doc/pisg"
  mkdir -p %i/share/doc/pisg
  echo
  echo "### installing binary"
  echo "  - installing %i/bin/pisg"
  install -m 755 pisg %i/bin
  echo
  echo "### installing default config"
  echo "  - installing %i/etc/pisg.cfg"
  install -m 644 pisg.cfg %i/etc
  echo
  echo "### installing default daily cron script"
  echo "  - installing %i/etc/cron.daily/pisg"
  install -m 755 cron.daily %i/etc/cron.daily/pisg
  echo
  echo "### installing man page"
  echo "  - installing %i/share/man/man1/pisg.1"
  install -m 644 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 %i/lib/perl5/$i"
      mkdir -p %i/lib/perl5/$i
    elif [ -f $i ]
    then
      echo "  - installing %i/lib/perl5/$i"
      install -m 644 $i %i/lib/perl5/$i
    fi
  done
  cd ..
  echo
  echo "### installing pisg language support"
  echo "  - installing %i/share/pisg/lang.txt"
  install -m 644 lang.txt %i/share/pisg
  echo
  echo "### installing pisg gfxs"
  echo "  - making dir %i/share/pisg/gfx"
  mkdir -p %i/share/pisg/gfx
  cd gfx
  for i in *
  do
    if [ -d $i ]
    then 
      echo "  - making dir %i/share/pisg/gfx/$i"
      mkdir -p %i/share/pisg/gfx/$i
    elif [ -f $i ]
    then
      echo "  - installing %i/share/pisg/gfx/$i"
      install -m 644 $i %i/share/pisg/gfx/$i
    fi
  done
  cd ..
  echo
  echo "### installing pisg layouts"
  echo "  - making dir %i/share/pisg/layout"
  mkdir -p %i/share/pisg/layout
  cd layout
  for i in *
  do
    if [ -d $i ]
    then 
      echo "  - making dir %i/share/pisg/layout/$i"
      mkdir -p %i/share/pisg/layout/$i
    elif [ -f $i ]
    then
      echo "  - installing %i/share/pisg/layout/$i"
      install -m 644 $i %i/share/pisg/layout/$i
    fi
  done
  cd ..
  echo
  echo "### installing pisg extra scripts"
  cd scripts
  for i in `find . -name \* | sed -e s,"\./","",g`
  do
    if [ -d $i ]
    then 
      echo "  - making dir %i/share/doc/pisg/scripts/$i"
      mkdir -p %i/share/doc/pisg/scripts/$i
    elif [ -f $i ]
    then
      echo "  - installing %i/share/doc/pisg/scripts/$i"
      install -m 644 $i %i/share/doc/pisg/scripts/$i
    fi
  done
  cd ..
  echo
  echo "### installing pisg docs"
  cd docs
  for i in `find . -name \* | sed -e s,"\./","",g`
  do
    if [ -d $i ]
    then
      echo "  - making dir %i/share/doc/pisg/docs/$i"
      mkdir -p %i/share/doc/pisg/docs/$i
    elif [ -f $i ]
    then
      echo "  - installing %i/share/doc/pisg/docs/$i"
      install -m 644 $i %i/share/doc/pisg/docs/$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: Justin F. Hallett <[EMAIL PROTECTED]>
Homepage: http://pisg.sourceforge.net/

--- NEW FILE: pisg-0.44-2.patch ---
diff -ruN pisg-0.44.orig/cron.daily pisg-0.44/cron.daily
--- pisg-0.44.orig/cron.daily   Wed Dec 31 17:00:00 1969
+++ pisg-0.44/cron.daily        Wed Jan 15 08:49:10 2003
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+source @FINKPREFIX@/bin/init.sh
+
+PISG_BIN=@FINKPREFIX@/bin/pisg
+PISG_CONF_DIR=@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 -ruN pisg-0.44.orig/modules/Pisg/Parser/Format/blootbot.pm 
pisg-0.44/modules/Pisg/Parser/Format/blootbot.pm
--- pisg-0.44.orig/modules/Pisg/Parser/Format/blootbot.pm       Wed Dec 31 17:00:00 
1969
+++ pisg-0.44/modules/Pisg/Parser/Format/blootbot.pm    Tue Jan 14 23:25:15 2003
@@ -0,0 +1,103 @@
+# package for blootbot parsing made by Justin F. Hallett <[EMAIL PROTECTED]>
+package Pisg::Parser::Format::blootbot;
+
+# Documentation for the Pisg::Parser::Format modules is found in Template.pm
+
+use strict;
+$^W = 1;
+
+sub new
+{
+    my ($type, %args) = @_;
+    my $self = {
+        cfg => $args{cfg},
+        normalline => '^(\d\d):\d\d\.\d\d <(\S+)\/(\S+)> (.*)',
+        actionline => '^(\d\d):\d\d\.\d\d \* (\S+)\/(\S+) (.*)',
+        thirdline  => '^(\d\d):(\d\d)\.\d\d >>> (.*)',
+    };
+
+    bless($self, $type);
+    return $self;
+}
+
+sub normalline
+{
+    my ($self, $line, $lines) = @_;
+    my %hash;
+
+    if ($line =~ /$self->{normalline}/o && $3 eq $self->{cfg}->{channel}) {
+
+        $hash{hour}   = $1;
+        $hash{nick}   = $2;
+        $hash{saying} = $4;
+
+        return \%hash;
+    }
+    return;
+}
+
+sub actionline
+{
+    my ($self, $line, $lines) = @_;
+    my %hash;
+
+    if ($line =~ /$self->{actionline}/o && $3 eq $self->{cfg}->{channel}) {
+
+        $hash{hour}   = $1;
+        $hash{nick}   = $2;
+        $hash{saying} = $4;
+
+        return \%hash;
+    }
+    return;
+}
+
+sub thirdline
+{
+    my ($self, $line, $lines) = @_;
+    my %hash;
+
+    if ($line =~ /$self->{thirdline}/o) {
+
+        $hash{hour} = $1;
+        $hash{min}  = $2;
+        $hash{nick} = $3;
+
+        if ($3 =~ /^kick\/(\S+) \[(\S+)\!\S+\] by (\S+) .*/) {
+            if ($1 eq $self->{cfg}->{channel}) {
+                $hash{nick} = $2;
+                $hash{kicker} = $3;
+            }
+
+        } elsif ($3 =~ /^topic\/(\S+) by (\S+) \-\> (.*)/) {
+            if ($1 eq $self->{cfg}->{channel}) {
+                $hash{nick} = $2;
+                $hash{newtopic} = $3;
+            }
+
+        } elsif ($3 =~ /^mode\/(\S+) \[(\S+) (\S+) \] by (\S+)/) {
+            if ($1 eq $self->{cfg}->{channel}) {
+                $hash{nick} = $4;
+                $hash{newmode} = $2;
+            }
+
+        } elsif ($3 =~ /^join\/(\S+) (\S+) .*/) {
+            if (lc($1) eq lc($self->{cfg}->{channel})) {
+                $hash{nick} = $2;
+                $hash{newjoin} = $2;
+            }
+
+        } elsif ($3 =~ /^(\S+) materializes into (\S+)/) {
+            $hash{nick} = $1;
+            $hash{newnick} = $2;
+
+        }
+
+        return \%hash;
+
+    } else {
+        return;
+    }
+}
+
+1;
diff -ruN pisg-0.44.orig/modules/Pisg.pm pisg-0.44/modules/Pisg.pm
--- pisg-0.44.orig/modules/Pisg.pm      Sun Dec 15 12:01:08 2002
+++ pisg-0.44/modules/Pisg.pm   Tue Jan 14 23:33:05 2003
@@ -99,13 +99,13 @@
         maintainer => 'MAINTAINER',
         pagehead => 'none',
         pagefoot => 'none',
-        configfile => 'pisg.cfg',
+        configfile => '@FINKPREFIX@/etc/pisg.cfg',
         imagepath => '',
         defaultpic => '',
         logdir => '',
         lang => 'en',
-        langfile => 'lang.txt',
-        cssdir => 'layout/',
+        langfile => '@FINKPREFIX@/share/pisg/lang.txt',
+        cssdir => '@FINKPREFIX@/share/pisg/layout/',
         colorscheme => 'default',
         logprefix => '',
         logsuffix => '',
diff -ruN pisg-0.44.orig/pisg.1 pisg-0.44/pisg.1
--- pisg-0.44.orig/pisg.1       Wed Dec 31 17:00:00 1969
+++ pisg-0.44/pisg.1    Tue Jan 14 23:25:15 2003
@@ -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! <file.ps>
+...\"
+.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 [EMAIL PROTECTED] 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 

--- pisg-0.44-1.info DELETED ---

--- pisg-0.44-1.patch DELETED ---



-------------------------------------------------------
This SF.NET email is sponsored by: Take your first step towards giving 
your online business a competitive advantage. Test-drive a Thawte SSL 
certificate - our easy online guide will show you how. Click here to get 
started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en
_______________________________________________
Fink-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to