Skip to content
README 3.75 KiB
Newer Older
Daniel Stenberg's avatar
Daniel Stenberg committed
Curl is a tool for transferring files with URL syntax, supporting 
  FTP, FTPS, HTTP, HTTPS, GOPHER, TELNET, DICT, FILE and LDAP.
  Curl supports HTTPS certificates, HTTP POST, HTTP PUT, 
  FTP uploading, kerberos, HTTP form based upload, proxies, 
  cookies, user+password authentication, file transfer resume,
  http proxy tunneling and a busload of other useful tricks.
Daniel Stenberg's avatar
Daniel Stenberg committed
See /usr/doc/curl-$(VERSION)/FEATURES for more info.
Dependencies:
Daniel Stenberg's avatar
Daniel Stenberg committed
  - Cygwin
  - OpenSSL 0.9.6b-2+ (*)
Daniel Stenberg's avatar
Daniel Stenberg committed

  (*) cURL can be built without SSL support, see below for details
Daniel Stenberg's avatar
Daniel Stenberg committed
Canonical Homepage and Downloads:
  http://curl.haxx.se/
Daniel Stenberg's avatar
Daniel Stenberg committed
  http://curl.haxx.se/download.html
Daniel Stenberg's avatar
Daniel Stenberg committed
Cygwin specific source files (a .README template and a Makefile
  for building binary tarballs) are maintained in the upstream
  CVS at: <srctop>/packages/Win32/cygwin/
Daniel Stenberg's avatar
Daniel Stenberg committed
Build Instructions (to recompile from the cygwin source tarball):
  ---STANDARD (with SSL) RELEASE---
  Download the source (either the official release or the cygwin version),
  unpack it (done for you if using setup.exe), then:

  $ ./configure --prefix=/usr 
  $ make
Daniel Stenberg's avatar
Daniel Stenberg committed
  $ make test    # optional
  $ make install # (*)

  (*) LibTool 1.4.2 had a bug related to cygwin's use of ".exe" extensions,
      such that "make install" blew up at curl.exe. See this URL for details:
        http://mail.gnu.org/pipermail/libtool/2001-September/005549.html
      The copy of ltmain.sh that is distributed with cURL includes this patch.

Daniel Stenberg's avatar
Daniel Stenberg committed
  As of curl 7.9.1, the official source compiles (under Cygwin) and tests 
    100% cleanly OOTB (Out Of The Box)

  ---NO SSL RELEASE---
  Same as standard, except for the configure step, which changes to:

  $ ./configure --prefix=/usr --without-ssl

  NOTE: the standard release is what is available via Cygwin's setup.exe;
    the no-ssl release is only available from the curl website


Packaging Instructions:
Daniel Stenberg's avatar
Daniel Stenberg committed
  ---BINARY---
Daniel Stenberg's avatar
Daniel Stenberg committed
  Compile cleanly as described above, then:
Daniel Stenberg's avatar
Daniel Stenberg committed
  $ make cygwinbin CYGBUILD=n
Daniel Stenberg's avatar
Daniel Stenberg committed
  where n is the cygwin release number (e.g. the "1" in curl-7.9-1),
  and "CYGBUILD=n" is optional (n defaults to 1 if not specified)
Daniel Stenberg's avatar
Daniel Stenberg committed
  
Daniel Stenberg's avatar
Daniel Stenberg committed
  Assuming everything worked, you'll find your binary tarballs in
   $(buildtop)/packages/Win32/cygwin/
Daniel Stenberg's avatar
Daniel Stenberg committed

  ---SOURCE---
Daniel Stenberg's avatar
Daniel Stenberg committed
  1. download & unpack the pristine source
Daniel Stenberg's avatar
Daniel Stenberg committed
  2. rename the source dir to add the "-$(REL)" suffix, e.g.:
     $ mv curl-7.9 curl-7.9-1
Daniel Stenberg's avatar
Daniel Stenberg committed
  3. unpack the pristine source once more, so you'll end up
     with 2 directories: "curl-7.9" and "curl-7.9-1" in this example
Daniel Stenberg's avatar
Daniel Stenberg committed
  3. add a CYGWIN-PATCHES directory, and add this readme to it
Daniel Stenberg's avatar
Daniel Stenberg committed
     $ cd curl-7.9-1; mkdir CYGWIN-PATCHES
     $ cp packages/Win32/cygwin/README CYGWIN-PATCHES/curl-7.9-1.README
Daniel Stenberg's avatar
Daniel Stenberg committed
  4. if applicable, document any changes in the README file
Daniel Stenberg's avatar
Daniel Stenberg committed
  5. create a patch which, when applied 
     (using `patch -p1 < curl-7.9-$(REL).patch`) 
     will remove any changes you've made to the pristine source:
Daniel Stenberg's avatar
Daniel Stenberg committed
     $ cd ..
Daniel Stenberg's avatar
Daniel Stenberg committed
     $ diff -Nrup curl-7.9-1 curl-7.9 > curl-7.9-1.patch
Daniel Stenberg's avatar
Daniel Stenberg committed
     and then move it into the CYGWIN-PATCHES directory
Daniel Stenberg's avatar
Daniel Stenberg committed
     $ mv curl-7.9-1.patch curl-7.9-1/CYGWIN-PATCHES
  6. pack the new source dir into a tar.bz2 file:
     $ tar cfj curl-7.9-1-src.tar.bz2 curl-7.9-1
Daniel Stenberg's avatar
Daniel Stenberg committed

  ---SETUP.HINT---
  sdesc: "a client that groks URLs"
  ldesc: "Curl is a tool for transferring files with URL syntax,
  supporting FTP, FTPS, HTTP, HTTPS, GOPHER, TELNET, DICT, FILE 
  and LDAP. Curl supports HTTPS certificates, HTTP POST, HTTP PUT, 
  FTP uploading, kerberos, HTTP form based upload, proxies, 
  cookies, user+password authentication, file transfer resume,
  http proxy tunneling and a busload of other useful tricks."
  category: Web Libs
  requires: cygwin openssl
Daniel Stenberg's avatar
Daniel Stenberg committed


Cygwin port maintained by:
Daniel Stenberg's avatar
Daniel Stenberg committed
  Kevin Roth <kproth @ users . sourceforge . net>
  Questions about cURL should be directed to curl@contactor.se.
Daniel Stenberg's avatar
Daniel Stenberg committed
  Questions about this cygwin package go to cygwin@cygwin.com.