diff options
-rw-r--r-- | lang/tcl-expect/Makefile | 32 | ||||
-rw-r--r-- | lang/tcl-expect/files/md5 | 3 | ||||
-rw-r--r-- | lang/tcl-expect/files/patch-sum | 4 | ||||
-rw-r--r-- | lang/tcl-expect/patches/patch-aa | 171 | ||||
-rw-r--r-- | lang/tcl-expect/patches/patch-ab | 9 | ||||
-rw-r--r-- | lang/tcl-expect/pkg/COMMENT | 1 | ||||
-rw-r--r-- | lang/tcl-expect/pkg/DESCR | 5 | ||||
-rw-r--r-- | lang/tcl-expect/pkg/PLIST | 44 |
8 files changed, 269 insertions, 0 deletions
diff --git a/lang/tcl-expect/Makefile b/lang/tcl-expect/Makefile new file mode 100644 index 00000000000..be70765f3e5 --- /dev/null +++ b/lang/tcl-expect/Makefile @@ -0,0 +1,32 @@ +# $NetBSD: Makefile,v 1.1.1.1 2000/09/05 16:20:29 jwise Exp $ +# + +DISTNAME= expect +PKGNAME= tcl-expect-5.32.1 +CATEGORIES= lang +MASTER_SITES= http://expect.nist.gov/ + +MAINTAINER= jwise@netbsd.org +HOMEPAGE= http://expect.nist.gov/ + +DEPENDS+= tcl-8.3.2:../../lang/tcl + +WRKSRC= ${WRKDIR}/expect-5.32 +DIST_SUBDIR= expect-5.32.1 + +GNU_CONFIGURE= yes +USE_LIBTOOL= yes +CONFIGURE_ARGS= --enable-shared \ + --with-tclconfig=${PREFIX}/lib \ + --with-tclinclude=${PREFIX}/include/tcl \ + --without-x + +.include "../../mk/bsd.prefs.mk" + +#post-extract: +# ${MV} ${WRKSRC}/example/rftp ${WRKSRC}/example/expect-rftp + +test: + @(cd ${WRKSRC}; ${MAKE} test) + +.include "../../mk/bsd.pkg.mk" diff --git a/lang/tcl-expect/files/md5 b/lang/tcl-expect/files/md5 new file mode 100644 index 00000000000..018e0d2a2cd --- /dev/null +++ b/lang/tcl-expect/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1.1.1 2000/09/05 16:20:29 jwise Exp $ + +MD5 (expect-5.32.1/expect.tar.gz) = af232cc2f8537565efa31e2f7ef7cde5 diff --git a/lang/tcl-expect/files/patch-sum b/lang/tcl-expect/files/patch-sum new file mode 100644 index 00000000000..d5e62b7223c --- /dev/null +++ b/lang/tcl-expect/files/patch-sum @@ -0,0 +1,4 @@ +$NetBSD: patch-sum,v 1.1.1.1 2000/09/05 16:20:29 jwise Exp $ + +MD5 (patch-aa) = 48cb8d0e1b11e7878dd0a194aa1e3dc9 +MD5 (patch-ab) = 0c65b03218fc20a6d85be62935fe40a5 diff --git a/lang/tcl-expect/patches/patch-aa b/lang/tcl-expect/patches/patch-aa new file mode 100644 index 00000000000..0b3cccd45c0 --- /dev/null +++ b/lang/tcl-expect/patches/patch-aa @@ -0,0 +1,171 @@ +$NetBSD: patch-aa,v 1.1.1.1 2000/09/05 16:20:30 jwise Exp $ +--- Makefile.in.orig Fri May 12 13:59:44 2000 ++++ Makefile.in Tue Sep 5 11:46:16 2000 +@@ -57,9 +57,9 @@ + # your Expect scripts. + # Note: On Linux systems which only have dynamic X libraries, the -g prevents + # the linker from using them. So do not use -g on such systems. +-CFLAGS = @CFLAGS@ ++CFLAGS = @CFLAGS@ $(STTY) $(MH_CFLAGS) $(CPPFLAGS) $(XCFLAGS) + #XCFLAGS = @CFLAGS@ @EXP_CFLAGS@ @EXP_SHLIB_CFLAGS@ +-XCFLAGS = @CFLAGS@ @EXP_CFLAGS@ ++XCFLAGS = @CFLAGS@ @EXP_CFLAGS@ $(STTY) + + # Libraries built with optimization switches have this additional extension + TCL_DBGX = @TCL_DBGX@ +@@ -79,7 +79,8 @@ + # used when Tcl was compiled. Changing this definition here can screw up + # deductions that the configure script made on the assumption that you were + # using a different compiler. +-CC = @CC@ ++CC = ${LIBTOOL} --mode=compile @CC@ ++LD = @${LIBTOOL} --mode=link @CC@ + + # By default, "make install" will install the appropriate files in + # /usr/local/bin, /usr/local/lib, /usr/local/man, etc. By changing this +@@ -170,10 +171,10 @@ + ###################################################################### + + bindir = $(INSTALL_ROOT)@bindir@ +-bindir_arch_indep = $(INSTALL_ROOT)$(prefix)/bin +-tcl_libdir = $(INSTALL_ROOT)@libdir@ +-libdir = $(INSTALL_ROOT)@libdir@/expect$(VERSION) +-libdir_arch_indep = $(INSTALL_ROOT)$(prefix)/lib/expect$(VERSION) ++bindir_arch_indep = $(INSTALL_ROOT)$(prefix)/share/examples/tcl/expect ++tcl_libdir = $(INSTALL_ROOT)$(prefix)/lib ++libdir = $(INSTALL_ROOT)@libdir@/tcl/expect$(VERSION) ++libdir_arch_indep = $(INSTALL_ROOT)$(prefix)/lib/tcl/expect$(VERSION) + + mandir = $(INSTALL_ROOT)@mandir@ + man1dir = $(mandir)/man1 +@@ -189,9 +190,10 @@ + + SHELL = @EXP_CONFIG_SHELL@ + +-INSTALL = @INSTALL@ +-INSTALL_PROGRAM = @INSTALL_PROGRAM@ +-INSTALL_DATA = @INSTALL_DATA@ ++INSTALL = ${LIBTOOL} --mode=install ${BSD_INSTALL} ++INSTALL_PROGRAM = ${LIBTOOL} --mode=install ${BSD_INSTALL_PROGRAM} ++INSTALL_DATA = ${LIBTOOL} --mode=install ${BSD_INSTALL_DATA} ++INSTALL_SCRIPT = ${LIBTOOL} --mode=install ${BSD_INSTALL_SCRIPT} + + AR = ar + ARFLAGS = cr +@@ -318,14 +320,14 @@ + # I don't understand why Tcl splits these up, but it does. LIB_RUNTIME_DIR + # can appear as part of the LD_SEARCH_FLAGS inherited by configure. + +-.c.o: +- $(CC) -c $(CFLAGS_INT) $(STTY) $(HDEFS) $< +- if [ "x$(EXP_UNSHARED_LIB_FILE)" != "x$(EXP_LIB_FILE)" ] ; then \ +- if [ ! -d shared ] ; then \ +- mkdir shared ; \ +- else true; fi ; \ +- $(CC) -c $(CFLAGS_INT) @EXP_SHLIB_CFLAGS@ $(STTY) $(HDEFS) $< -o shared/$@ ; \ +- fi ++#.c.o: ++# $(CC) -c $(CFLAGS_INT) $(STTY) $(HDEFS) $< ++# if [ "x$(EXP_UNSHARED_LIB_FILE)" != "x$(EXP_LIB_FILE)" ] ; then \ ++# if [ ! -d shared ] ; then \ ++# mkdir shared ; \ ++# else true; fi ; \ ++# $(CC) -c $(CFLAGS_INT) @EXP_SHLIB_CFLAGS@ $(STTY) $(HDEFS) $< -o shared/$@ ; \ ++# fi + + all: binaries libraries doc + +@@ -342,7 +344,7 @@ + # build expect binary that does not depend on Expect's shared libs + # IFF static Tcl/Tk libraries are available. + expect: exp_main_exp.o $(EXP_UNSHARED_LIB_FILE) +- $(CC) $(XCFLAGS) @TCL_LD_FLAGS@ -o expect exp_main_exp.o $(EXP_UNSHARED_LIB_FILE) $(TCLLIB) $(EXP_AND_TCL_LIBS) ++ $(LD) $(XCFLAGS) @TCL_LD_FLAGS@ -o expect exp_main_exp.o $(EXP_UNSHARED_LIB_FILE) $(TCLLIB) $(EXP_AND_TCL_LIBS) + $(SETUID) expect + + # install Expect library +@@ -357,24 +359,16 @@ + # is too long for some filesystems, sigh. + install_shared_lib: $(EXP_LIB_FILES) + ${srcdir}/mkinstalldirs $(libdir) +- if [ -s $(EXP_UNSHARED_LIB_FILE) ] ; then \ +- $(INSTALL_DATA) $(EXP_UNSHARED_LIB_FILE) $(libdir)/$(EXP_UNSHARED_LIB_FILE) ; \ +- $(UNSHARED_RANLIB) $(libdir)/$(EXP_UNSHARED_LIB_FILE) ; \ +- $(INSTALL_DATA) $(EXP_UNSHARED_LIB_FILE) $(tcl_libdir)/$(EXP_UNSHARED_LIB_FILE) ; \ +- $(UNSHARED_RANLIB) $(tcl_libdir)/$(EXP_UNSHARED_LIB_FILE) ; \ +- else true; fi +- if [ -s $(EXP_SHARED_LIB_FILE) ] ; then \ +- $(INSTALL_PROGRAM) $(EXP_SHARED_LIB_FILE) $(tcl_libdir)/$(EXP_SHARED_LIB_FILE) ; \ +- $(INSTALL_PROGRAM) pkgIndex $(libdir)/pkgIndex.tcl ; \ +- else true; fi ++ $(INSTALL_DATA) $(EXP_SHARED_LIB_FILE:C/\.so.*/.la/) $(tcl_libdir) ++ $(INSTALL_DATA) pkgIndex $(libdir)/pkgIndex.tcl + + expect_installed: exp_main_exp.o $(EXP_LIB_FILE) install_shared_lib +- $(CC) $(XCFLAGS) @EXP_SHLIB_CFLAGS@ @TCL_LD_FLAGS@ -o expect_installed exp_main_exp.o @EXP_LIB_SPEC@ $(TCLLIB_INSTALLED) $(EXP_AND_TCL_LIBS) ++ $(LD) $(XCFLAGS) @EXP_SHLIB_CFLAGS@ @TCL_LD_FLAGS@ -o expect_installed exp_main_exp.o @EXP_LIB_SPEC@ $(TCLLIB_INSTALLED) $(EXP_AND_TCL_LIBS) + $(SETUID) expect_installed + + # Build Expect with TestCenter + expect.tc: exp_main_exp.o $(OFILES) +- proof $(CC) $(XCFLAGS) @EXP_SHLIB_CFLAGS@ @TCL_LD_FLAGS@ -o expect.tc $(OFILES) exp_main_exp.o $(TCLLIB) $(EXP_AND_TCL_LIBS) ++ proof $(LD) $(XCFLAGS) @EXP_SHLIB_CFLAGS@ @TCL_LD_FLAGS@ -o expect.tc $(OFILES) exp_main_exp.o $(TCLLIB) $(EXP_AND_TCL_LIBS) + $(SETUID) expect.tc + + # Build an executable with both Expect and Tk +@@ -385,16 +379,16 @@ + # configure) separately for Expectk, but as far as I know, it doesn't hurt + # anything here, so I'm not worrying about it. + expectk: exp_main_tk.o $(EXP_UNSHARED_LIB_FILE) +- $(CC) $(XCFLAGS) @TCL_LD_FLAGS@ -o expectk exp_main_tk.o $(EXP_UNSHARED_LIB_FILE) $(TKLIB) $(TCLLIB) $(X11_LD_FLAGS) $(EXP_AND_TK_LIBS) ++ $(LD) $(XCFLAGS) @TCL_LD_FLAGS@ -o expectk exp_main_tk.o $(EXP_UNSHARED_LIB_FILE) $(TKLIB) $(TCLLIB) $(X11_LD_FLAGS) $(EXP_AND_TK_LIBS) + $(SETUID) expectk + + expectk_installed: exp_main_tk.o $(EXP_LIB_FILE) +- $(CC) $(XCFLAGS) @EXP_SHLIB_CFLAGS@ @TCL_LD_FLAGS@ -o expectk_installed exp_main_tk.o @EXP_LIB_SPEC@ $(TKLIB_INSTALLED) $(TCLLIB_INSTALLED) $(X11_LD_FLAGS) $(EXP_AND_TK_LIBS) ++ $(LD) $(XCFLAGS) @EXP_SHLIB_CFLAGS@ @TCL_LD_FLAGS@ -o expectk_installed exp_main_tk.o @EXP_LIB_SPEC@ $(TKLIB_INSTALLED) $(TCLLIB_INSTALLED) $(X11_LD_FLAGS) $(EXP_AND_TK_LIBS) + $(SETUID) expectk_installed + + # Build Expectk with TestCenter + expectk.tc: exp_main_tk.o $(OFILES) +- proof $(CC) $(XCFLAGS) @TCL_LD_FLAGS@ -o expectk.tc $(OFILES) exp_main_tk.o $(TKLIB) $(TCLLIB) $(X11_LD_FLAGS) $(EXP_AND_TK_LIBS) ++ proof $(LD) $(XCFLAGS) @TCL_LD_FLAGS@ -o expectk.tc $(OFILES) exp_main_tk.o $(TKLIB) $(TCLLIB) $(X11_LD_FLAGS) $(EXP_AND_TK_LIBS) + $(SETUID) expectk.tc + + expect-unshared-lib-file :: $(EXP_UNSHARED_LIB_FILE) +@@ -410,7 +404,7 @@ + expect-shared-lib-file :: $(EXP_SHARED_LIB_FILE) + $(EXP_SHARED_LIB_FILE): $(OFILES) + -rm -f $(EXP_SHARED_LIB_FILE) +- @TCL_SHLIB_LD@ -o $(EXP_SHARED_LIB_FILE) $(SHARED_OFILES) @EXP_LD_SEARCH_FLAGS@ @EXP_SHLIB_LD_LIBS@ ++ ${LIBTOOL} @CC@ --mode=link -rpath ${PREFIX}/lib -o $(EXP_SHARED_LIB_FILE:C/\.so.*/.la/) $(OFILES:.o=.lo) @EXP_LD_SEARCH_FLAGS@ @EXP_SHLIB_LD_LIBS@ -version-info 1:0 + + .PHONY: install-info install info + install-info: +@@ -448,7 +442,7 @@ + ${srcdir}/mkinstalldirs $(bindir_arch_indep) $(man1dir) $(SCRIPTDIR) $(EXECSCRIPTDIR) + -for i in $(SCRIPT_LIST) ; do \ + if [ -f $$i ] ; then \ +- $(INSTALL_PROGRAM) $$i $(bindir_arch_indep)/$$i ; \ ++ $(INSTALL_SCRIPT) $$i $(bindir_arch_indep)/$$i ; \ + rm -f $$i ; \ + else true; fi ; \ + done +@@ -457,7 +451,7 @@ + ${srcdir}/mkinstalldirs $(man1dir) $(man3dir) + # install Expectk man page if present + -if [ -s expectk_installed ] ; then \ +- $(INSTALL_DATA) $(srcdir)/expectk.man $(man1dir)/expectk.1 ; \ ++ $(BSD_INSTALL_DATA) $(srcdir)/expectk.man $(man1dir)/expectk.1 ; \ + else true; fi + # install Expect man page + $(INSTALL_DATA) $(srcdir)/expect.man $(man1dir)/expect.1 +@@ -465,7 +459,7 @@ + $(INSTALL_DATA) $(srcdir)/libexpect.man $(man3dir)/libexpect.3 + -for i in $(SCRIPT_MANPAGE_LIST) ; do \ + if [ -f $(srcdir)/example/$$i.man ] ; then \ +- $(INSTALL_DATA) $(srcdir)/example/$$i.man $(man1dir)/$$i.1 ; \ ++ $(INSTALL_DATA) $(srcdir)/example/$$i.man $(bindir_arch_indep)/$$i.1 ; \ + else true; fi ; \ + done + diff --git a/lang/tcl-expect/patches/patch-ab b/lang/tcl-expect/patches/patch-ab new file mode 100644 index 00000000000..7ab8c9c2f6f --- /dev/null +++ b/lang/tcl-expect/patches/patch-ab @@ -0,0 +1,9 @@ +$NetBSD: patch-ab,v 1.1.1.1 2000/09/05 16:20:30 jwise Exp $ +--- pkgIndex.in.orig Fri Sep 1 22:24:40 2000 ++++ pkgIndex.in Fri Sep 1 22:24:53 2000 +@@ -7,4 +7,4 @@ + # script is sourced, the variable $dir must contain the + # full path name of this file's directory. + +-package ifneeded Expect @EXP_VERSION_FULL@ [list load [file join $dir .. @EXP_SHARED_LIB_FILE@]] ++package ifneeded Expect @EXP_VERSION_FULL@ [list load [file join $dir ../.. @EXP_SHARED_LIB_FILE@]] diff --git a/lang/tcl-expect/pkg/COMMENT b/lang/tcl-expect/pkg/COMMENT new file mode 100644 index 00000000000..0a98458d545 --- /dev/null +++ b/lang/tcl-expect/pkg/COMMENT @@ -0,0 +1 @@ +extensions to Tcl to support scripting of interactive programs diff --git a/lang/tcl-expect/pkg/DESCR b/lang/tcl-expect/pkg/DESCR new file mode 100644 index 00000000000..ed772c32647 --- /dev/null +++ b/lang/tcl-expect/pkg/DESCR @@ -0,0 +1,5 @@ +Expect is a program that performs programmed dialogue with other +interactive programs. It is briefly described by its man page, expect(1). + +It uses pseudo-tty's to control the child processes, so it is not affected +by programs that refuse to read from stdin or pipes. (eg: passwd(1) etc). diff --git a/lang/tcl-expect/pkg/PLIST b/lang/tcl-expect/pkg/PLIST new file mode 100644 index 00000000000..bf48cb6125e --- /dev/null +++ b/lang/tcl-expect/pkg/PLIST @@ -0,0 +1,44 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2000/09/05 16:20:30 jwise Exp $ +bin/expect +include/expect.h +include/expect_comm.h +include/expect_tcl.h +include/tcldbg.h +lib/tcl/expect5.32/pkgIndex.tcl +lib/libexpect532.a +lib/libexpect532.la +lib/libexpect532.so.1.0 +man/man1/expect.1.gz +man/man3/libexpect.3.gz +share/examples/tcl/expect/autoexpect +share/examples/tcl/expect/autoexpect.1 +share/examples/tcl/expect/autopasswd +share/examples/tcl/expect/cryptdir +share/examples/tcl/expect/cryptdir.1 +share/examples/tcl/expect/decryptdir +share/examples/tcl/expect/decryptdir.1 +share/examples/tcl/expect/dislocate +share/examples/tcl/expect/dislocate.1 +share/examples/tcl/expect/ftp-rfc +share/examples/tcl/expect/kibitz +share/examples/tcl/expect/kibitz.1 +share/examples/tcl/expect/lpunlock +share/examples/tcl/expect/mkpasswd +share/examples/tcl/expect/mkpasswd.1 +share/examples/tcl/expect/passmass +share/examples/tcl/expect/passmass.1 +share/examples/tcl/expect/rftp +share/examples/tcl/expect/rlogin-cwd +share/examples/tcl/expect/timed-read +share/examples/tcl/expect/timed-run +share/examples/tcl/expect/tknewsbiff +share/examples/tcl/expect/tknewsbiff.1 +share/examples/tcl/expect/tkpasswd +share/examples/tcl/expect/unbuffer +share/examples/tcl/expect/unbuffer.1 +share/examples/tcl/expect/weather +share/examples/tcl/expect/xkibitz +share/examples/tcl/expect/xkibitz.1 +share/examples/tcl/expect/xpstat +@dirrm lib/tcl/expect5.32 +@dirrm share/examples/tcl/expect |