head	1.6;
access;
symbols
	release-6-3:1.2;
locks; strict;
comment	@# @;


1.6
date	98.10.03.05.40.20;	author momjian;	state dead;
branches;
next	1.5;

1.5
date	98.06.16.05.35.10;	author momjian;	state Exp;
branches;
next	1.4;

1.4
date	98.06.16.04.34.29;	author momjian;	state Exp;
branches;
next	1.3;

1.3
date	98.04.22.04.14.11;	author scrappy;	state Exp;
branches;
next	1.2;

1.2
date	98.02.14.17.58.02;	author scrappy;	state Exp;
branches;
next	1.1;

1.1
date	98.01.25.07.10.45;	author scrappy;	state Exp;
branches;
next	;


desc
@@


1.6
log
@Integrate new IP type from Tom Ivar Helbekkmo.
@
text
@#
#	PostgreSQL types for IP and MAC addresses
#
#	$Id: Makefile,v 1.5 1998/06/16 05:35:10 momjian Exp $

all: ip.so mac.so

ip.so: ip.o
	ld -Bshareable -o ip.so ip.o

ip.o: ip.c
	cc -g -O -fPIC -I/usr/local/pgsql/include -c ip.c

mac.so: mac.o
	ld -Bshareable -o mac.so mac.o

mac.o: mac.c mac.h
	cc -g -O -fPIC -I/usr/local/pgsql/include -c mac.c

install: ip.so mac.so
	install -c ip.so mac.so /usr/local/pgsql/contrib/ip_and_macs

clean:
	rm -f *.o *.so *.b
#
#	eof
#
@


1.5
log
@try again
@
text
@d4 1
a4 1
#	$Id: Makefile,v 1.2 1998/02/14 17:58:02 scrappy Exp $
@


1.4
log
@I investigated carefully POSTGRES data base (in idea to use it for
our internal IP routing data base, and because  I have participated
in Ingres development here in Russia in RUBIN/DEMOS project -
through it was not freeware work - and it was very interesting for
me too see such good freeware data base as PostgreSQL), and I
modified 'ipaddr' data type library in accordance to our requests
and to allow SQL do indexing over ipaddr objects.

You can read description at 'http://relcom.EU.net/ipaddr.html' and
get sources at 'http://relcom.EU.net/ip_class.tar.gz'. It contains
sources, sql scripts for incorporating new data type into postgres
(including ipaddr_ops operator class incorporation) and 20,000
records based data test for the indexing.

I am not sure if it's proper mail list for this information, and
if it's interesting for anyone except me to get full-functional
ipaddress class. I am ready to make all modifications, bug fixing
and documentation for this data class if it's nessesary for it's
contribution to the Postgres data base.

Anyway, all my work was based at original 'ip&mac data type'
contribution, written by Tom Ivar Helbekkmo.

Be free to write me any questions or requests about this work.
==============================================================

Aleksei Roudnev, Network Operations Center, Relcom, Moscow (+7 095)
194-19-95 (Network Operations Center Hot Line),(+7 095) 239-10-10,
N 13729 (pager) (+7 095) 196-72-12 (Support), (+7 095) 194-33-28
(Fax)
@
text
@d21 1
a21 1
	install -c ip.so mac.so /usr/local/pgsql/modules
@


1.3
log
@From: Jun Kuwamura <juk@@rccm.co.jp>

  This patch fix the Makefiles in contrib/{pginterface, spi,
miscutil, int8, ip_and_mac, sequence, soundex, string, userlock,
array, datetime} to install their modules in one directory(lib/modules/).
@
text
@d6 1
a6 1
SRCDIR= ../../src
d8 2
a9 1
include $(SRCDIR)/Makefile.global
d11 2
a12 1
CONTRIBDIR=$(LIBDIR)/modules
d14 2
a15 1
CFLAGS+= $(CFLAGS_SL) -I$(SRCDIR)/include
d17 2
a18 3
ifdef REFINT_VERBOSE
CFLAGS+= -DREFINT_VERBOSE
endif
d20 2
a21 1
TARGETS= ip$(DLSUFFIX) ip.sql mac$(DLSUFFIX) mac.sql
d23 5
a27 18
CLEANFILES+= $(TARGETS)

all:: $(TARGETS)

install:: all $(CONTRIBDIR)
	for f in *$(DLSUFFIX); do $(INSTALL) -c $$f $(CONTRIBDIR)/$$f; done

$(CONTRIBDIR):
	mkdir -p $(CONTRIBDIR)

%.sql: %.sql.in
	rm -f $@@; \
	C=`pwd`; \
	sed -e "s:_OBJWD_:$(CONTRIBDIR):g" \
	    -e "s:_DLSUFFIX_:$(DLSUFFIX):g" < $< > $@@

clean: 
	rm -f $(TARGETS) *.o
@


1.2
log
@I'm including an update to my user defined IP and MAC address type
implementation that's in contrib/ip_and_mac/.  This one works right
with 6.3, avoids the problems I ran into earlier with LIKE, and
includes a bit of extra functionality.

From: Tom I Helbekkmo <tih@@Hamartun.Priv.NO>
@
text
@d4 1
a4 1
#	$Id: Makefile,v 1.1 1998/02/01 11:57:24 postgres Exp $
d6 1
a6 1
all: ip.so mac.so
d8 1
a8 2
ip.so: ip.o
	ld -Bshareable -o ip.so ip.o
d10 1
a10 2
ip.o: ip.c
	cc -g -O -fPIC -I/usr/local/pgsql/include -c ip.c
d12 1
a12 2
mac.so: mac.o
	ld -Bshareable -o mac.so mac.o
d14 3
a16 2
mac.o: mac.c mac.h
	cc -g -O -fPIC -I/usr/local/pgsql/include -c mac.c
d18 1
a18 2
install: ip.so mac.so
	install -c ip.so mac.so /usr/local/pgsql/modules
d20 18
a37 3
#
#	eof
#
@


1.1
log
@From: Tom I Helbekkmo <tih@@Hamartun.Priv.NO>

PostgreSQL type extensions for IP and MAC addresses.

I needed to record IP and MAC level ethernet addresses in a data
base, and I really didn't want to store them as plain strings, with
no enforced error checking, so I put together the accompanying code
as my first experiment with adding a data type to PostgreSQL.  I
then thought that this might be useful to others, both directly and
as a very simple example of how to do this sort of thing, so here
it is, in the hope that it will be useful.
@
text
@d1 4
a4 1
#	PostgreSQL type definitions for IP and MAC addresses.
d23 1
d25 1
@
