diff --git a/databases/xmysql/Makefile b/databases/xmysql/Makefile new file mode 100644 index 00000000000..83ab4ac3a44 --- /dev/null +++ b/databases/xmysql/Makefile @@ -0,0 +1,17 @@ +# $FreeBSD: ports/databases/xmysql/Makefile,v 1.22 1999/08/31 06:41:26 mharo Exp $ +# $OpenBSD: Makefile,v 1.1.1.1 2000/01/31 06:44:11 form Exp $ + +DISTNAME= xmysql-1.9 +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 + +.include diff --git a/databases/xmysql/files/md5 b/databases/xmysql/files/md5 new file mode 100644 index 00000000000..d67f889ea37 --- /dev/null +++ b/databases/xmysql/files/md5 @@ -0,0 +1,3 @@ +MD5 (xmysql-1.9.tar.gz) = f16b621ad9b3665c4308cd6fc38f289a +RMD160 (xmysql-1.9.tar.gz) = 4a54880fea334f9b7fa55353eafe8ea6358d612f +SHA1 (xmysql-1.9.tar.gz) = 030e102d6927345fee0833533e737cd81e9bb125 diff --git a/databases/xmysql/patches/patch-aa b/databases/xmysql/patches/patch-aa new file mode 100644 index 00000000000..be5e73febe3 --- /dev/null +++ b/databases/xmysql/patches/patch-aa @@ -0,0 +1,68 @@ +# $OpenBSD: patch-aa,v 1.1.1.1 2000/01/31 06:44:11 form Exp $ + +--- Makefile.orig Fri Oct 23 08:35:51 1998 ++++ Makefile Mon Jan 31 12:15:58 2000 +@@ -31,24 +31,23 @@ + PROGRAM = xmysql + + # PROGRAM install path +-INSTALLPATH = /usr/local/xmysql-1.9 ++INSTALLPATH = ${PREFIX}/bin + + # pixmap location +-XMYSQL_XPMPATH = /usr/local/xmysql-1.9 ++XMYSQL_XPMPATH = ${X11BASE}/include/X11/pixmaps + + # help path +-XMYSQL_HELPPATH = /usr/local/xmysql-1.9 ++XMYSQL_HELPPATH = ${X11BASE}/lib/X11/xmysql + + # Compilation Details +-CC = gcc +-STDCFLAGS = -g -c -O2 -Wall -DXMYSQL_XPMPATH=\"$(XMYSQL_XPMPATH)\" -DXMYSQL_HELPPATH=\"$(XMYSQL_HELPPATH)\" ++STDCFLAGS = $(CFLAGS) -DXMYSQL_XPMPATH=\"$(XMYSQL_XPMPATH)\" -DXMYSQL_HELPPATH=\"$(XMYSQL_HELPPATH)\" + STDLFLAGS = +-MYSQLINC = -I/usr/include/mysql +-MYSQLLOAD = -L/usr/lib/mysql -lmysqlclient +-XFORMLIBDIR = -L/usr/local/xforms +-XFORMINCDIR = -I/usr/local/xforms +-XINC = +-XLOAD = -L/usr/X11R6/lib -lX11 ++MYSQLINC = -I${LOCALBASE}/include/mysql ++MYSQLLOAD = -L${LOCALBASE}/lib/mysql -lmysqlclient ++XFORMLIBDIR = -L${X11BASE}/lib ++XFORMINCDIR = -I${X11BASE}/include/X11 ++XINC = -I${X11BASE}/include ++XLOAD = -L${X11BASE}/lib -lX11 + + # objects needed for the program + OBJS = Xmysql.o \ +@@ -57,20 +56,23 @@ + XmysqlDB.o \ + XmysqlErr.o + ++all: ${PROGRAM} ++ + ${PROGRAM}: $(OBJS) + $(CC) -o ${PROGRAM} $(OBJS) $(MYSQLINC) $(XFORMINCDIR) \ + $(XINC) $(STDLFLAGS) $(MYSQLLOAD) \ +- $(XLOAD) $(XFORMLIBDIR) -lforms -lXpm -lm ++ $(XLOAD) $(XFORMLIBDIR) -lxforms -lXpm -lm + + .c.o: +- $(CC) $*.c $(STDCFLAGS) $(XFORMINCDIR) $(MYSQLINC) $(XINC) ++ $(CC) -c $*.c $(STDCFLAGS) $(XFORMINCDIR) $(MYSQLINC) $(XINC) + + clean: + rm -f ${PROGRAM} $(OBJS) + + install: + install -d $(INSTALLPATH) $(XMYSQL_XPMPATH) $(XMYSQL_HELPPATH) +- install --mode=711 $(PROGRAM) $(INSTALLPATH) +- install --mode=744 mysql.xpm $(XMYSQL_XPMPATH) +- install --mode=744 sqlhelp.txt $(XMYSQL_HELPPATH) ++ install -s -m 511 $(PROGRAM) $(INSTALLPATH) ++ install -m 444 mysql.xpm $(XMYSQL_XPMPATH) ++ install -d -m 755 $(XMYSQL_HELPPATH) ++ install -m 444 sqlhelp.txt $(XMYSQL_HELPPATH) + diff --git a/databases/xmysql/patches/patch-ab b/databases/xmysql/patches/patch-ab new file mode 100644 index 00000000000..de225c4d40d --- /dev/null +++ b/databases/xmysql/patches/patch-ab @@ -0,0 +1,16 @@ +# $OpenBSD: patch-ab,v 1.1.1.1 2000/01/31 06:44:11 form Exp $ + +--- Xmysql_cb.c.orig Tue Sep 2 16:08:23 1997 ++++ Xmysql_cb.c Tue Sep 2 16:09:08 1997 +@@ -1,5 +1,11 @@ + #include ++ ++#if defined(__FreeBSD__) || defined(__OpenBSD__) ++#include ++#else + #include ++#endif ++ + #include "forms.h" + #include "Xmysql.h" + #include "XmysqlDB.h" diff --git a/databases/xmysql/patches/patch-ac b/databases/xmysql/patches/patch-ac new file mode 100644 index 00000000000..c55ebe57ac8 --- /dev/null +++ b/databases/xmysql/patches/patch-ac @@ -0,0 +1,13 @@ +# $OpenBSD: patch-ac,v 1.1.1.1 2000/01/31 06:44:11 form Exp $ + +--- XmysqlDB.c.orig Wed Oct 21 05:05:07 1998 ++++ XmysqlDB.c Fri Dec 25 16:27:36 1998 +@@ -26,7 +26,7 @@ + unsigned long rows_affected = 0; + char *semicolon = 0; + char *pos = 0, *r, *r_end; +- ulong *lengths = 0; ++ unsigned long *lengths = 0; + int total_lines = 0; + int maxSize = 0; + int maxLen = 0; diff --git a/databases/xmysql/pkg/COMMENT b/databases/xmysql/pkg/COMMENT new file mode 100644 index 00000000000..7434e507535 --- /dev/null +++ b/databases/xmysql/pkg/COMMENT @@ -0,0 +1 @@ +X11 front end to the MySQL database engine diff --git a/databases/xmysql/pkg/DESCR b/databases/xmysql/pkg/DESCR new file mode 100644 index 00000000000..5a8b2255109 --- /dev/null +++ b/databases/xmysql/pkg/DESCR @@ -0,0 +1,9 @@ +XmySQL is a front end to the MySQL database engine. It allows for +simple queries and table maintenance, as well as batch queries. +XmySQL has been compiled and tested on Linux 2.0.0 with MySQL 3.20.16 +and Xforms version 0.86. + +Rick Mehalick +dblhack@wt.net +rmehalic@i-o.com +http://web.wt.net/~dblhack diff --git a/databases/xmysql/pkg/PLIST b/databases/xmysql/pkg/PLIST new file mode 100644 index 00000000000..383b1ac40c7 --- /dev/null +++ b/databases/xmysql/pkg/PLIST @@ -0,0 +1,4 @@ +bin/xmysql +include/X11/pixmaps/mysql.xpm +lib/X11/xmysql/sqlhelp.txt +@dirrm lib/X11/xmysql