| 1 | ##################################################################### |
|---|
| 2 | # OpenCSW build recipe for lftp |
|---|
| 3 | # |
|---|
| 4 | # Copyright 2009 Yann Rouillard <yann@pleiades.fr.eu.org> |
|---|
| 5 | # All rights reserved. Use is subject to license terms. |
|---|
| 6 | # |
|---|
| 7 | # Redistribution and/or use, with or without modification, is |
|---|
| 8 | # permitted. This software is without warranty of any kind. The |
|---|
| 9 | # author(s) shall not be liable in the event that use of the |
|---|
| 10 | # software causes damage. |
|---|
| 11 | ##################################################################### |
|---|
| 12 | |
|---|
| 13 | ###### Package information ####### |
|---|
| 14 | |
|---|
| 15 | NAME = lftp |
|---|
| 16 | VERSION = 4.3.6 |
|---|
| 17 | CATEGORIES = net |
|---|
| 18 | GARTYPE = v2 |
|---|
| 19 | |
|---|
| 20 | DESCRIPTION = A sophisticated command-line ftp/http client |
|---|
| 21 | define BLURB |
|---|
| 22 | lftp is a sophisticated command line based file transfer program. Supported protocols include FTP, HTTP, SFTP, and FISH. It has a multithreaded design allowing you to issue and execute multiple commands simultaneously or in the background. It also features mirroring capabilities and will reconnect and continue transfers in the event of a disconnection. Also, if you quit the program while transfers are still in progress, it will switch to nohup mode and finish the transfers in the background. Additional protocols supported: FTP over HTTP proxy, HTTPS and FTP over SSL. There are lots of tunable parameters, including rate limitation, number of connections limitation and more. |
|---|
| 23 | endef |
|---|
| 24 | |
|---|
| 25 | PACKAGES = CSWlftp |
|---|
| 26 | |
|---|
| 27 | RUNTIME_DEP_PKGS = CSWlibexpat1 |
|---|
| 28 | RUNTIME_DEP_PKGS += CSWlibiconv2 |
|---|
| 29 | RUNTIME_DEP_PKGS += CSWlibssl1-0-0 |
|---|
| 30 | RUNTIME_DEP_PKGS += CSWlibsocks |
|---|
| 31 | RUNTIME_DEP_PKGS += CSWlibintl8 |
|---|
| 32 | RUNTIME_DEP_PKGS += CSWlibreadline6 |
|---|
| 33 | |
|---|
| 34 | ###### Upstream and opencsw files information ####### |
|---|
| 35 | |
|---|
| 36 | MASTER_SITES = http://ftp.yars.free.net/pub/source/lftp/ |
|---|
| 37 | |
|---|
| 38 | DISTFILES = $(NAME)-$(VERSION).tar.gz |
|---|
| 39 | DISTFILES += changelog.CSW |
|---|
| 40 | |
|---|
| 41 | # do some type conversion before munmap call |
|---|
| 42 | # so lftp can be compiled with sun cc |
|---|
| 43 | # (patch only mandatory to compile with gnutls) |
|---|
| 44 | #PATCHFILES = munmap.patch |
|---|
| 45 | |
|---|
| 46 | PATCHFILES += dont_use_csw_getopt_h.patch |
|---|
| 47 | |
|---|
| 48 | # Disable the use of IPV6_V6ONLY function |
|---|
| 49 | # It is not mandatory here, lftp uses the option for the torrent listen socket |
|---|
| 50 | # it opens a socket first for ipv4 then for ipv6, so the ipv6 one will never |
|---|
| 51 | # catch the ipv4 connection even if IPV6_V6ONLY can't be set |
|---|
| 52 | PATCHFILES += 0006-no-ipv6_v6only-setsock-option-under-solaris-9.patch |
|---|
| 53 | |
|---|
| 54 | # Update the system-wide lftp.conf path in the man page |
|---|
| 55 | PATCHFILES += 0007-update-configuration-files-paths-in-documentation.patch |
|---|
| 56 | |
|---|
| 57 | PRESERVECONF = $(sysconfdir)/lftp.conf |
|---|
| 58 | MIGRATE_FILES_CSWlftp = lftp.conf |
|---|
| 59 | |
|---|
| 60 | EXTRA_MERGE_EXCLUDE_FILES = .*/charset.alias |
|---|
| 61 | |
|---|
| 62 | ##### Build and installation information ##### |
|---|
| 63 | |
|---|
| 64 | # We don't want Sun Studio RPATH entries |
|---|
| 65 | # see http://wiki.opencsw.org/checkpkg-error-tags#bad-rpath-entry |
|---|
| 66 | EXTRA_LINKER_FLAGS = -norunpath |
|---|
| 67 | |
|---|
| 68 | CONFIGURE_ARGS = $(DIRPATHS) |
|---|
| 69 | |
|---|
| 70 | # previous maintainer compiled with openssl |
|---|
| 71 | # instead of gnutls, no need to change that |
|---|
| 72 | CONFIGURE_ARGS += --without-gnutls --with-openssl=/opt/csw |
|---|
| 73 | # Requested see https://www.opencsw.org/mantis/view.php?id=4481 |
|---|
| 74 | CONFIGURE_ARGS += --with-socksdante |
|---|
| 75 | |
|---|
| 76 | # No test suite here |
|---|
| 77 | TEST_SCRIPTS = |
|---|
| 78 | |
|---|
| 79 | |
|---|
| 80 | include gar/category.mk |
|---|
| 81 | |
|---|
| 82 | # we re-run autoconf because we patched a m4 file |
|---|
| 83 | pre-configure-modulated: |
|---|
| 84 | cd $(WORKSRC) && autoconf |
|---|
| 85 | @$(MAKECOOKIE) |
|---|
| 86 | |
|---|
| 87 | post-merge: |
|---|
| 88 | @ginstall -D $(DOWNLOADDIR)/changelog.CSW $(PKGROOT)/$(docdir)/lftp/changelog.CSW |
|---|
| 89 | @$(MAKECOOKIE) |
|---|
| 90 | |
|---|