iplike-pg stable port information

Info3: <<
Package: iplike-pg%type_pkg[postgresql]
Version: 1.0.8
Revision: 1
Type: postgresql(7.4 8.0 8.1 8.2 8.3)

Conflicts: opennms-pgsql74, opennms-pgsql80, opennms-pgsql81, opennms-pgsql82
Replaces: opennms-pgsql74, opennms-pgsql80, opennms-pgsql81, opennms-pgsql82
Provides: opennms-pgsql
Source: mirror:sourceforge:opennms/iplike-%v.tar.gz
Source-MD5: 85bcafd5e96a79e7d0ab6eee0b4b0b75
Patch: %{Ni}.patch

BuildDepends: <<
autoconf (>= 2.60-1),
automake1.10,
libtool2,
(%type_raw[postgresql] <= 8.0) postgresql%type_pkg[postgresql]-unified-dev,
(%type_raw[postgresql] >= 8.1) postgresql%type_pkg[postgresql]-dev,
<<
Depends: <<
(%type_raw[postgresql] <= 7.4) postgresql%type_pkg[postgresql]-unified-shlibs,
(%type_raw[postgresql] >= 8.1) postgresql%type_pkg[postgresql]-shlibs,
<<

PatchScript: <<
#!/bin/sh -ev

IPLIKE_VERSION=`echo %type_raw[postgresql] | sed -e 's,\.,_,g'`
perl -pi -e "s,iplike_la,iplike_${IPLIKE_VERSION}_la,g" Makefile.am
perl -pi -e 's,iplike[^_]la,iplike-%type_raw[postgresql].la,g' Makefile.am install_iplike.sh.in
perl -pi -e 's,/psql,/psql-%type_raw[postgresql],' install_iplike.sh.in
perl -pi -e 's,AM_RPM_INIT,,' configure.ac

%p/bin/aclocal -I m4
%p/bin/glibtoolize --automake --copy
%p/bin/autoheader
%p/bin/autoconf
%p/bin/automake --add-missing --copy
<<

InstallScript: <<
make install DESTDIR="%d"
mv %i/sbin/install_iplike.sh %i/sbin/install_iplike_%type_pkg[postgresql].sh
<<

PostInstScript: <<
cat < *** NOTE ***

WARNING: this package will not work until you run
%p/sbin/install_iplike_%type_pkg[postgresql].sh with the appropriate options.

