Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Oct 2000 02:22:50 +0800 (KRAST)
From:      Eugene Grosbein <eugen@D00015.dialonly.kemerovo.su>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/22379: New port: libudbc
Message-ID:  <200010281822.e9SIMoC16478@D00015.dialonly.kemerovo.su>

next in thread | raw e-mail | index | archive | help

>Number:         22379
>Category:       ports
>Synopsis:       New port: libudbc
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 28 11:30:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Eugene Grosbein
>Release:        FreeBSD 4.1-STABLE i386
>Organization:
ISP Svyaz-Service
>Environment:

>Description:

Openlink Universal DataBase Connectivity SDK (compiled library).

>How-To-Repeat:

>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	libudbc
#	libudbc/Makefile
#	libudbc/pkg-descr
#	libudbc/pkg-comment
#	libudbc/pkg-plist
#	libudbc/distinfo
#	libudbc/files
#	libudbc/files/patch-ab
#	libudbc/files/patch-aa
#	libudbc/pkg-message
#
echo c - libudbc
mkdir -p libudbc > /dev/null 2>&1
echo x - libudbc/Makefile
sed 's/^X//' >libudbc/Makefile << 'END-of-libudbc/Makefile'
X# New ports collection makefile for:	libubcd
X# Date created:        28 October 2000
X# Whom:                Eugene Grosbein <eugen@iname.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	libudbc
XPORTVERSION=	1.5
XCATEGORIES=	databases
XMASTER_SITES=	ftp://anonymous@ftp.openlinksw.com/open32/ \
X		ftp://ftp.openlinksw.co.uk/open32/ \
X		http://ftp.svzserv.kemerovo.su/pub/FreeBSD/ports/distfiles/
XDISTNAME=	f3kuzzzz
XEXTRACT_SUFX=	.taz
X
XMAINTAINER=	eugen@iname.com
X
XNO_WRKSUBDIR=	yes
XNO_BUILD=	yes
XINSTALLS_SHLIB=	yes
XNO_FILTER_SHLIBS=yes
XONLY_FOR_ARCHS=	i386
X
Xdo-install:
X	@${INSTALL_PROGRAM} ${WRKDIR}/udbcsdk/examples/udbctest ${PREFIX}/bin
X	@${MKDIR} ${PREFIX}/include/udbc
X	@${INSTALL_DATA} ${WRKDIR}/udbcsdk/include/libudbc.h ${PREFIX}/include
X	@${INSTALL_DATA} ${WRKDIR}/udbcsdk/include/udbc/udbcext.h ${PREFIX}/include/udbc
X	@${INSTALL_DATA} ${WRKDIR}/udbcsdk/include/udbc/udbcimpl.h ${PREFIX}/include/udbc
X	@${INSTALL_DATA} ${WRKDIR}/udbcsdk/include/udbc/udbcodbc.h ${PREFIX}/include/udbc
X	@${INSTALL_DATA} ${WRKDIR}/udbcsdk/include/udbc/udbcprto.h ${PREFIX}/include/udbc
X	@${INSTALL_DATA} ${WRKDIR}/udbcsdk/include/udbc/udbcsag.h ${PREFIX}/include/udbc
X	@${INSTALL_DATA} ${WRKDIR}/udbcsdk/include/udbc/udbctype.h ${PREFIX}/include/udbc
X	@${INSTALL_DATA} ${WRKDIR}/udbcsdk/lib/libudbc.a ${PREFIX}/lib
X	@${INSTALL} -c -o ${SHAREOWN} -g ${SHAREGRP} -m 755  ${WRKDIR}/udbcsdk/lib/libudbc.la ${PREFIX}/lib
X	@${INSTALL} -c -o ${LIBOWN} -g ${LIBGRP} -m 755 ${WRKDIR}/udbcsdk/lib/libudbc.so ${PREFIX}/lib
X	@${LN} -f ${PREFIX}/lib/libudbc.so ${PREFIX}/lib/libudbc.so.1.5
X.if !defined(NOPORTSDOC)
X	@${MKDIR} ${PREFIX}/share/doc/${PORTNAME}
X	@${INSTALL_DATA} ${WRKDIR}/udbcsdk/doc/udbc.doc ${PREFIX}/share/doc/${PORTNAME}
X	@${INSTALL_DATA} ${WRKDIR}/udbcsdk/doc/udbc.ini ${PREFIX}/share/doc/${PORTNAME}/udbc.ini.sample
X	@${MKDIR} ${PREFIX}/share/examples/${PORTNAME}
X	@${INSTALL_DATA} ${WRKDIR}/udbcsdk/examples/Makefile ${PREFIX}/share/examples/${PORTNAME}/Makefile
X	@${PERL} -pi -e "s,../,${PREFIX}/," ${PREFIX}/share/examples/${PORTNAME}/Makefile
X	@${INSTALL_DATA} ${WRKDIR}/udbcsdk/examples/udbctest.c ${PREFIX}/share/examples/${PORTNAME}
X
Xpost-install:
X	@${CAT} pkg-message | ${SED} "s'PREFIX'${PREFIX}'"
X.endif
X
X.include <bsd.port.pre.mk>
X
X.if ${OSVERSION} < 320000
XBROKEN=		"Systems prior to 3.2-RELEASE are out of support"
X.endif
X
X.include <bsd.port.post.mk>
END-of-libudbc/Makefile
echo x - libudbc/pkg-descr
sed 's/^X//' >libudbc/pkg-descr << 'END-of-libudbc/pkg-descr'
X From udbc.doc:
X
X    WHAT IS UDBC?
X
X    UDBC is OpenLink's acronym for Universal DataBase Connectivity.
X
X    In short, UDBC is the merge between the X/Open - SAG interface and
X    the Microsoft ODBC interface for client database applications.
X
X    UDBC was developped to enable software engineers to rapidly develop
X    database independent applications without being concerned about issues
X    like portability, network programming and database specific interfacing
X    problems.
X
XWWW: http://www.openlinksw.com/
X
X- Grosbein
Xeugen@iname.com
END-of-libudbc/pkg-descr
echo x - libudbc/pkg-comment
sed 's/^X//' >libudbc/pkg-comment << 'END-of-libudbc/pkg-comment'
XOpenlink UDBC SDK
END-of-libudbc/pkg-comment
echo x - libudbc/pkg-plist
sed 's/^X//' >libudbc/pkg-plist << 'END-of-libudbc/pkg-plist'
Xbin/udbctest
Xinclude/libudbc.h
Xinclude/udbc/udbcext.h
Xinclude/udbc/udbcimpl.h
Xinclude/udbc/udbcodbc.h
Xinclude/udbc/udbcprto.h
Xinclude/udbc/udbcsag.h
Xinclude/udbc/udbctype.h
Xlib/libudbc.a
Xlib/libudbc.la
Xlib/libudbc.so
X@exec ln %D/lib/libudbc.so %D/lib/libudbc.so.1.5
X@unexec rm %D/lib/libudbc.so.1.5 
Xshare/doc/libudbc/udbc.doc
Xshare/doc/libudbc/udbc.ini.sample
Xshare/examples/libudbc/Makefile
Xshare/examples/libudbc/udbctest.c
X@dirrm include/udbc
X@dirrm share/doc/libudbc
X@dirrm share/examples/libudbc
END-of-libudbc/pkg-plist
echo x - libudbc/distinfo
sed 's/^X//' >libudbc/distinfo << 'END-of-libudbc/distinfo'
XMD5 (f3kuzzzz.taz) = e45654eccf60bdf87dc6176732f04b1c
END-of-libudbc/distinfo
echo c - libudbc/files
mkdir -p libudbc/files > /dev/null 2>&1
echo x - libudbc/files/patch-ab
sed 's/^X//' >libudbc/files/patch-ab << 'END-of-libudbc/files/patch-ab'
X--- udbcsdk/examples/Makefile.orig	Sun Oct 29 01:12:20 2000
X+++ udbcsdk/examples/Makefile	Sun Oct 29 01:13:21 2000
X@@ -24,10 +24,10 @@
X ######################################################################
X 
X ##   Generic	######################################################
X-CFLAGS	= -O -I../include -pthread
X+CFLAGS	+= -O -I../include -pthread
X 
X ##   HP/UX	######################################################
X-#CFLAGS	= -O -Aa +ESlit -I../include
X+#CFLAGS	+= -O -Aa +ESlit -I../include
X 
X 
X ######################################################################
X@@ -37,7 +37,7 @@
X ######################################################################
X 
X ##   Generic	######################################################
X-LIBS	= ../lib/libudbc.a #-lpthread
X+LIBS	= ../lib/libudbc.a #-pthread
X 
X ##   SCO Unix	######################################################
X #LIBS	= ../lib/libudbc.a -lsocket
X@@ -95,7 +95,7 @@
X #
X ##   Shared 	######################################################
X #       
X-#LIBS	= -L../lib -ludbc -lpthread
X+#LIBS	= -L../lib -ludbc -pthread
X 
X udbctest: udbctest.c
X 	cc $(CFLAGS) -o udbctest udbctest.c $(LIBS)
END-of-libudbc/files/patch-ab
echo x - libudbc/files/patch-aa
sed 's/^X//' >libudbc/files/patch-aa << 'END-of-libudbc/files/patch-aa'
X--- udbcsdk/examples/udbctest.c.orig	Sun Oct 29 01:10:02 2000
X+++ udbcsdk/examples/udbctest.c	Sun Oct 29 01:10:18 2000
X@@ -19,7 +19,7 @@
X 
X #include <stdio.h>
X #include <string.h>
X-#include "libudbc.h"
X+#include <libudbc.h>
X 
X #define MAXCOLS		32
X 
END-of-libudbc/files/patch-aa
echo x - libudbc/pkg-message
sed 's/^X//' >libudbc/pkg-message << 'END-of-libudbc/pkg-message'
X
X/**********************************************************
XYou need install udbc.ini to /etc/udbc.ini or ~/.udbc.ini, 
Xyou will find well commented sample installed as 
XPREFIX/share/doc/libudbc/udbc.ini.sample.
XA sample application using libudbc is also installed as
XPREFIX/share/examples/libudbc/udbctest.c
X***********************************************************/
X
END-of-libudbc/pkg-message
exit



>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200010281822.e9SIMoC16478>