From c93f044f2aa995b3123441b97790595b5e17953f Mon Sep 17 00:00:00 2001 From: form Date: Mon, 31 Jan 2000 06:45:26 +0000 Subject: [PATCH] xmysqladmin 1.0 X11 front end to the mysqladmin command of the MySQL database engine --- databases/xmysqladmin/Makefile | 18 +++++ databases/xmysqladmin/files/md5 | 3 + databases/xmysqladmin/patches/patch-aa | 98 ++++++++++++++++++++++++++ databases/xmysqladmin/pkg/COMMENT | 1 + databases/xmysqladmin/pkg/DESCR | 8 +++ databases/xmysqladmin/pkg/PLIST | 2 + 6 files changed, 130 insertions(+) create mode 100644 databases/xmysqladmin/Makefile create mode 100644 databases/xmysqladmin/files/md5 create mode 100644 databases/xmysqladmin/patches/patch-aa create mode 100644 databases/xmysqladmin/pkg/COMMENT create mode 100644 databases/xmysqladmin/pkg/DESCR create mode 100644 databases/xmysqladmin/pkg/PLIST diff --git a/databases/xmysqladmin/Makefile b/databases/xmysqladmin/Makefile new file mode 100644 index 00000000000..998f8471c95 --- /dev/null +++ b/databases/xmysqladmin/Makefile @@ -0,0 +1,18 @@ +# $FreeBSD: ports/databases/xmysqladmin/Makefile,v 1.25 1999/11/23 02:59:09 billf Exp $ +# $OpenBSD: Makefile,v 1.1.1.1 2000/01/31 06:45:26 form Exp $ + +DISTNAME= xmysqladmin-1.0 +CATEGORIES= databases +MASTER_SITES= http://www.tcx.se/Contrib/ \ + http://www.buoy.com/mysql/Contrib/ \ + http://web.tryc.on.ca/mysql/Downloads/Contrib/ + +MAINTAINER= ports@openbsd.org + +LIB_DEPENDS= xforms.0:${PORTSDIR}/x11/xforms \ + mysqlclient.6:${PORTSDIR}/databases/mysql + +USE_X11= yes +ALL_TARGET= xmysqladmin + +.include diff --git a/databases/xmysqladmin/files/md5 b/databases/xmysqladmin/files/md5 new file mode 100644 index 00000000000..45c476fe7e4 --- /dev/null +++ b/databases/xmysqladmin/files/md5 @@ -0,0 +1,3 @@ +MD5 (xmysqladmin-1.0.tar.gz) = d02b7e52d034f2f41b6f43ced3cb8e21 +RMD160 (xmysqladmin-1.0.tar.gz) = e352fca52fc45efff7438d19fb38c27d02101e4d +SHA1 (xmysqladmin-1.0.tar.gz) = 60697568fef51c2361a7a31262cb1691c25c3d46 diff --git a/databases/xmysqladmin/patches/patch-aa b/databases/xmysqladmin/patches/patch-aa new file mode 100644 index 00000000000..554ece6e55a --- /dev/null +++ b/databases/xmysqladmin/patches/patch-aa @@ -0,0 +1,98 @@ +# $OpenBSD: patch-aa,v 1.1.1.1 2000/01/31 06:45:26 form Exp $ + +--- Makefile.orig Mon Dec 7 17:52:39 1998 ++++ Makefile Mon Jan 31 12:33:37 2000 +@@ -34,7 +34,7 @@ + # This is used by 'make install' command + #------------------------------------------------------- + #INSTALLPATH = /opt/local/i386/bin +-INSTALLPATH = /usr/local/bin ++INSTALLPATH = ${X11BASE}/bin + ######################################################## + + +@@ -45,7 +45,7 @@ + # pixmap file location (mysql.xpm) + #------------------------------------------------------- + #PIXMAPPATH = /opt/local/lib +-PIXMAPPATH = /usr/local/bin ++PIXMAPPATH = ${X11BASE}/include/X11/pixmaps + ######################################################## + + +@@ -80,8 +80,7 @@ + # Compilation Details + # hum... I think you dont need to change this + #------------------------------------------------------- +-CC = gcc +-STDCFLAGS = -g -c -O2 -Wall -DPIXMAPFILE=\"$(PIXMAPPATH)/mysql.xpm\" \ ++STDCFLAGS = $(CFLAGS) -c -DPIXMAPFILE=\"$(PIXMAPPATH)/mysql.xpm\" \ + -DBACKUP=\"$(BACKUP)\" -DBACKUPDIR=\"$(BACKUPDIR)\" \ + -DBACKUPSUFFIX=\"$(BACKUPSUFFIX)\" \ + -DMYSQL_VERSION=$(MYSQL_VERSION) +@@ -95,7 +94,7 @@ + ######################################################## + # mysql include dir + #------------------------------------------------------- +-MYSQLINC = -I/usr/local/mysql/include/mysql ++MYSQLINC = -I${LOCALBASE}/include/mysql + ######################################################## + + +@@ -107,7 +106,7 @@ + # mysql database dir + #------------------------------------------------------- + #MYSQLDBDIR = -DMYSQLDBDIR="\"/var/lib/mysql/\"" +-MYSQLDBDIR = -DMYSQLDBDIR="\"/usr/local/mysql/var/\"" ++MYSQLDBDIR = -DMYSQLDBDIR="\"/var/mysql/\"" + ######################################################## + + +@@ -118,7 +117,7 @@ + ######################################################## + # mysql library dir + #------------------------------------------------------- +-MYSQLLOAD = -Wl,-R/usr/local/mysql/lib/mysql -L/usr/local/mysql/lib/mysql -lmysqlclient ++MYSQLLOAD = -Wl,-R${LOCALBASE}/lib/mysql -L${LOCALBASE}/lib/mysql -lmysqlclient + ######################################################## + + +@@ -129,7 +128,7 @@ + # xforms librairies dir + #------------------------------------------------------- + #XFORMLIBDIR = -L/opt/local/i386/lib +-XFORMLIBDIR = -L/usr/lib ++XFORMLIBDIR = -L${X11BASE}/lib + ######################################################## + + +@@ -141,7 +140,7 @@ + # xforms include dir (xforms.h) + #------------------------------------------------------- + #XFORMINCDIR = -I/opt/local/include +-XFORMINCDIR = -I/usr/X11R6/include ++XFORMINCDIR = -I${X11BASE}/include/X11 + ######################################################## + + +@@ -156,8 +155,8 @@ + #XLOAD = -L/usr/openwin/lib -lX11 + + # Use this for Linux: +-XINC = +-XLOAD = -L/usr/X11R6/lib -lX11 /usr/X11R6/lib/libXpm.so.4 ++XINC = -I${X11BASE}/include ++XLOAD = -L${X11BASE}/lib -lX11 + ######################################################## + + +@@ -215,8 +214,7 @@ + ${PROGRAM}: $(OBJS) + $(CC) -o ${PROGRAM} $(OBJS) $(MYSQLINC) $(XFORMINCDIR) \ + $(XINC) $(STDLFLAGS) $(MYSQLLOAD) \ +- $(XLOAD) $(XFORMLIBDIR) -lforms $(LIBS) +- ./$(PROGRAM) ++ $(XLOAD) $(XFORMLIBDIR) -lxforms -lXpm $(LIBS) + + .c.o: + $(CC) $*.c $(STDCFLAGS) $(XFORMINCDIR) $(MYSQLINC) $(MYSQLDBDIR) $(XINC) diff --git a/databases/xmysqladmin/pkg/COMMENT b/databases/xmysqladmin/pkg/COMMENT new file mode 100644 index 00000000000..55e550189ec --- /dev/null +++ b/databases/xmysqladmin/pkg/COMMENT @@ -0,0 +1 @@ +X11 front end to the mysqladmin command of the MySQL diff --git a/databases/xmysqladmin/pkg/DESCR b/databases/xmysqladmin/pkg/DESCR new file mode 100644 index 00000000000..36456d7121d --- /dev/null +++ b/databases/xmysqladmin/pkg/DESCR @@ -0,0 +1,8 @@ +XmysqlAdmin is a front end to the MySQL database engine. +It allows reloads, status check, process control, isamcheck +and grant/revoke privileges. + +Gilbert Therrien +gilbert@ican.net + +PS: You can write to me in french or english. diff --git a/databases/xmysqladmin/pkg/PLIST b/databases/xmysqladmin/pkg/PLIST new file mode 100644 index 00000000000..76ef5587ac9 --- /dev/null +++ b/databases/xmysqladmin/pkg/PLIST @@ -0,0 +1,2 @@ +bin/xmysqladmin +include/X11/pixmaps/mysql.xpm