pgsnmpd stable port information

Info4: <<
Package: pgsnmpd
Version: 1.0
Revision: 3
Source: http://pgfoundry.org/frs/download.php/1423/%n-%v.tgz
Source-MD5: 93c6b3ada36f11e4d087896f147e3628
PatchFile: %n.patch
PatchFile-MD5: dabbe6d0dd51492330deab8b29820b80

BuildDepends: <<
fink (>= 0.28.0-1),
libelf,
libxml2,
libxslt,
net-snmp-unified25-dev,
postgresql91-dev,
readline5,
system-openssl-dev,
<<
Depends: <<
net-snmp-unified25-shlibs,
postgresql91-shlibs,
<<
CompileScript: <<
#!/bin/sh -ev
export PATH="%p/opt/postgresql-9.1/bin:$PATH"
make PREFIX="%p"
<<
InstallScript: <<
install -d -m 755 %i/sbin
install -c -m 755 pgsnmpd %i/sbin/

install -d -m 755 %i/etc
install -c -m 640 pgsnmpd.conf %i/etc/
<<
ConfFiles: %p/etc/pgsnmpd.conf
DocFiles: APPLICATION-MIB COPYRIGHT KNOWNBUG* RDBMS-MIB* README* TODO* doc/*

Description: SNMP agent for PostgreSQL
DescDetail: <<
pgsnmpd is an SNMP agent for PostgreSQL which implements RDBMS-MIB, as
defined in RFC 1697. This MIB was developed by a group of representatives
from different database manufacturers, and describes various attributes
common to most relational database management systems. Because it was
designed as the least common denominator, it doesn't show very much detail
and there are definitely a number of things RDBMS-MIB doesn't cover that
PostgreSQL administrators would be very interested in. Future versions of
pgsnmpd will support a second MIB, tentatively called PGSQL-MIB, in addition
to RDBMS-MIB. This PGSQL-MIB will be PostgreSQL-specific, and will include
many more data points of interest to PostgreSQL users and administrators.
<<
DescUsage: <<
The best way to use pgsnmpd is to enable AgentX in your net-snmp (this
package is compatible both with the system net-snmp, and Fink's version)
by adding the following lines in your snmpd.conf:

master agentx
agentXSocket tcp:localhost:705

Then, start pgsnmpd with the connection options to connect to your
PostgreSQL database instance:

%p/sbin/pgsnmpd -s -C "dbname=template1 user=postgres"
<<
License: BSD
Homepage: http://pgsnmpd.projects.postgresql.org/
Maintainer: Benjamin Reed
<<

pgsnmpd stable port .patch

diff -Nurd pgsnmpd-1.0/Makefile pgsnmpd-1.0-patched/Makefile
--- pgsnmpd-1.0/Makefile 2007-07-04 03:17:53.000000000 -0400
+++ pgsnmpd-1.0-patched/Makefile 2009-05-13 12:08:06.000000000 -0400
@@ -27,8 +27,8 @@
SNMPFLAGS=-I. -I./RDBMS-MIB_src $(shell net-snmp-config --cflags)
AGENTLIBS=$(shell net-snmp-config --agent-libs)

-PG_CPPFLAGS = -g -I$(libpq_srcdir) $(SNMPFLAGS)
-PG_LIBS = $(libpq_pgport) $(AGENTLIBS)
+PG_CPPFLAGS = $(SNMPFLAGS) -I$(PREFIX)/lib/system-openssl/include -g -I$(libpq_srcdir) -MD
+PG_LIBS = -Wl,-flat_namespace -L$(PREFIX)/lib/system-openssl/lib $(DYNALOADER) $(libpq_pgport) $(AGENTLIBS)

DOCS = README.pgsnmpd

pgsnmpd _unstable_ port .patch