Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (a4a7a88362d2a3b50c51c8acae50128f5c363327)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Vlad Glagolev <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (a4a7a88362d2a3b50c51c8acae50128f5c363327)
  • Date: Thu, 11 Aug 2011 06:33:50 -0500

GIT changes to master grimoire by Vlad Glagolev <stealth AT sourcemage.org>:

ChangeLog | 3 +++
mail/pflogsumm/BUILD | 1 +
mail/pflogsumm/DEPENDS | 5 +++++
mail/pflogsumm/DETAILS | 16 ++++++++++++++++
mail/pflogsumm/HISTORY | 3 +++
mail/pflogsumm/INSTALL | 3 +++
mail/pflogsumm/PRE_BUILD | 6 ++++++
mail/pflogsumm/pflogsumm-1.1.1_metalog.patch | 16 ++++++++++++++++
8 files changed, 53 insertions(+)

New commits:
commit a4a7a88362d2a3b50c51c8acae50128f5c363327
Author: Vlad Glagolev <stealth AT sourcemage.org>
Commit: Vlad Glagolev <stealth AT sourcemage.org>

pflogsumm: new spell, logfile analyzer utility for Postfix mailer

diff --git a/ChangeLog b/ChangeLog
index caaf24d..858d9b1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2011-08-11 Vlad Glagolev <stealth AT sourcemage.org>
+ * mail/pflogsumm: new spell, logfile analyzer utility for Postfix
mailer
+
2011-08-09 Ladislav Hagara <hgr AT vabo.cz>
* crypto/p11-kit: new spell, way to load and enumerate PKCS#11 modules

diff --git a/mail/pflogsumm/BUILD b/mail/pflogsumm/BUILD
new file mode 100755
index 0000000..27ba77d
--- /dev/null
+++ b/mail/pflogsumm/BUILD
@@ -0,0 +1 @@
+true
diff --git a/mail/pflogsumm/DEPENDS b/mail/pflogsumm/DEPENDS
new file mode 100755
index 0000000..354388c
--- /dev/null
+++ b/mail/pflogsumm/DEPENDS
@@ -0,0 +1,5 @@
+depends perl &&
+
+runtime_depends date-calc &&
+
+optional_depends metalog "" "" "for Metalog support (via patch)"
diff --git a/mail/pflogsumm/DETAILS b/mail/pflogsumm/DETAILS
new file mode 100755
index 0000000..f866b17
--- /dev/null
+++ b/mail/pflogsumm/DETAILS
@@ -0,0 +1,16 @@
+ SPELL=pflogsumm
+ VERSION=1.1.1
+ SOURCE=$SPELL-$VERSION.tar.gz
+ SOURCE_URL[0]=http://jimsun.linxnet.com/downloads/$SOURCE
+ SOURCE_URL[1]=ftp://jimsun.linxnet.com/pub/postfix_contrib/$SOURCE
+
SOURCE_HASH=sha512:efde17ddaaeee9ea87b9c2e1aacc523a419627bb08233bc09e8ae2a7d7d8538f3414fb363202ceb482381ebc1791913e71750340ca457ac67d1a6882881987f9
+SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-$VERSION"
+ WEB_SITE=http://jimsun.linxnet.com/postfix_contrib.html
+ LICENSE[0]=GPL
+ ENTERED=20110811
+ SHORT="logfile analyzer utility for Postfix mailer"
+cat << EOF
+Pflogsumm.pl is designed to provide an over-view of postfix activity,
+with just enough detail to give the administrator a "heads up" for potential
+trouble spots.
+EOF
diff --git a/mail/pflogsumm/HISTORY b/mail/pflogsumm/HISTORY
new file mode 100644
index 0000000..6370b9e
--- /dev/null
+++ b/mail/pflogsumm/HISTORY
@@ -0,0 +1,3 @@
+2011-04-25 Vlad Glagolev <stealth AT sourcemage.org>
+ * {PRE_,}BUILD, DEPENDS, DETAILS, INSTALL,
+ pflogsumm-1.1.1_metalog.patch: spell created
diff --git a/mail/pflogsumm/INSTALL b/mail/pflogsumm/INSTALL
new file mode 100755
index 0000000..5942426
--- /dev/null
+++ b/mail/pflogsumm/INSTALL
@@ -0,0 +1,3 @@
+install -vm 755 pflogsumm.pl "$INSTALL_ROOT/usr/bin/pflogsumm" &&
+install -vm 755 -d "$INSTALL_ROOT/usr/share/man/man1" &&
+install -vm 644 pflogsumm.1 "$INSTALL_ROOT/usr/share/man/man1"
diff --git a/mail/pflogsumm/PRE_BUILD b/mail/pflogsumm/PRE_BUILD
new file mode 100755
index 0000000..ce7e0a0
--- /dev/null
+++ b/mail/pflogsumm/PRE_BUILD
@@ -0,0 +1,6 @@
+default_pre_build &&
+cd "$SOURCE_DIRECTORY" &&
+
+if is_depends_enabled $SPELL metalog; then
+ patch -p0 -i "$SPELL_DIRECTORY/pflogsumm-1.1.1_metalog.patch"
+fi
diff --git a/mail/pflogsumm/pflogsumm-1.1.1_metalog.patch
b/mail/pflogsumm/pflogsumm-1.1.1_metalog.patch
new file mode 100644
index 0000000..87d2627
--- /dev/null
+++ b/mail/pflogsumm/pflogsumm-1.1.1_metalog.patch
@@ -0,0 +1,16 @@
+*** pflogsumm.pl 2011-04-25 12:10:15.189036001 +0400
+--- pflogsumm.pl.metalog 2011-04-25 12:10:04.633036001 +0400
+***************
+*** 539,544 ****
+--- 539,549 ----
+ while(<>) {
+ next if(defined($dateStr) && ! /^$dateStr/o);
+ s/: \[ID \d+ [^\]]+\] /: /o; # lose "[ID nnnnnn some.thing]" stuff
++
#------------------------------------------------------------------------
++ # metalog hack by David B. Ferguson <david AT linuxnet.ca> 08/19/2008
++ # see http://linuxnet.ca/postfix/pflogsumm_metalog.html for latest
++ s/\[(postfix|$syslogName)\/(.*)\] /metalog $1\/$2\[54321\]: /;
++
#------------------------------------------------------------------------
+ my $logRmdr;
+ next unless((($msgMonStr, $msgDay, $msgHr, $msgMin, $msgSec, $logRmdr)
=
+ /^(...) +(\d+) (..):(..):(..) \S+ (.+)$/o) == 6);



  • [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (a4a7a88362d2a3b50c51c8acae50128f5c363327), Vlad Glagolev, 08/11/2011

Archive powered by MHonArc 2.6.24.

Top of Page