initial checkin of TclCurl

This commit is contained in:
Steve Havelka
2014-02-05 16:43:59 -08:00
commit 639b49517b
95 changed files with 30934 additions and 0 deletions

View File

@ -0,0 +1,42 @@
Name: tclcurl
Version: 7.22.0
Release: 1
License: BSD revised
Group: Development/Libraries
Packager: Andres Garcia <fandom@telefonica.net>
Vendor: Fandom Enterprise
Source: http://personal1.iddeo.es/andresgarci/tclcurl/download/tarball/tclcurl-7.22.0.tar.gz
Summary: A Tcl interface for libcurl.
%description
TclCurl provides a binding to libcurl, with it you can upload
and download files using FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, FILE, LDAP,
LDAPS, IMAP, IMAPS, POP, POP3, SMTP, SMTPS and gopher syntax.
%prep
%setup
%build
./configure --mandir=/usr/share/man --prefix=/usr
make
%install
make install
mkdir -p /usr/share/doc/tclcurl-7.22.0/tests
cp -f ReadMe.txt /usr/share/doc/tclcurl-7.22.0/
cp -f license.terms /usr/share/doc/tclcurl-7.22.0/
cp -f doc/tclcurl.html /usr/share/doc/tclcurl-7.22.0/
cp -f doc/tclcurl_multi.html /usr/share/doc/tclcurl-7.22.0/
cp -f doc/tclcurl_share.html /usr/share/doc/tclcurl-7.22.0/
cp -f doc/aolserver.txt /usr/share/doc/tclcurl-7.22.0/
cp -f tests/*.tcl /usr/share/doc/tclcurl-7.22.0/tests
%files
/usr/lib/TclCurl7.22.0/
/usr/share/doc/tclcurl-7.22.0/
/usr/share/man/mann/tclcurl.n.gz
/usr/share/man/mann/tclcurl_multi.n.gz
/usr/share/man/mann/tclcurl_share.n.gz

42
packages/Windows/SetUp.tcl Executable file
View File

@ -0,0 +1,42 @@
# This script inst`pwd+alls TclCurl in a Windows system, you only
# have to double-click on it and, provided Tcl/Tk is already
# installed, TclCurl will be ready to use.
#
# Copyright (c) 2001-2011 Andres Garcia Garcia.
#
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
wm withdraw .
set tclLibDir [file dirname $tcl_library]
set tclBinDir [file join [file dirname $tclLibDir] bin]
set windowsSystem [file join $env(windir) SYSTEM]
cd [file dirname [info script]]
foreach oldie [glob -nocomplain $tclLibDir/tclcurl*] {
catch {file delete -force $oldie}
}
file copy -force tclcurl7.22.0 $tclLibDir
foreach sslFile [glob -nocomplain ssl/*] {
catch {file copy -force $sslFile $windowsSystem}
}
foreach sslFile [glob -nocomplain certs/*] {
file copy -force $sslFile [file join $env(windir) cacert.pem]
}
package forget TclCurl
if {[catch {package require TclCurl} version]} {
tk_messageBox -icon error -type ok -title Error \
-message "Install failed\n$version"
} else {
tk_messageBox -icon info -type ok -title Installed \
-message "Version $version installed"
}
exit

97
packages/Windows/tclcurl.mk Executable file
View File

@ -0,0 +1,97 @@
TCL_VERSION = 8.5.10
TCLCURL_VERSION = 7.22.0
TclCurl_nodot = 7.220
CURL_VERSION = 7.22.0
ZLIB_VERSION = 1.2.5
installFiles = ChangeLog.txt changes.txt license.terms ReadMe.txt ReadMeW32.txt packages/Windows/SetUp.tcl
installDirs = tests
certFiles = cacert.pem
sslFiles = libeay32.dll ssleay32.dll
docFiles = aolserver.txt OpenSSL-LICENSE.txt tclcurl.html tclcurl_multi.html tclcurl_share.html
tclcurl-plain: DESTDIR = TclCurl-${TCLCURL_VERSION}
tclcurl-plain: TclCurlFlags= --disable-threads
tclcurl-ssl: DESTDIR = TclCurl-SSL-${TCLCURL_VERSION}
tclcurl-ssl: TclCurlFlags = --enable-ssl --disable-threads
tclcurl-ssl: curlFlags = --with-ssl=/usr/local/
tclcurl-threaded: DESTDIR = TclCurl-THREADED-${TCLCURL_VERSION}
tclcurl-threaded: TclFlags = --enable-threads
tclcurl-threaded-ssl: DESTDIR = TclCurl-THREADED-SSL-${TCLCURL_VERSION}
tclcurl-threaded-ssl: TclFlags = --enable-threads
tclcurl-threaded-ssl: TclCurlFlags = --enable-ssl
tclcurl-threaded-ssl: curlFlags = --with-ssl=/usr/local/
tclcurl-plain: tcl zlib curl tclcurlComp createDir extraFiles extraDirs docs rar
tclcurl-ssl: tcl zlib curl tclcurlComp createDir extraFiles extraDirs docs ssl rar
tclcurl-threaded: tcl zlib curl tclcurlComp createDir extraFiles extraDirs docs rar
tclcurl-threaded-ssl: tcl zlib curl tclcurlComp createDir extraFiles extraDirs docs ssl rar
clean:
rm TclCurl-${TCLCURL_VERSION}.exe TclCurl-SSL-${TCLCURL_VERSION}.exe TclCurl-THREADED-${TCLCURL_VERSION}.exe TclCurl-THREADED-SSL-${TCLCURL_VERSION}.exe
tcl:
cd tcl${TCL_VERSION}/win ;\
make distclean ;\
./configure ${TclFlags} ;\
make ;\
make install
curl:
cd curl-${CURL_VERSION} ;\
./configure ${curlFlags} --enable-shared=no ;\
make ;\
make install-strip
zlib:
cd zlib-${ZLIB_VERSION} ;\
make distclean ;\
./configure ;\
make ;\
make install ;\
tclcurlComp:
cd TclCurl ;\
make distclean ;\
CC=gcc ./configure ${TclFlags} ${TclCurlFlags} -enable-zlib ;\
make ;\
make install
createDir:
mkdir ${DESTDIR} ;\
cp -r /usr/local/lib/TclCurl${TCLCURL_VERSION} ${DESTDIR} ;\
extraFiles:
for f in $(installFiles) ; do \
cp TclCurl/$$f ${DESTDIR} ;\
done
extraDirs:
for f in $(installDirs) ; do \
cp -r TclCurl/$$f ${DESTDIR}/TclCurl${TCLCURL_VERSION} ;\
done
ssl:
mkdir ${DESTDIR}/certs ;\
cp ${certFiles} ${DESTDIR}/certs ;\
mkdir ${DESTDIR}/ssl ;\
for f in $(sslFiles) ; do \
cp -r /usr/local/bin/$$f ${DESTDIR}/ssl ;\
done
docs:
mkdir ${DESTDIR}/tclcurl${TCLCURL_VERSION}/doc ;\
for f in $(docFiles) ; do \
cp -r TclCurl/doc/$$f ${DESTDIR}/tclcurl${TCLCURL_VERSION}/doc;\
done
rar:
"c:/Program Files (x86)/WinRAR/rar" a -r -s -sfx ${DESTDIR}.exe ${DESTDIR};\
rm -r ${DESTDIR}