ports/118601: Update port: databases/libzdb to 2.0.2

KATO Tsuguru tkato432 at yahoo.com
Wed Dec 12 18:30:10 UTC 2007


>Number:         118601
>Category:       ports
>Synopsis:       Update port: databases/libzdb to 2.0.2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 12 18:30:09 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 6.2-RELEASE-p8 i386
>Organization:
>Environment:
>Description:
- Update to version 2.0.2

Remove file:
files/patch-configure

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/databases/libzdb/Makefile databases/libzdb/Makefile
--- /usr/ports/databases/libzdb/Makefile	Mon Feb 26 15:35:24 2007
+++ databases/libzdb/Makefile	Sun Oct 21 02:37:38 2007
@@ -6,26 +6,25 @@
 #
 
 PORTNAME=	libzdb
-PORTVERSION=	2.0
+PORTVERSION=	2.0.2
 CATEGORIES=	databases
 MASTER_SITES=	http://www.tildeslash.com/libzdb/dist/
 
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	Thread-safe connection pool library
 
-GNU_CONFIGURE=	yes
+OPTIONS=	MYSQL "Add MySQL support" on \
+		SQLITE " Add Sqlite support" on \
+		PGSQL "Add PgSQL support" on
+
+USE_GNOME=	gnometarget
 USE_GMAKE=	yes
 USE_AUTOTOOLS=	libtool:15
-USE_GNOME=	gnometarget
-USE_LDCONFIG=	yes
 CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
 		LDFLAGS="-L${LOCALBASE}/lib" \
 		PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
 		PTHREAD_LIBS="${PTHREAD_LIBS}"
-
-OPTIONS=	MYSQL "Add MySQL support" on \
-		SQLITE " Add Sqlite support" on \
-		PGSQL "Add PgSQL support" on
+USE_LDCONFIG=	yes
 
 PLIST_SUB=	VERSION=${PORTVERSION}
 
@@ -53,6 +52,11 @@
 .endif
 
 post-patch:
-	@${REINPLACE_CMD} 's,%%PTHREAD_LIBS%%,${PTHREAD_LIBS},g' ${WRKSRC}/configure
+	@${REINPLACE_CMD} -e 's|-lpthread |${PTHREAD_LIBS} |g ; \
+		 s|_mysql/lib |_mysql/lib/mysql |g ; \
+		 s|_mysql/include |_mysql/include/mysql |g ; \
+		 s|_mysql/include"|_mysql/include/mysql"|g ; \
+		 s|_mysql/lib/l|_mysql/lib/mysql/l|g ; \
+		 s|_mysql/lib/ |_mysql/lib/mysql |g' ${WRKSRC}/configure
 
 .include <bsd.port.post.mk>
diff -urN /usr/ports/databases/libzdb/distinfo databases/libzdb/distinfo
--- /usr/ports/databases/libzdb/distinfo	Mon Feb 26 15:35:24 2007
+++ databases/libzdb/distinfo	Sat Oct 20 01:14:59 2007
@@ -1,3 +1,3 @@
-MD5 (libzdb-2.0.tar.gz) = 32cea8214f74b5f9c9185763159064c3
-SHA256 (libzdb-2.0.tar.gz) = 89f90f8c461bc6cf39e6edec68ab0170334a045f4948bef402b67a2208482736
-SIZE (libzdb-2.0.tar.gz) = 521236
+MD5 (libzdb-2.0.2.tar.gz) = 7049217b4dede41b84bb5062f0055988
+SHA256 (libzdb-2.0.2.tar.gz) = 336c808f9d4d956754d601b850ab78e45fe716246e3ab79267c8d59c42d215ce
+SIZE (libzdb-2.0.2.tar.gz) = 558485
diff -urN /usr/ports/databases/libzdb/files/patch-configure databases/libzdb/files/patch-configure
--- /usr/ports/databases/libzdb/files/patch-configure	Mon Feb 26 15:35:24 2007
+++ databases/libzdb/files/patch-configure	Thu Jan  1 09:00:00 1970
@@ -1,44 +0,0 @@
---- configure.orig	Fri Feb 16 05:10:48 2007
-+++ configure	Mon Feb 26 14:33:53 2007
-@@ -19459,7 +19459,7 @@
-   echo $ECHO_N "(cached) $ECHO_C" >&6
- else
-   ac_check_lib_save_LIBS=$LIBS
--LIBS="-lpthread  $LIBS"
-+LIBS="%%PTHREAD_LIBS%%  $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- /* confdefs.h.  */
- _ACEOF
-@@ -19522,7 +19522,7 @@
- #define HAVE_LIBPTHREAD 1
- _ACEOF
- 
--  LIBS="-lpthread $LIBS"
-+  LIBS="%%PTHREAD_LIBS%% $LIBS"
- 
- else
-   { { echo "$as_me:$LINENO: error: POSIX thread library is required" >&5
-@@ -19548,8 +19548,8 @@
-         else
-                 svd_LDFLAGS=$LDFLAGS
-                 svd_CPPFLAGS=$CPPFLAGS
--                LDFLAGS="-L$with_mysql/lib $LDFLAGS"
--                CPPFLAGS="-I$with_mysql/include $CPPFLAGS"
-+                LDFLAGS="-L$with_mysql/lib/mysql $LDFLAGS"
-+                CPPFLAGS="-I$with_mysql/include/mysql $CPPFLAGS"
- 
- for ac_header in mysql.h
- do
-@@ -19697,9 +19697,9 @@
- _ACEOF
- 
-                         mysql="yes"
--                        if test -r "$with_mysql/lib/libmysqlclient.a"; then
--                                DBCPPFLAGS="$DBCPPFLAGS -I$with_mysql/include"
--                                DBLDFLAGS="$DBLDFLAGS -L$with_mysql/lib/ -lmysqlclient"
-+                        if test -r "$with_mysql/lib/mysql/libmysqlclient.a"; then
-+                                DBCPPFLAGS="$DBCPPFLAGS -I$with_mysql/includemysql"
-+                                DBLDFLAGS="$DBLDFLAGS -L$with_mysql/lib/mysql -lmysqlclient"
-                         else
-                                 mysql="no"
-                         fi
diff -urN /usr/ports/databases/libzdb/pkg-plist databases/libzdb/pkg-plist
--- /usr/ports/databases/libzdb/pkg-plist	Sun Mar  4 18:13:01 2007
+++ databases/libzdb/pkg-plist	Sun Oct 21 02:28:30 2007
@@ -9,4 +9,4 @@
 lib/libzdb.la
 lib/libzdb.so
 lib/libzdb-%%VERSION%%.so
-lib/libzdb-%%VERSION%%.so.2
+lib/libzdb-%%VERSION%%.so.3
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list