ports/53246: New Port: mysqlcc

Mark Hannon markhannon at optusnet.com.au
Thu Jun 12 06:20:11 UTC 2003


>Number:         53246
>Category:       ports
>Synopsis:       New Port: mysqlcc
>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 Jun 11 23:20:09 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Mark Hannon
>Release:        FreeBSD 4.8-RELEASE i386
>Organization:
>Environment:
System: FreeBSD doorway.home.lan 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Thu Apr 3 10:53:38 GMT 2003 root at freebsd-stable.sentex.ca:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:
	
This is a port of the mysqlcc GUI for mysql.  It works great under 4.8-RELEASE but
is a little flakey under 5.1-CURRENT (it tends to core dump when you close a window).
>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:
#
#	mysqlcc
#	mysqlcc/files
#	mysqlcc/files/patch-configure
#	mysqlcc/files/patch-pathfix
#	mysqlcc/Makefile
#	mysqlcc/distinfo
#	mysqlcc/pkg-descr
#	mysqlcc/pkg-plist
#
echo c - mysqlcc
mkdir -p mysqlcc > /dev/null 2>&1
echo c - mysqlcc/files
mkdir -p mysqlcc/files > /dev/null 2>&1
echo x - mysqlcc/files/patch-configure
sed 's/^X//' >mysqlcc/files/patch-configure << 'END-of-mysqlcc/files/patch-configure'
X--- configure	Thu May  1 13:20:53 2003
X+++ configure	Wed Jun 11 11:16:45 2003
X@@ -4065,7 +4065,7 @@
X   $ac_cs_success || { (exit 1); exit 1; }
X fi
X 
X-QMAKESPEC=$QTDIR/mkspecs/$host_os
X+QMAKESPEC=$QTDIR/share/qt/mkspecs/freebsd-g++
X echo "Creating Makefile with qmake"
X QMAKESPEC=$QMAKESPEC QTDIR=$QTDIR $QTDIR/bin/qmake mysqlcc.pro
X if test ! $? = 0 ; then
END-of-mysqlcc/files/patch-configure
echo x - mysqlcc/files/patch-pathfix
sed 's/^X//' >mysqlcc/files/patch-pathfix << 'END-of-mysqlcc/files/patch-pathfix'
X--- src/CApplication.cpp.orig
X+++ src/CApplication.cpp
X@@ -119,8 +119,8 @@
X   confirm_critical = strtobool(cfg->readStringEntry("Confirm Critical", "true"));
X   
X   //Directory where mysqlcc.exe (or mysqlcc) is.
X-  QString mydir = QDir::currentDirPath() + "/";
X-  //QString mydir = "/usr/share/mysqlcc/";  This needs to be done with a PREFIX define ..
X+  //QString mydir = QDir::currentDirPath() + "/";
X+  QString mydir = "/usr/local/share/mysqlcc/";  //This needs to be done with a PREFIX define ..
X   
X   //Translations path
X   translations_path = cfg->readStringEntry("Translations Path", mydir + "translations/");i
X
END-of-mysqlcc/files/patch-pathfix
echo x - mysqlcc/Makefile
sed 's/^X//' >mysqlcc/Makefile << 'END-of-mysqlcc/Makefile'
X# New ports collection makefile for: mysqlcc
X# Date created:	11 June 2002
X# Whom: Mark Hannon <markhannon at optusnet.com.au>
X#
X# $FreeBSD$
X
XPORTNAME=	mysqlcc
XPORTVERSION=	0.9.2
XCATEGORIES=	databases
XMASTER_SITES=	ftp://ftp.planetmirror.com/pub/mysql/Downloads/MySQLCC/
XEXTRACT_SUFX=	-src.tar.gz
X
XMAINTAINER=	markhannon at optusnet.com.au
XCOMMENT=	A graphical control centre for Mysql
X
XLIB_DEPENDS=	mysqlclient.14:${PORTSDIR}/databases/mysql40-client:install
X
XWRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}-src
XGNU_CONFIGURE=	yes
XUSE_GMAKE=	yes
XUSE_QT_VER=	3
XCONFIGURE_ARGS+=--with-qt=${X11BASE}
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/mysqlcc ${PREFIX}/bin
X	${MKDIR} ${PREFIX}/share/mysqlcc
X	${INSTALL_DATA} ${WRKSRC}/*.wav ${PREFIX}/share/mysqlcc
X	${INSTALL_DATA} ${WRKSRC}/syntax.txt ${PREFIX}/share/mysqlcc
X	${MKDIR} ${PREFIX}/share/mysqlcc/translations
X	${INSTALL_DATA} ${WRKSRC}/translations/*.qm ${PREFIX}/share/mysqlcc/translations
X	${INSTALL_DATA} ${WRKSRC}/translations/*.ts ${PREFIX}/share/mysqlcc/translations
X	${MKDIR} ${PREFIX}/share/mysqlcc/xpm
X	${INSTALL_DATA} ${WRKSRC}/xpm/applicationIcon.xpm ${PREFIX}/share/mysqlcc/xpm
X
X.include <bsd.port.mk>
END-of-mysqlcc/Makefile
echo x - mysqlcc/distinfo
sed 's/^X//' >mysqlcc/distinfo << 'END-of-mysqlcc/distinfo'
XMD5 (mysqlcc-0.9.2-src.tar.gz) = 812c762b91011f0d1c2d834ce05fd5c3
END-of-mysqlcc/distinfo
echo x - mysqlcc/pkg-descr
sed 's/^X//' >mysqlcc/pkg-descr << 'END-of-mysqlcc/pkg-descr'
XMySQL Control Center (also known as MySQLCC) is a platform-independent GUI
Xadministration client for the MySQL database server.  
X
XFeatures:
X
XInteractive queries with a syntax-highlighting SQL editor:
X
X    With MySQLCC, you can construct queries using a syntax-highlighting text
Xeditor, and then view the results in a configurable table display. The table
Xview includes support for viewing images stored in BLOB fields.  
X
XDatabase and table management:
X
X    MySQLCC makes it easy to create and manage databases and tables, including
Xviews for all of the table and field attributes such as comments and key
Xlengths. You can also check, repair, and optimize tables.  
X
XServer administration:
X
X    You can easily view and change server variables, as well as view server
Xstatus information. MySQLCC also supports multiple servers.
END-of-mysqlcc/pkg-descr
echo x - mysqlcc/pkg-plist
sed 's/^X//' >mysqlcc/pkg-plist << 'END-of-mysqlcc/pkg-plist'
Xbin/mysqlcc
Xshare/mysqlcc/error.wav
Xshare/mysqlcc/warning.wav
Xshare/mysqlcc/syntax.txt
Xshare/mysqlcc/translations/Deutsch.qm
Xshare/mysqlcc/translations/Deutsch.ts
Xshare/mysqlcc/translations/French.qm
Xshare/mysqlcc/translations/French.ts
Xshare/mysqlcc/translations/Russian.qm
Xshare/mysqlcc/translations/Russian.ts
Xshare/mysqlcc/translations/Spanish.qm
Xshare/mysqlcc/translations/Spanish.ts
Xshare/mysqlcc/translations/Simplified_Chinese.qm
Xshare/mysqlcc/translations/Simplified_Chinese.ts
Xshare/mysqlcc/translations/Traditional_Chinese.qm
Xshare/mysqlcc/translations/Traditional_Chinese.ts
Xshare/mysqlcc/xpm/applicationIcon.xpm
X at dirrm share/mysqlcc/translations
X at dirrm share/mysqlcc/xpm
X at dirrm share/mysqlcc
END-of-mysqlcc/pkg-plist
exit

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



More information about the freebsd-ports-bugs mailing list