|
|||||||||
Saturday the 17th of May, 2008 |
|||||||||
pflogsumm most recent diff
Scroll down toward the bottom of the page to get installation instructions for pflogsumm. The raw portfile for pflogsumm 1.1.0 is located here: http://pflogsumm.darwinports.com/dports/mail/pflogsumm/Portfile Find related portfiles with the unique DarwinPorts.com search feature. Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/pflogsumm # $Id: Portfile 32762 2008-01-13 08:55:46Z ryandesign PortSystem 1.0 Name: pflogsumm Version: 1.1.0 Category: mail Maintainers: nomaintainer Description: Produce Postfix MTA logfile summary Long Description: Pflogsumm is a log analyzer/summarizer for the Postfix MTA. It 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. Pflogsumm generates summaries and, in some cases, detailed reports of mail server traffic volumes, rejected and bounced email, and server warnings, errors and panics. Also installs Chris Cappuccio's CGI script for browser access to the Pflogsumm output. Homepage: http://jimsun.linxnet.com/postfix_contrib.html master_sites http://jimsun.linxnet.com/downloads/ http://www.nmedia.net/~chris/mail/:cgi distfiles-append mail-cgi.txt:cgi checksums ${distname}.tar.gz md5 1f78fcaf2a36ec3520ecff286a45251a mail-cgi.txt md5 352451388eed3d1f7255dc07fc411d97 extract.only ${distname}.tar.gz Platform: darwin freebsd set perl5.bin ${prefix}/bin/perl depends_run bin:${perl5.bin}:perl5.8 port:p5-date-calc set cgi_path "" set maillog_path "" platform darwin { global cgi_path maillog_path set cgi_path "/Library/WebServer/CGI-Executables" set maillog_path "/var/log/mail.log" # MacPorts Apache interoperability if {[file exists ${prefix}/sbin/httpd]} { set cgi_path "${prefix}/www/cgi-bin" } } platform freebsd { global cgi_path maillog_path set cgi_path "/usr/local/www/cgi-bin" set maillog_path "/var/log/maillog" # MacPorts Apache interoperability if {[file exists ${prefix}/sbin/httpd]} { set cgi_path "${prefix}/www/cgi-bin" } } post-extract { file copy -force ${distpath}/mail-cgi.txt ${worksrcpath}/${name}.cgi } use_configure no build { reinplace "s|^#!.*perl|#!${perl5.bin}|" ${worksrcpath}/${name}.pl reinplace "s|mail.empnet.com|[exec hostname]|" ${worksrcpath}/${name}.cgi reinplace "s|/var/log/maillog|${maillog_path}|" ${worksrcpath}/${name}.cgi reinplace "s|${maillog_path}\[.\]\[0-3\]|&.gz|" ${worksrcpath}/${name}.cgi reinplace "s|/usr/ucb/ps|[binaryInPath ps]|" ${worksrcpath}/${name}.cgi reinplace "s|zcat=\"/bin/cat|zcat=\"[binaryInPath zcat]|" ${worksrcpath}/${name}.cgi reinplace "s|/bin/cat|[binaryInPath cat]|" ${worksrcpath}/${name}.cgi reinplace "s|/usr/local/bin/${name}.pl|${prefix}/bin/${name}|" ${worksrcpath}/${name}.cgi reinplace "s|^opts=|# &|" ${worksrcpath}/${name}.cgi reinplace "s|^#opts=|opts=|" ${worksrcpath}/${name}.cgi reinplace "s|mail.cgi|${name}.cgi|" ${worksrcpath}/${name}.cgi reinplace "s|\$pflog \$opts.*$|& 2>\\&1|" ${worksrcpath}/${name}.cgi } destroot { xinstall -m 0755 ${worksrcpath}/${name}.pl ${destroot}${prefix}/bin/${name} xinstall -m 0644 ${worksrcpath}/${name}.1 ${destroot}${prefix}/share/man/man1 xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name} xinstall -m 0644 ${worksrcpath}/${name}-faq.txt ${destroot}${prefix}/share/doc/${name} xinstall -d -m 0755 ${destroot}${cgi_path} set maillog_group [file attributes ${maillog_path} -group] xinstall -m 02755 -g ${maillog_group} ${worksrcpath}/${name}.cgi ${destroot}${cgi_path} } If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page. Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:
% cd /opt/local/bin/portslocation/dports/pflogsummYou will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to: Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using pflogsumm with these commands: % man pflogsumm Where to find more information:
|
![]() |
![]() Digg pflogsumm on MacOSX
Other Helpful SitesMacOSForgeDebian Packages MacPorts - SVN Freshports - FreeBSD Fink Package List RPM for MacOSX Port Categories
aqua
archivers audio benchmarks cad comms cross databases devel editors emulators games genealogy gnome gnustep graphics irc java kde lang math multimedia net news palm perl python ruby science security shells sysutils textproc www x11 xfce zope
Current CVS DownloadsDarwin Ports Current :nightly CVS snapshot OpenDarwin CVSWeb SSH Key Gen |
|||||||
| |