See \`%p/sbin/install_iplike_%type_pkg[postgresql].sh -h\` for more information.

END
<<

PostRmScript: <<
cat < *** NOTE ***

WARNING: Don't forget to remove the IPLIKE function from your database!

<<

Homepage: http://www.opennms.org/
Maintainer: Benjamin Reed
Description: PostgreSQL IP address query interface
DescDetail: <<
This package contains a PostgreSQL function for doing complex
IP address queries on a text field.
<<
License: GPL
<<

iplike-pg stable port .patch

diff -Nurd iplike-1.0.8/Makefile.am iplike-1.0.8-new/Makefile.am
--- iplike-1.0.8/Makefile.am 2008-05-06 11:46:54.000000000 -0400
+++ iplike-1.0.8-new/Makefile.am 2008-06-12 11:42:05.000000000 -0400
@@ -1,4 +1,3 @@
-ACLOCAL_AMFLAGS = -I m4
AM_CPPFLAGS = $(PGINCLUDES) $(all_includes)

noinst_LTLIBRARIES = libiplike_common.la
diff -Nurd iplike-1.0.8/configure.ac iplike-1.0.8-new/configure.ac
--- iplike-1.0.8/configure.ac 2008-05-06 11:33:59.000000000 -0400
+++ iplike-1.0.8-new/configure.ac 2008-06-12 11:41:42.000000000 -0400
@@ -53,7 +53,7 @@
CPPFLAGS="${CPPFLAGS} ${PGINCLUDES}"

AC_MSG_CHECKING(for postgres.h)
-AC_CACHE_VAL(onms_postgres_h_good_without_undef,
+AC_CACHE_VAL(onms_cv_postgres_h_good_without_undef,
[
AC_TRY_COMPILE([
/* These are defined in pg_config.h and in confdefs.h, which is bad */
@@ -75,7 +75,7 @@
AS_IF([test "x$onms_postgres_h_good_without_undef" != "xyes"],
[
AC_MSG_CHECKING(for postgres.h with _FILE_OFFSET_BITS undefined)
- AC_CACHE_VAL(onms_postgres_h_good_with_undef,
+ AC_CACHE_VAL(onms_cv_postgres_h_good_with_undef,
[
AC_TRY_COMPILE([
/* These are defined in pg_config.h and in confdefs.h, which is bad */

iplike-pg _unstable_ port information

Info3: <<
Package: iplike-pg%type_pkg[postgresql]
Version: 1.0.8
Revision: 1
Type: postgresql(7.4 8.0 8.1 8.2 8.3)

Conflicts: opennms-pgsql74, opennms-pgsql80, opennms-pgsql81, opennms-pgsql82
Replaces: opennms-pgsql74, opennms-pgsql80, opennms-pgsql81, opennms-pgsql82
Provides: opennms-pgsql
Source: mirror:sourceforge:opennms/iplike-%v.tar.gz
Source-MD5: 85bcafd5e96a79e7d0ab6eee0b4b0b75
Patch: %{Ni}.patch

BuildDepends: <<
autoconf (>= 2.60-1),
automake1.10,
libtool2,
(%type_raw[postgresql] <= 8.0) postgresql%type_pkg[postgresql]-unified-dev,
(%type_raw[postgresql] >= 8.1) postgresql%type_pkg[postgresql]-dev,
<<
Depends: <<
(%type_raw[postgresql] <= 7.4) postgresql%type_pkg[postgresql]-unified-shlibs,
(%type_raw[postgresql] >= 8.1) postgresql%type_pkg[postgresql]-shlibs,
<<

PatchScript: <<
#!/bin/sh -ev

IPLIKE_VERSION=`echo %type_raw[postgresql] | sed -e 's,\.,_,g'`
perl -pi -e "s,iplike_la,iplike_${IPLIKE_VERSION}_la,g" Makefile.am
perl -pi -e 's,iplike[^_]la,iplike-%type_raw[postgresql].la,g' Makefile.am install_iplike.sh.in
perl -pi -e 's,/psql,/psql-%type_raw[postgresql],' install_iplike.sh.in
perl -pi -e 's,AM_RPM_INIT,,' configure.ac

%p/bin/aclocal -I m4
%p/bin/glibtoolize --automake --copy
%p/bin/autoheader
%p/bin/autoconf
%p/bin/automake --add-missing --copy
<<

InstallScript: <<
make install DESTDIR="%d"
mv %i/sbin/install_iplike.sh %i/sbin/install_iplike_%type_pkg[postgresql].sh
<<

PostInstScript: <<
cat < *** NOTE ***

WARNING: this package will not work until you run
%p/sbin/install_iplike_%type_pkg[postgresql].sh with the appropriate options.

See \`%p/sbin/install_iplike_%type_pkg[postgresql].sh -h\` for more information.

END
<<

PostRmScript: <<
cat < *** NOTE ***

WARNING: Don't forget to remove the IPLIKE function from your database!

<<

Homepage: http://www.opennms.org/
Maintainer: Benjamin Reed
Description: PostgreSQL IP address query interface
DescDetail: <<
This package contains a PostgreSQL function for doing complex
IP address queries on a text field.
<<
License: GPL
<<

iplike-pg _unstable_ port .patch

diff -Nurd iplike-1.0.8/Makefile.am iplike-1.0.8-new/Makefile.am
--- iplike-1.0.8/Makefile.am 2008-05-06 11:46:54.000000000 -0400
+++ iplike-1.0.8-new/Makefile.am 2008-06-12 11:42:05.000000000 -0400
@@ -1,4 +1,3 @@
-ACLOCAL_AMFLAGS = -I m4
AM_CPPFLAGS = $(PGINCLUDES) $(all_includes)

noinst_LTLIBRARIES = libiplike_common.la
diff -Nurd iplike-1.0.8/configure.ac iplike-1.0.8-new/configure.ac
--- iplike-1.0.8/configure.ac 2008-05-06 11:33:59.000000000 -0400
+++ iplike-1.0.8-new/configure.ac 2008-06-12 11:41:42.000000000 -0400
@@ -53,7 +53,7 @@
CPPFLAGS="${CPPFLAGS} ${PGINCLUDES}"

AC_MSG_CHECKING(for postgres.h)
-AC_CACHE_VAL(onms_postgres_h_good_without_undef,
+AC_CACHE_VAL(onms_cv_postgres_h_good_without_undef,
[
AC_TRY_COMPILE([
/* These are defined in pg_config.h and in confdefs.h, which is bad */
@@ -75,7 +75,7 @@
AS_IF([test "x$onms_postgres_h_good_without_undef" != "xyes"],
[
AC_MSG_CHECKING(for postgres.h with _FILE_OFFSET_BITS undefined)
- AC_CACHE_VAL(onms_postgres_h_good_with_undef,
+ AC_CACHE_VAL(onms_cv_postgres_h_good_with_undef,
[
AC_TRY_COMPILE([
/* These are defined in pg_config.h and in confdefs.h, which is bad */