ports/55043: [update] security/prelude-manager: add MySQL hacks

Clement Laforet sheepkiller at cultdeadsheep.org
Wed Jul 30 11:10:21 UTC 2003


>Number:         55043
>Category:       ports
>Synopsis:       [update] security/prelude-manager: add MySQL hacks
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 30 04:10:19 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Clement Laforet
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
cotds.org
>Environment:
System: FreeBSD chuck.cultdeadsheep.org 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Mon Jul 14 03:00:24 CEST 2003 clement at chuck.cultdeadsheep.org:/usr/obj/usr/src/sys/CHUCK i386


	
>Description:
	Add MySQL versionning hacks.
	Set MySQL 4.0 to default.

>How-To-Repeat:
	N/A.
>Fix:

	

--- prelude-manager.diff begins here ---
diff -Nur prelude-manager.orig/Makefile prelude-manager/Makefile
--- prelude-manager.orig/Makefile	Wed Jul 30 10:58:18 2003
+++ prelude-manager/Makefile	Wed Jul 30 10:58:43 2003
@@ -6,6 +6,7 @@
 
 PORTNAME=	prelude-manager
 PORTVERSION=	0.8.7
+PORTREVISION=	1
 CATEGORIES=	security
 MASTER_SITES=   http://www.prelude-ids.org/download/releases/
 
@@ -20,6 +21,25 @@
 CONFIGURE_ARGS+=	--with-html-dir=${PREFIX}/share/doc \
 			--program-prefix="" --localstatedir=/var
 
+# MySQL deps hack
+MYSQL323_LIBVER=10
+MYSQL40_LIBVER= 12
+MYSQL41_LIBVER= 14
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_MYSQL_VER)
+MYSQL_VER=      ${WITH_MYSQL_VER}
+.elif exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.${MYSQL_323_LIBVER})
+MYSQL_VER=      323
+.elif exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.${MYSQL40_LIBVER})
+MYSQL_VER=      40
+.elif exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.${MYSQL41_LIBVER})
+MYSQL_VER=      41
+.else
+MYSQL_VER=      40
+.endif
+
 .if defined(WITHOUT_SSL)
 CONFIGURE_ARGS+=	--disable-openssl
 .else
@@ -28,7 +48,7 @@
 .endif
 
 .if defined(WITH_MYSQL)
-LIB_DEPENDS+=   	mysqlclient.10:${PORTSDIR}/databases/mysql323-client
+LIB_DEPENDS+=		mysqlclient.${MYSQL${MYSQL_VER}_LIBVER}:${PORTSDIR}/databases/mysql${MYSQL_VER}-client
 CONFIGURE_ARGS+=	--enable-mysql
 PLIST_SUB+=		MYSQL=""
 .else
@@ -52,8 +72,11 @@
 	@${ECHO} ""
 	@${ECHO} "      WITHOUT_SSL=yes         Disable SSL support"
 	@${ECHO} "      WITH_MYSQL=yes          Enable MySQL support"
+	@${ECHO} "             - WITH_MYSQL_VER=323   Enable MySQL 3.23 support"
+	@${ECHO} "             - WITH_MYSQL_VER=40    Enable MySQL 4.0 support (default)"
+	@${ECHO} "             - WITH_MYSQL_VER=41    Enable MySQL 4.1 support"
 	@${ECHO} "      WITH_POSTGRES=yes       Enable PostreSQL support"
 	@${ECHO} "*---------------------------------------------------------------------------*"
 	@${ECHO} ""
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
--- prelude-manager.diff ends here ---


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



More information about the freebsd-ports-bugs mailing list