diff options
author | grant <grant@pkgsrc.org> | 2004-03-29 03:11:03 +0000 |
---|---|---|
committer | grant <grant@pkgsrc.org> | 2004-03-29 03:11:03 +0000 |
commit | 41a006b9568d2d0c5885c3d6cf8eb53b0bc2db26 (patch) | |
tree | 87570d0207c306cd6b32f97255d1cd870b4b1e0b /databases/sqsh/Makefile | |
parent | 3082bb5db48238ba2a93f3c430d21fd68fc98bb3 (diff) | |
download | pkgsrc-41a006b9568d2d0c5885c3d6cf8eb53b0bc2db26.tar.gz |
Updated sqsh to 2.1.
pkg related changes: honour PKG_SYSCONFDIR for sqshrc.
Major changes since 1.7:
* New build system/directory structure. Should build against ASE
12.0 and FreeTDS now.
* Added support for varchar2() and varbinary2() for ASE 12.5 (I
don't have a 12.5 instance to test against yet though).
* Added \if command to perform conditional execution. Please read
the manual carefully on how expressions work.
* Added \while command to perform basic looping conditional
expressions.
* Added \break command to break out of current loop
* Added \for command to perform basic iteration.
* Added \do command to allow the exection of a sqsh script block
once per row returned from statement. Also new #[0-9] variables
may be used to refer to column names in result set. Also note
that \do allows flags -U, -S, -P for execution of statements on
other server or as other users.
* Added \func command to create a sqsh function for later
execution. Also, now ${[0-9]} now refer to the parameters to
this function when it is called. Note that by passing -x to
\func, the function will be exported as a full sqsh command, and
can be called directly without calling \call.
* Added \return to return from current function.
* Obviously, added \call to call sqsh function.
* New variable $? contains: - Return status of command executed on
pipe '|' - Return status of expression evaluated for \while or
\if. - Last server error number of severity > 10 (@@error). This
is useful for flow-of-control using the new conditional
statements.
* Added a directory of handy filter scripts.
* Fixed \rpc command with @variable names.
* \exit now exits sqsh, no matter how many \loop nesting levels
you are in.
* The user will now be re-prompted to enter a password if a "Login
failed." message is received from the server. This may be
disabled using the new $password_retry variable.
* Got rid of error message about ct_exit() not being called.
* Created new 'make distrib' option to build a self-contained sqsh
binary distribution.
* $rcfile and $SQSHRC may now be colon delimited lists of sqshrc
files. This allows for system-wide rc files to be loaded first
before local files. Also, the default $SQSHRC setting is now
"/usr/local/etc/sqshrc:$HOME/.sqshrc" (the /usr/local will be
automatically replaced by the contents of --prefix when passed
to configure).
* Fixed -C.
* $SQSHRC no longer needs to be writable.
* sqsh no longer pays attention to quotes inside of comments
during variable expansion.
* Fixed bcp'ing of results from stored procedures.
* libsybtcl will now be chosen if available.
* 'exact' mode keyword expansion should now work better (thanks to
Sean Woolcock.
* Added $bcp_colsep and $bcp_rowsep configuration variables to
control the separators used during "go -m bcp".
* Added $bcp_trim to configure whether or not trailing spaces are
trimmed in the bcp output.
* Fixed segfault in "pretty" display mode.
Diffstat (limited to 'databases/sqsh/Makefile')
-rw-r--r-- | databases/sqsh/Makefile | 60 |
1 files changed, 4 insertions, 56 deletions
diff --git a/databases/sqsh/Makefile b/databases/sqsh/Makefile index 83bab46afaa..bdda868a854 100644 --- a/databases/sqsh/Makefile +++ b/databases/sqsh/Makefile @@ -1,59 +1,7 @@ -# $NetBSD: Makefile,v 1.21 2004/03/29 02:44:30 grant Exp $ +# $NetBSD: Makefile,v 1.22 2004/03/29 03:11:03 grant Exp $ -DISTNAME= sqsh-1.7-src -PKGNAME= sqsh-1.7 -PKGREVISION= 3 -CATEGORIES= databases -MASTER_SITES= ${HOMEPAGE} +PKGNAME= sqsh-2.1 -MAINTAINER= tsarna@NetBSD.org -HOMEPAGE= http://www.sqsh.org/ -COMMENT= Sybase SQL shell +CONFLICTS+= sqsh-x11-[0-9]* -ALL_TARGET= sqsh -INSTALL_TARGET= install install.man - -WRKSRC= ${WRKDIR}/${PKGNAME_NOREV} -USE_BUILDLINK2= yes -GNU_CONFIGURE= yes -CONFIGURE_ARGS+= --with-readline - -# support for the native Sybase Open Client -BUILD_DEFS+= USE_SYBASE_OPENCLIENT -BUILD_DEFS+= SYBASE -.if defined(USE_SYBASE_OPENCLIENT) && empty(USE_SYBASE_OPENCLIENT:M[Nn][Oo]) -. if defined(SYBASE) && exists(${SYBASE}/lib/libct.so) -BUILDLINK_PASSTHRU_DIRS=${SYBASE} -_SYBASE= ${SYBASE} -. else -PKG_FAIL_REASON+= "You must define SYBASE to the base directory of Open Client." -. endif -.else -_SYBASE= ${BUILDLINK_PREFIX.freetds}/freetds -MAKE_FLAGS+= SYBASE_LIBS=-lct -.endif - -LDFLAGS+= -Wl,${RPATH_FLAG}${_SYBASE}/lib - -CONFIGURE_ENV+= SYBASE="${_SYBASE}" -CONFIGURE_ENV+= INCDIRS="${BUILDLINK_PREFIX.readline}/include" -CONFIGURE_ENV+= LIBDIRS="${BUILDLINK_PREFIX.readline}/lib" - -do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/sqsh ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/doc/sqsh.1 ${PREFIX}/man/man1/sqsh.1 - ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/sqsh - ${INSTALL_DATA} ${WRKSRC}/doc/sample.sqshrc ${PREFIX}/share/examples/sqsh - -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "Darwin" -. include "../../devel/dlcompat/buildlink2.mk" -.endif - -.if !defined(USE_SYBASE_OPENCLIENT) -. include "../../databases/freetds/buildlink2.mk" -.endif - -.include "../../devel/readline/buildlink2.mk" -.include "../../mk/bsd.pkg.mk" +.include "Makefile.common" |