Expect 5.25, cloned from FreeBSD

This commit is contained in:
niklas 1998-01-29 23:12:42 +00:00
parent d5f02077a0
commit ad86867153
7 changed files with 171 additions and 0 deletions

40
lang/expect/Makefile Normal file
View File

@ -0,0 +1,40 @@
# New ports collection makefile for: expect
# Date created: 29 January 1998
# Whom: niklas
# Version required: 5.25
#
# $Id: Makefile,v 1.1.1.1 1998/01/29 23:12:42 niklas Exp $
#
DISTNAME= expect
PKGNAME= expect-5.25
CATEGORIES= lang tcl80 tk80
MASTER_SITES= http://expect.nist.gov/
MAINTAINER= niklas@openbsd.org
LIB_DEPENDS= tk80\\.1:${PORTSDIR}/x11/tk80
WRKSRC= ${WRKDIR}/expect-5.25
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-shared \
--with-tclconfig=${PREFIX}/lib/tcl8.0 \
--with-tclinclude=${PREFIX}/include/tcl8.0 \
--with-tkconfig=${PREFIX}/lib/tk8.0 \
--with-tkinclude=${PREFIX}/include/tk8.0
# needed for japanese/expect
.if !defined(NO_MAN_INSTALL)
MAN1= autoexpect.1 cryptdir.1 decryptdir.1 dislocate.1 \
expect.1 expectk.1 kibitz.1 mkpasswd.1 passmass.1 \
tknewsbiff.1 unbuffer.1 xkibitz.1
MAN3= libexpect.3
.endif
test:
@(cd ${WRKSRC}; make test)
post-install:
${LDCONFIG} -m ${PREFIX}/lib
.include <bsd.port.mk>

1
lang/expect/files/md5 Normal file
View File

@ -0,0 +1 @@
MD5 (expect.tar.gz) = f64a719737b0b012f8bbee115a6b9a72

View File

@ -0,0 +1,41 @@
--- configure.orig Sun Sep 28 19:23:25 1997
+++ configure Fri Dec 5 11:39:17 1997
@@ -1236,6 +1236,8 @@
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
+test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
+
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
@@ -5845,7 +5847,7 @@
if test "$enable_shared" = "yes" && test "x${TCL_SHLIB_SUFFIX}" != "x" ; then
EXP_SHLIB_CFLAGS=$TCL_SHLIB_CFLAGS
# EXP_SHARED_LIB_FILE=libexpect$EXP_LIB_VERSION$TCL_SHLIB_SUFFIX
- eval "EXP_SHARED_LIB_FILE=libexpect${TCL_SHARED_LIB_SUFFIX}"
+ eval "EXP_SHARED_LIB_FILE=libexpect`echo ${VERSION} | tr -d .`.so.1.2"
EXP_LIB_FILE=$EXP_SHARED_LIB_FILE
EXP_LIB_FILES="$EXP_SHARED_LIB_FILE $EXP_UNSHARED_LIB_FILE"
echo "$ac_t""both shared and unshared" 1>&6
@@ -6008,17 +6010,18 @@
s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
-s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
+s%@TCL_BUILD_LIB_SPEC@%$TCL_LIB_SPEC%g
s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
s%@TCL_SHARED_LIB_SUFFIX@%$TCL_SHARED_LIB_SUFFIX%g
s%@TK_VERSION@%$TK_VERSION%g
s%@TK_DEFS@%$TK_DEFS%g
s%@TK_XINCLUDES@%$TK_XINCLUDES%g
s%@TK_XLIBSW@%$TK_XLIBSW%g
-s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
+s%@TK_BUILD_LIB_SPEC@%$TK_LIB_SPEC%g
s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
s%@CC@%$CC%g
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
+s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
s%@INSTALL_DATA@%$INSTALL_DATA%g
s%@RANLIB@%$RANLIB%g
s%@subdirs@%$subdirs%g

View File

@ -0,0 +1,36 @@
--- Makefile.in.orig Sun Sep 28 19:20:30 1997
+++ Makefile.in Fri Oct 10 09:05:17 1997
@@ -186,6 +186,7 @@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_DATA = @INSTALL_DATA@
AR = ar
@@ -202,6 +203,7 @@
"HDEFS=$(HDEFS)" \
"INSTALL=$(INSTALL)" \
"INSTALL_DATA=$(INSTALL_DATA)" \
+ "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
"INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
"LDFLAGS=$(LDFLAGS)" \
"RUNTEST=$(RUNTEST)" \
@@ -350,7 +352,7 @@
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 ; \
+ $(INSTALL_SCRIPT) pkgIndex $(libdir)/pkgIndex.tcl ; \
else true; fi
expect_installed: exp_main_exp.o $(EXP_LIB_FILE) install_shared_lib
@@ -430,7 +432,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

1
lang/expect/pkg/COMMENT Normal file
View File

@ -0,0 +1 @@
A sophisticated scripter based on tcl/tk.

8
lang/expect/pkg/DESCR Normal file
View File

@ -0,0 +1,8 @@
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).
The Expect home page is: http://expect.nist.gov
The Expect FAQ is: http://expect.nist.gov/FAQ.html

44
lang/expect/pkg/PLIST Normal file
View File

@ -0,0 +1,44 @@
bin/autoexpect
bin/autopasswd
bin/cryptdir
bin/decryptdir
bin/dislocate
bin/expect
bin/expectk
bin/ftp-rfc
bin/kibitz
bin/lpunlock
bin/mkpasswd
bin/passmass
bin/rftp
bin/rlogin-cwd
bin/timed-read
bin/timed-run
bin/tknewsbiff
bin/tkpasswd
bin/unbuffer
bin/weather
bin/xkibitz
bin/xpstat
include/Dbg.h
include/expect.h
include/expect_comm.h
include/expect_tcl.h
lib/expect5.25/pkgIndex.tcl
lib/expect5.25/libexpect525.a
lib/libexpect525.a
lib/libexpect525.so.1.2
man/man1/autoexpect.1.gz
man/man1/cryptdir.1.gz
man/man1/decryptdir.1.gz
man/man1/dislocate.1.gz
man/man1/expect.1.gz
man/man1/expectk.1.gz
man/man1/kibitz.1.gz
man/man1/mkpasswd.1.gz
man/man1/passmass.1.gz
man/man1/tknewsbiff.1.gz
man/man1/unbuffer.1.gz
man/man1/xkibitz.1.gz
man/man3/libexpect.3.gz
@dirrm lib/expect5.25