OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /e/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src openpkg-web openpkg$ Date:   30-May-2003 16:41:50
  Branch: HEAD                             Handle: 2003053015414702

  Added files:
    openpkg-re/vcheck       vc.postfix-mailgraph
    openpkg-src/postfix-mailgraph
                            postfix-mailgraph.patch postfix-mailgraph.spec
                            rc.postfix-mailgraph
  Modified files:
    openpkg-web             news.txt

  Log:
    new package: postfix-mailgraph 1.2 (Postfix Mail Graphing)

  Summary:
    Revision    Changes     Path
    1.1         +9  -0      openpkg-re/vcheck/vc.postfix-mailgraph
    1.1         +44 -0      openpkg-src/postfix-mailgraph/postfix-mailgraph.patch
    1.1         +97 -0      openpkg-src/postfix-mailgraph/postfix-mailgraph.spec
    1.1         +21 -0      openpkg-src/postfix-mailgraph/rc.postfix-mailgraph
    1.4639      +1  -0      openpkg-web/news.txt
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-re/vcheck/vc.postfix-mailgraph
  ============================================================================
  $ cvs diff -u -r0 -r1.1 vc.postfix-mailgraph
  --- /dev/null 2003-05-30 16:41:47.000000000 +0200
  +++ vc.postfix-mailgraph      2003-05-30 16:41:47.000000000 +0200
  @@ -0,0 +1,9 @@
  +config = {
  +}
  +
  +prog postfix-mailgraph = {
  +  version   = 1.2
  +  url       = http://people.ee.ethz.ch/~dws/software/mailgraph/pub/
  +  regex     = mailgraph-(__VER__)\.tar\.gz
  +}
  +
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/postfix-mailgraph/postfix-mailgraph.patch
  ============================================================================
  $ cvs diff -u -r0 -r1.1 postfix-mailgraph.patch
  --- /dev/null 2003-05-30 16:41:50.000000000 +0200
  +++ postfix-mailgraph.patch   2003-05-30 16:41:50.000000000 +0200
  @@ -0,0 +1,44 @@
  +--- mailgraph.pl.orig        Sun Jan  5 23:32:04 2003
  ++++ mailgraph.pl     Fri May 30 16:26:07 2003
  +@@ -120,6 +120,8 @@
  +             \s
  +             ([-\w\.]+)        # host  -- 6
  +             \s+
  ++            <[^>]+>           # OSSP fsl log level
  ++            \s+
  +             (.*)              # text  -- 7
  +             $/x or do
  +         {
  +--- mailgraph.cgi.orig       Fri May 30 16:39:18 2003
  ++++ mailgraph.cgi    Sun Jan  5 23:32:09 2003
  +@@ -153,27 +153,17 @@
  + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" 
"http://www.w3.org/TR/REC-html40/loose.dtd";>
  + <HTML>
  + <HEAD>
  +-<TITLE>Mail Statistics for $host</TITLE>
  ++<TITLE>Postfix Mail Statistics for $host</TITLE>
  + </HEAD>
  +-<BODY BGCOLOR="#FFFFFF">
  ++<BODY BGCOLOR="#DDDDDD">
  + HEADER
  + 
  +-    print "<H1>Mail Statistics for $host</H1>\n";
  ++    print "<H1>Postfix Mail Statistics for $host</H1>\n";
  +     for my $n (0..$#graphs) {
  +             print "<H2>$graphs[$n]{title}</H2>\n";
  +             print "<P><IMG BORDER=\"0\" SRC=\"$scriptname/mailgraph_${n}.png\" 
ALT=\"mailgraph\">\n";
  +             print "<P><IMG BORDER=\"0\" SRC=\"$scriptname/mailgraph_${n}_err.png\" 
ALT=\"mailgraph\">\n";
  +     }
  +-
  +-    print <<FOOTER;
  +-<table border="0" width="400"><tr><td align="left">
  +-<A href="http://people.ee.ethz.ch/~dws/software/mailgraph";>Mailgraph</A> $VERSION
  +-by <A href="http://people.ee.ethz.ch/~dws/";>David Schweikert</A></td>
  +-<td ALIGN="right">
  +-<a HREF="http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/";><img border="0" 
src="http://people.ethz.ch/~oetiker/webtools/rrdtool/.pics/rrdtool.gif"; alt="" 
width="120" height="34"></a>
  +-</td></tr></table>
  +-</BODY>
  +-FOOTER
  + }
  + 
  + sub send_image($)
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/postfix-mailgraph/postfix-mailgraph.spec
  ============================================================================
  $ cvs diff -u -r0 -r1.1 postfix-mailgraph.spec
  --- /dev/null 2003-05-30 16:41:50.000000000 +0200
  +++ postfix-mailgraph.spec    2003-05-30 16:41:50.000000000 +0200
  @@ -0,0 +1,97 @@
  +##
  +##  postfix-mailgraph.spec -- OpenPKG RPM Specification
  +##  Copyright (c) 2000-2003 Cable & Wireless Deutschland GmbH
  +##  Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  +##  Copyright (c) 2000-2003 Ralf S. Engelschall <[EMAIL PROTECTED]>
  +##
  +##  Permission to use, copy, modify, and 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.
  +##
  +##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  +##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  +##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  +##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  +##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  +##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  +##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  +##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  +##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  +##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  +##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  +##  SUCH DAMAGE.
  +##
  +
  +#   package information
  +Name:         postfix-mailgraph
  +Summary:      Postfix Mail Graphing
  +URL:          http://people.ee.ethz.ch/~dws/software/mailgraph/
  +Vendor:       David Schweikert
  +Packager:     The OpenPKG Project
  +Distribution: OpenPKG [EVAL]
  +Group:        Mail
  +License:      GPL
  +Version:      1.2
  +Release:      20030530
  +
  +#   list of sources
  +Source0:      
