diff --git a/databases/sqsh/Makefile b/databases/sqsh/Makefile new file mode 100644 index 00000000000..b8e8ba6530d --- /dev/null +++ b/databases/sqsh/Makefile @@ -0,0 +1,37 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2001/08/11 16:23:16 naddy Exp $ +# vim:ts=8 + +DISTNAME= sqsh-1.7 +CATEGORIES= databases shells +NEED_VERSION= 1.433 + +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +COMMENT= "SQL shell" +HOMEPAGE= http://www.voicenet.com/~gray/sqsh.html +MASTER_SITES= http://www.users.voicenet.com/~gray/ +EXTRACT_SUFX= -src.tar.gz + +MAINTAINER= Joshua Stein + +LIB_DEPENDS= intl.1::devel/gettext \ + tds.0::databases/freetds + +CONFIGURE_STYLE= gnu +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" \ + SYBASE="${LOCALBASE}" +CONFIGURE_ARGS= --with-readline +ALL_TARGET= + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/sqsh ${PREFIX}/bin/ + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/sqsh + ${INSTALL_DATA} ${WRKSRC}/doc/sample.sqshrc \ + ${PREFIX}/share/examples/sqsh + ${INSTALL_MAN} ${WRKSRC}/doc/sqsh.1 ${PREFIX}/man/man1 + +.include diff --git a/databases/sqsh/files/md5 b/databases/sqsh/files/md5 new file mode 100644 index 00000000000..5a4a65dd2a1 --- /dev/null +++ b/databases/sqsh/files/md5 @@ -0,0 +1,3 @@ +MD5 (sqsh-1.7-src.tar.gz) = dfdb8eda026ff1fedbbf64d8c173705a +RMD160 (sqsh-1.7-src.tar.gz) = 9126ff396303e744060870ed2c89c466ce66e551 +SHA1 (sqsh-1.7-src.tar.gz) = 8526cced3350024ef262a0a572d2822c6059159c diff --git a/databases/sqsh/patches/patch-configure b/databases/sqsh/patches/patch-configure new file mode 100644 index 00000000000..145e6c0fa91 --- /dev/null +++ b/databases/sqsh/patches/patch-configure @@ -0,0 +1,21 @@ +$OpenBSD: patch-configure,v 1.1.1.1 2001/08/11 16:23:16 naddy Exp $ +--- configure.orig Tue Jan 5 20:33:39 1999 ++++ configure Mon Aug 6 16:26:42 2001 +@@ -1095,7 +1095,7 @@ + # The basic client libraries that are always needed + # on all platforms. + # +- SYBASE_LIBS="-lblk -lcs -lct -lcomn -ltcl -lintl" ++ SYBASE_LIBS="-lct -lm -ltds -lintl" + + MAJOR_VERSION=`echo $SYBASE_VERSION | cut -d '.' -f 1` + +@@ -1145,6 +1145,8 @@ + dgux*) + SYBASE_OS="-lm -ldl -ldgc";; + aix*) ++ SYBASE_OS="-lm";; ++ openbsd*) + SYBASE_OS="-lm";; + *) + SYBASE_OS="-lm -ldl";; diff --git a/databases/sqsh/pkg/DESCR b/databases/sqsh/pkg/DESCR new file mode 100644 index 00000000000..f069f92e964 --- /dev/null +++ b/databases/sqsh/pkg/DESCR @@ -0,0 +1,12 @@ +Sqsh (pronounced skwish) is short for SQshelL (pronounced +s-q-shell), it is intended as a replacement for the +venerable 'isql' program supplied by Sybase. + +Sqsh is much more than a nice prompt, it is intended to +provide much of the functionality provided by a good shell, +such as variables, redirection, pipes, back-grounding, job +control, history, command completion, and dynamic +configuration. Also, as a by-product of the design, it is +remarkably easy to extend and add functionality. + +WWW: ${HOMEPAGE} diff --git a/databases/sqsh/pkg/PLIST b/databases/sqsh/pkg/PLIST new file mode 100644 index 00000000000..8f5df02163c --- /dev/null +++ b/databases/sqsh/pkg/PLIST @@ -0,0 +1,5 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2001/08/11 16:23:16 naddy Exp $ +bin/sqsh +man/man1/sqsh.1 +share/examples/sqsh/sample.sqshrc +@dirrm share/examples/sqsh