xmysql 1.9
X11 front end to the MySQL database engine
This commit is contained in:
parent
36a793d887
commit
40ab09282b
17
databases/xmysql/Makefile
Normal file
17
databases/xmysql/Makefile
Normal file
@ -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 <bsd.port.mk>
|
3
databases/xmysql/files/md5
Normal file
3
databases/xmysql/files/md5
Normal file
@ -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
|
68
databases/xmysql/patches/patch-aa
Normal file
68
databases/xmysql/patches/patch-aa
Normal file
@ -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)
|
||||
|
16
databases/xmysql/patches/patch-ab
Normal file
16
databases/xmysql/patches/patch-ab
Normal file
@ -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 <string.h>
|
||||
+
|
||||
+#if defined(__FreeBSD__) || defined(__OpenBSD__)
|
||||
+#include <stdlib.h>
|
||||
+#else
|
||||
#include <malloc.h>
|
||||
+#endif
|
||||
+
|
||||
#include "forms.h"
|
||||
#include "Xmysql.h"
|
||||
#include "XmysqlDB.h"
|
13
databases/xmysql/patches/patch-ac
Normal file
13
databases/xmysql/patches/patch-ac
Normal file
@ -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;
|
1
databases/xmysql/pkg/COMMENT
Normal file
1
databases/xmysql/pkg/COMMENT
Normal file
@ -0,0 +1 @@
|
||||
X11 front end to the MySQL database engine
|
9
databases/xmysql/pkg/DESCR
Normal file
9
databases/xmysql/pkg/DESCR
Normal file
@ -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
|
4
databases/xmysql/pkg/PLIST
Normal file
4
databases/xmysql/pkg/PLIST
Normal file
@ -0,0 +1,4 @@
|
||||
bin/xmysql
|
||||
include/X11/pixmaps/mysql.xpm
|
||||
lib/X11/xmysql/sqlhelp.txt
|
||||
@dirrm lib/X11/xmysql
|
Loading…
Reference in New Issue
Block a user