http://people.ee.ethz.ch/~dws/software/mailgraph/pub/mailgraph-%{version}.tar.gz
  +Source1:      rc.postfix-mailgraph
  +Patch0:       postfix-mailgraph.patch
  +
  +#   build information
  +Prefix:       %{l_prefix}
  +BuildRoot:    %{l_buildroot}
  +BuildPreReq:  OpenPKG, openpkg >= 20030103
  +PreReq:       OpenPKG, openpkg >= 20030103, perl, perl-sys, rrdtool, postfix
  +AutoReq:      no
  +AutoReqProv:  no
  +
  +%description
  +    Mailgraph is a very simple mail statistics RRDtool frontend for the
  +    Postfix MTA that produces daily, weekly, monthly and yearly graphs
  +    of received/sent and bounced/rejected mail.
  +
  +%prep
  +    %setup -q -n mailgraph-%{version}
  +    %patch -p0
  +
  +%build
  +
  +%install
  +    rm -rf $RPM_BUILD_ROOT
  +    %{l_shtool} mkdir -f -p -m 755 \
  +        $RPM_BUILD_ROOT%{l_prefix}/sbin \
  +        $RPM_BUILD_ROOT%{l_prefix}/cgi \
  +        $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \
  +        $RPM_BUILD_ROOT%{l_prefix}/var/postfix-mailgraph/rrd \
  +        $RPM_BUILD_ROOT%{l_prefix}/var/postfix-mailgraph/img \
  +        $RPM_BUILD_ROOT%{l_prefix}/var/postfix-mailgraph/run
  +    %{l_shtool} install -c -m 755 \
  +        -e 's;#!/usr/bin/perl;#!%{l_prefix}/bin/perl;' \
  +        -e 
's;/var/log/mailgraph\.log;%{l_prefix}/var/postfix-mailgraph/run/mailgraph.log;' \
  +        -e 
's;/var/run/mailgraph\.pid;%{l_prefix}/var/postfix-mailgraph/run/mailgraph.pid;' \
  +        -e 's;/var/log/syslog;%{l_prefix}/var/postfix/log/postfix.log;' \
  +        -e 's;/var/log;%{l_prefix}/var/postfix-mailgraph/rrd;' \
  +        mailgraph.pl $RPM_BUILD_ROOT%{l_prefix}/sbin/mailgraph
  +    %{l_shtool} install -c -m 755 \
  +        -e 's;#!/usr/bin/perl;#!%{l_prefix}/bin/perl;' \
  +        -e 's;mailgraph\.cgi;mailgraph;' \
  +        -e 's;mailgraph\.rrd;%{l_prefix}/var/postfix-mailgraph/rrd/mailgraph.rrd;' \
  +        -e 
's;mailgraph_virus\.rrd;%{l_prefix}/var/postfix-mailgraph/rrd/mailgraph_virus.rrd;' \
  +        -e 's;/tmp/mailgraph;%{l_prefix}/var/postfix-mailgraph/img;' \
  +        mailgraph.cgi $RPM_BUILD_ROOT%{l_prefix}/cgi/mailgraph
  +    %{l_shtool} install -c -m 755 \
  +        -e 's;@l_prefix@;%{l_prefix};g' \
  +        -e 's;@l_susr@;%{l_susr};g' \
  +        %{SOURCE rc.postfix-mailgraph} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
  +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  +        %{l_files_std} \
  +        '%attr(755,%{l_nusr},%{l_ngrp}) %{l_prefix}/var/postfix-mailgraph/img'
  +
  +%files -f files
  +
  +%clean
  +    rm -rf $RPM_BUILD_ROOT
  +
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/postfix-mailgraph/rc.postfix-mailgraph
  ============================================================================
  $ cvs diff -u -r0 -r1.1 rc.postfix-mailgraph
  --- /dev/null 2003-05-30 16:41:50.000000000 +0200
  +++ rc.postfix-mailgraph      2003-05-30 16:41:50.000000000 +0200
  @@ -0,0 +1,21 @@
  [EMAIL PROTECTED]@/lib/openpkg/bash @l_prefix@/etc/rc
  +##
  +##  rc.postfix-mailgraph -- Run-Commands for postfix-mailgraph
  +##
  +
  +%config
  +    postfix_mailgraph_enable="yes"
  +
  +%start -p 100 -u @l_susr@
  +    if opServiceEnabled postfix_mailgraph; then
  +        @l_prefix@/sbin/mailgraph --daemon
  +    fi
  +
  +%stop -p 200 -u @l_susr@
  +    if opServiceEnabled postfix_mailgraph; then
  +        if [ -f @l_prefix@/var/postfix-mailgraph/run/mailgraph.pid ]; then
  +            kill -TERM `cat @l_prefix@/var/postfix-mailgraph/run/mailgraph.pid` 
>/dev/null 2>&1 || true
  +            sleep 2
  +        fi
  +    fi
  +
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-web/news.txt
  ============================================================================
  $ cvs diff -u -r1.4638 -r1.4639 news.txt
  --- openpkg-web/news.txt      30 May 2003 13:42:15 -0000      1.4638
  +++ openpkg-web/news.txt      30 May 2003 14:41:48 -0000      1.4639
  @@ -1,3 +1,4 @@
  +30-May-2003: New package: P<postfix-mailgraph-1.2-20030530>
   30-May-2003: Upgraded package: P<dss-4.1.3-20030530>
   30-May-2003: Upgraded package: P<perl-apache-20030530-20030530>
   30-May-2003: Upgraded package: P<pcre-4.3-20030530>
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to