From: Sven Hoexter Date: Thu, 28 Apr 2011 19:10:14 +0000 (+0200) Subject: Add debian/patches/kill-dot-pl and a debian/README.source. Due to the removed '.pl... X-Git-Tag: debian/1.1.3-2~6 X-Git-Url: https://git.sven.stormbind.net/?a=commitdiff_plain;h=473bad5487779825bbb4a45e12a022a6d6e3bf7d;p=sven%2Fpflogsumm.git Add debian/patches/kill-dot-pl and a debian/README.source. Due to the removed '.pl' symlinks we've to do some s/pflogsumm.pl/pflogsumm/ in several files. --- diff --git a/debian/README.source b/debian/README.source new file mode 100644 index 0000000..3d5f55c --- /dev/null +++ b/debian/README.source @@ -0,0 +1,3 @@ +This package uses quilt to manage the patches in debian/patches. +For further information please install the quilt package and read +/usr/share/doc/quilt/README.source. diff --git a/debian/changelog b/debian/changelog index 762213b..109d47f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -7,6 +7,9 @@ pflogsumm (1.1.3-2) UNRELEASED; urgency=low * Increase debhelper compat level to 8, build-depend on debhelper (>=8). * Add debian/source/format -> 1.0. * Build-depend on quilt to use dh --with quilt. + * Add debian/patches/kill-dot-pl and a debian/README.source. Due to + the removed '.pl' symlinks we've to do some s/pflogsumm.pl/pflogsumm/ + in several files. -- Sven Hoexter Thu, 28 Apr 2011 20:46:12 +0200 diff --git a/debian/patches/kill-dot-pl b/debian/patches/kill-dot-pl new file mode 100644 index 0000000..d9e6c74 --- /dev/null +++ b/debian/patches/kill-dot-pl @@ -0,0 +1,237 @@ +Starting with 1.1.3-2 the pflogsumm package no longer ships the +'.pl' compatiblity symlinks. Thus for consistency we've to do some +s/pflogsumm.pl/pflogsumm/ all over the place. +--- a/pflogsumm-faq.txt ++++ b/pflogsumm-faq.txt +@@ -1,5 +1,5 @@ + +-FAQ for Pflogsumm.pl - A Log Summarizer/Analyzer for the Postfix MTA ++FAQ for pflogsumm - A Log Summarizer/Analyzer for the Postfix MTA + + Introduction + +@@ -7,13 +7,13 @@ Introduction + hearted exercise in improving my facility with Perl--with the hope + that something useful would come out of it as well--has turned out to + be a somewhat popular utility. And as more Admins find out about +- postfix, and more end up trying pflogsumm.pl, many of the questions, ++ postfix, and more end up trying pflogsumm, many of the questions, + suggestions, and enhancement requests are becoming "frequently + asked". So odd as it seems (to me, at any rate), it looks like it's + time for a FAQ. + + +-Index of pflogsumm.pl Frequently Asked Questions (in no particular order) ++Index of pflogsumm Frequently Asked Questions (in no particular order) + + 1. Project Status + 2. "Could You Make" or "Here's A Patch To Make" Pflogsumm Do ... +@@ -137,11 +137,11 @@ Index of pflogsumm.pl Frequently Asked Q + "creeping over-feature-itis" if I can. My position is *not* set in + stone on this issue. In the mean-time: + +- zcat /var/log/maillog.0.gz |pflogsumm.pl ++ zcat /var/log/maillog.0.gz |pflogsumm + + or + +- gunzip ++ gunzip + + should do the trick quite nicely for you. + +@@ -149,7 +149,7 @@ Index of pflogsumm.pl Frequently Asked Q + exactly at midnight, you might try something like: + + (zcat /var/log/maillog.0.gz; cat /var/log/maillog) \ +- |pflogsumm.pl -d yesterday ++ |pflogsumm -d yesterday + + See Also: 5. Processing Multiple Log Files + 17. How Do I Get Pflogsumm To Email Reports To Me +@@ -175,7 +175,7 @@ Index of pflogsumm.pl Frequently Asked Q + A more complex example, where compressed logs are involved: + + (zcat `ls -rt /var/log/maillog.*.gz`; cat /var/log/maillog) \ +- |pflogsumm.pl ++ |pflogsumm + + Obviously, this depends on the file modification times for your logs + being reflective of their chronological order. If that can't be +@@ -185,12 +185,12 @@ Index of pflogsumm.pl Frequently Asked Q + (for each in 3 2 1 0; do + zcat "/var/log/maillog.$each.gz" + done +- cat /var/log/maillog) |pflogsumm.pl ++ cat /var/log/maillog) |pflogsumm + + or (somewhat more efficiently--by running zcat only once): + + (zcat `for ea in 3 2 1 0; do echo "/var/log/maillog.$ea.gz"; +- done`; cat /var/log/maillog) |pflogsumm.pl ++ done`; cat /var/log/maillog) |pflogsumm + + [Note: I didn't actually run these. So you would be well-advised + to double-check them.] +@@ -305,7 +305,7 @@ Index of pflogsumm.pl Frequently Asked Q + Message size is reported only by the queue manager. The message + may be delivered long-enough after the (last) qmgr log entry that + the information is not in the log(s) processed by a particular run +- of pflogsumm.pl. ++ of pflogsumm. + + The Result: + +@@ -337,7 +337,7 @@ Index of pflogsumm.pl Frequently Asked Q + + 10. Pflogsumm misses/mis-diagnoses/mis-reports, etc. + +- Are you using a real old version of VMailer? As of pflogsumm.pl ++ Are you using a real old version of VMailer? As of pflogsumm + version 19990220-06, versions of VMailer prior to 19981023 are no + longer supported. Sorry. Pflogsumm-19990121-01.pl will be made + permanently available from now on for those with out-of-date versions +@@ -346,7 +346,7 @@ Index of pflogsumm.pl Frequently Asked Q + Are you processing your log files in chronological order? See item + "5: "Processing Multiple Log Files". + +- Pflogsumm.pl is being developed by me on my rather small-scale server ++ pflogsumm is being developed by me on my rather small-scale server + at home. There are only two users on the system. And I do no + mail-forwarding. So the log samples I have to work with are + commensurately limited. +@@ -366,13 +366,13 @@ Index of pflogsumm.pl Frequently Asked Q + 11. Pflogsumm is generating lots of "uninitialized value" warnings + + Are you using a version of Perl lower than 5.004_04? Perhaps with a +- "beta" version of pflogsumm.pl? If so, try turning off the "-w" ++ "beta" version of pflogsumm? If so, try turning off the "-w" + switch. Pflogsumm as of 19990413-02beta appeared to work correctly + with Perl 5.003 in spite of the warnings. (Those warnings didn't + appear with Perl 5.004.) + + I don't guarantee that I'll remember to test future versions of +- pflogsumm.pl against 5.003, but I'll try to :-). ++ pflogsumm against 5.003, but I'll try to :-). + + You really should consider upgrading your Perl to 5.004 or later. + +--- a/pflogsumm.1 ++++ b/pflogsumm.1 +@@ -130,13 +130,13 @@ + .if n .ad l + .nh + .SH "NAME" +-pflogsumm.pl \- Produce Postfix MTA logfile summary ++pflogsumm \- Produce Postfix MTA logfile summary + .PP + Copyright (C) 1998\-2010 by James S. Seymour, Release 1.1.3. + .SH "SYNOPSIS" + .IX Header "SYNOPSIS" + .Vb 10 +-\& pflogsumm.pl \-[eq] [\-d ] [\-\-detail ] ++\& pflogsumm \-[eq] [\-d ] [\-\-detail ] + \& [\-\-bounce_detail ] [\-\-deferral_detail ] + \& [\-h ] [\-i|\-\-ignore_case] [\-\-iso_date_time] [\-\-mailq] + \& [\-m|\-\-uucp_mung] [\-\-no_bounce_detail] [\-\-no_deferral_detail] +@@ -147,7 +147,7 @@ Copyright (C) 1998\-2010 by James S. Sey + \& [\-u ] [\-\-verbose_msg_detail] [\-\-verp_mung[=]] + \& [\-\-zero_fill] [file1 [filen]] + \& +-\& pflogsumm.pl \-[help|version] ++\& pflogsumm \-[help|version] + \& + \& If no file(s) specified, reads from stdin. Output is to stdout. + .Ve +@@ -270,7 +270,7 @@ Copyright (C) 1998\-2010 by James S. Sey + \& The message may be delivered long\-enough after the + \& (last) qmgr log entry that the information is not in + \& the log(s) processed by a particular run of +-\& pflogsumm.pl. This throws off "Recipients by message ++\& pflogsumm. This throws off "Recipients by message + \& size" and the total for "bytes delivered." These are + \& normally reported by pflogsumm as "Messages with no + \& size data." +@@ -388,15 +388,15 @@ Copyright (C) 1998\-2010 by James S. Sey + .Vb 1 + \& Produce a report of previous day\*(Aqs activities: + \& +-\& pflogsumm.pl \-d yesterday /var/log/maillog ++\& pflogsumm \-d yesterday /var/log/maillog + \& + \& A report of prior week\*(Aqs activities (after logs rotated): + \& +-\& pflogsumm.pl /var/log/maillog.0 ++\& pflogsumm /var/log/maillog.0 + \& + \& What\*(Aqs happened so far today: + \& +-\& pflogsumm.pl \-d today /var/log/maillog ++\& pflogsumm \-d today /var/log/maillog + \& + \& Crontab entry to generate a report of the previous day\*(Aqs activity + \& at 10 minutes after midnight. +--- a/pflogsumm.pl ++++ b/pflogsumm.pl +@@ -4,13 +4,13 @@ eval 'exec perl -S $0 "$@"' + + =head1 NAME + +-pflogsumm.pl - Produce Postfix MTA logfile summary ++pflogsumm - Produce Postfix MTA logfile summary + + Copyright (C) 1998-2010 by James S. Seymour, Release 1.1.3. + + =head1 SYNOPSIS + +- pflogsumm.pl -[eq] [-d ] [--detail ] ++ pflogsumm -[eq] [-d ] [--detail ] + [--bounce_detail ] [--deferral_detail ] + [-h ] [-i|--ignore_case] [--iso_date_time] [--mailq] + [-m|--uucp_mung] [--no_bounce_detail] [--no_deferral_detail] +@@ -21,7 +21,7 @@ Copyright (C) 1998-2010 by James S. Seym + [-u ] [--verbose_msg_detail] [--verp_mung[=]] + [--zero_fill] [file1 [filen]] + +- pflogsumm.pl -[help|version] ++ pflogsumm -[help|version] + + If no file(s) specified, reads from stdin. Output is to stdout. + +@@ -142,7 +142,7 @@ Copyright (C) 1998-2010 by James S. Seym + The message may be delivered long-enough after the + (last) qmgr log entry that the information is not in + the log(s) processed by a particular run of +- pflogsumm.pl. This throws off "Recipients by message ++ pflogsumm. This throws off "Recipients by message + size" and the total for "bytes delivered." These are + normally reported by pflogsumm as "Messages with no + size data." +@@ -257,15 +257,15 @@ Copyright (C) 1998-2010 by James S. Seym + + Produce a report of previous day's activities: + +- pflogsumm.pl -d yesterday /var/log/maillog ++ pflogsumm -d yesterday /var/log/maillog + + A report of prior week's activities (after logs rotated): + +- pflogsumm.pl /var/log/maillog.0 ++ pflogsumm /var/log/maillog.0 + + What's happened so far today: + +- pflogsumm.pl -d today /var/log/maillog ++ pflogsumm -d today /var/log/maillog + + Crontab entry to generate a report of the previous day's activity + at 10 minutes after midnight. +@@ -488,7 +488,7 @@ for (0 .. 23) { + $smtpdPerHr[$_] = [0,0,0]; + } + +-$progName = "pflogsumm.pl"; ++$progName = "pflogsumm"; + $usageMsg = + "usage: $progName -[eq] [-d ] [--detail ] + [--bounce_detail ] [--deferral_detail ] diff --git a/debian/patches/series b/debian/patches/series index e69de29..ff96ea0 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -0,0 +1 @@ +kill-dot-pl