{"id":17348111,"url":"https://github.com/userdocs/lftp-static","last_synced_at":"2025-10-06T21:43:43.071Z","repository":{"id":107483878,"uuid":"236814703","full_name":"userdocs/lftp-static","owner":"userdocs","description":"a build tool to create a static lftp binary","archived":false,"fork":false,"pushed_at":"2024-11-08T11:47:43.000Z","size":6212,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T21:07:07.041Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/userdocs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-28T18:57:45.000Z","updated_at":"2025-03-13T22:42:48.000Z","dependencies_parsed_at":"2025-02-01T15:45:27.834Z","dependency_job_id":"1ac3ab87-6c44-4f78-acc1-945ea284d4e9","html_url":"https://github.com/userdocs/lftp-static","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/userdocs/lftp-static","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/userdocs%2Flftp-static","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/userdocs%2Flftp-static/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/userdocs%2Flftp-static/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/userdocs%2Flftp-static/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/userdocs","download_url":"https://codeload.github.com/userdocs/lftp-static/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/userdocs%2Flftp-static/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278686634,"owners_count":26028325,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T16:51:08.387Z","updated_at":"2025-10-06T21:43:43.052Z","avatar_url":"https://github.com/userdocs.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\r\nBuilt on [Alpine linux](https://alpinelinux.org) edge\r\n\r\nStatic binaries are available here: https://github.com/userdocs/lftp-static/releases/latest\r\n\r\n### Build Platforms\r\n\r\nAlpine linux as the host OS.\r\n\r\nBuilds are created using https://github.com/multiarch/qemu-user-static and arch specific docker images detailed in the table below.\r\n\r\n| Alpine Arch | Docker platform arch |  Docker hub image   |\r\n| :---------: | :------------------: | :-----------------: |\r\n|    armhf    |     linux/arm/v6     | arm32v6/alpine:edge |\r\n|    armv7    |     linux/arm/v7     | arm32v7/alpine:edge |\r\n|   aarch64   |     linux/arm64      | arm64v8/alpine:edge |\r\n|   ppc64le   |    linux/ppc64le     | ppc64le/alpine:edge |\r\n|    s390x    |     linux/s390x      |  s390x/alpine:edge  |\r\n|     x86     |      linux/i386      |  i386/alpine:edge   |\r\n|   x86_64    |     linux/amd64      |  amd64/alpine:edge  |\r\n\r\n### Generic Build dependencies\r\n\r\nInstall the main build dependencies\r\n\r\n~~~\r\napk add autoconf automake build-base curl git libtool linux-headers perl pkgconf python3 python3-dev tar\r\n~~~\r\n\r\nInstall the lftp build dependencies\r\n\r\n~~~\r\napk add expat-dev expat-static gettext-dev gettext-static libidn-dev libunistring-dev libunistring-static ncurses-dev ncurses-static openssl-dev openssl-libs-static readline-dev readline-static zlib-dev zlib-static\r\n~~~\r\n\r\n### Generic Build Instructions\r\n\r\nDownload the self hosted source code\r\n\r\n```bash\r\ncurl -sL https://github.com/userdocs/lftp-static/raw/master/src/lftp-4.9.2.tar.gz -o lftp-4.9.2.tar.gz\r\ntar xf lftp-4.9.2.tar.gz\r\ncd lftp-4.9.2\r\n```\r\n\r\nSet some required build flags\r\n\r\n```bash\r\nexport CXXFLAGS=\"--static -static -std=c++17\"\r\nexport CPPFLAGS=\"--static -static\"\r\nexport LDFLAGS=\"--static -static\"\r\n```\r\n\r\nConfigure\r\n\r\n```bash\r\n./configure LIBS=\"-l:libreadline.a -l:libncursesw.a\" --prefix=\"$HOME\" --with-openssl --without-gnutls --enable-static --enable-threads=posix\r\n```\r\n\r\nBuild\r\n\r\n```bash\r\nmake -j$(nproc)\r\nmake install\r\n```\r\n\r\n### Check the linking was done properly\r\n\r\n```bash\r\nldd ~/bin/lftp\r\n```\r\n\r\n### Version\r\n\r\nUse this command to check the version.\r\n\r\n~~~\r\n~/bin/lftp --version\r\n~~~\r\n\r\nWill show something like this.\r\n\r\n**Note:** Libraries used: will be blank since it [only checks the dynamically linked libs](https://github.com/lavv17/lftp/issues/569). Ours are all statically linked\r\n\r\n~~~\r\nLFTP | Version 4.9.1 | Copyright (c) 1996-2020 Alexander V. Lukyanov\r\n\r\nLFTP is free software: you can redistribute it and/or modify\r\nit under the terms of the GNU General Public License as published by\r\nthe Free Software Foundation, either version 3 of the License, or\r\n(at your option) any later version.\r\n\r\nThis program is distributed in the hope that it will be useful,\r\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\r\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r\nGNU General Public License for more details.\r\n\r\nYou should have received a copy of the GNU General Public License\r\nalong with LFTP.  If not, see \u003chttp://www.gnu.org/licenses/\u003e.\r\n\r\nSend bug reports and questions to the mailing list \u003clftp@uniyar.ac.ru\u003e.\r\n\r\nLibraries used:\r\n~~~\r\n\r\n### Use the static binaries from this repo\r\n\r\nDownload and install to the bin directory of your local user (for root this may not be in the `$PATH`)\r\n\r\nPick the platform URL you need:\r\n\r\ni386 / x86\r\n\r\n```bash\r\nmkdir -p ~/bin \u0026\u0026 source ~/.profile\r\nwget -qO ~/bin/lftp https://github.com/userdocs/lftp-static/releases/latest/download/lftp-i386\r\nchmod 700 ~/bin/lftp\r\n```\r\n\r\namd64\r\n\r\n```bash\r\nmkdir -p ~/bin \u0026\u0026 source ~/.profile\r\nwget -qO ~/bin/lftp https://github.com/userdocs/lftp-static/releases/latest/download/lftp-amd64\r\nchmod 700 ~/bin/lftp\r\n```\r\n\r\narm32v6\r\n\r\n```bash\r\nmkdir -p ~/bin \u0026\u0026 source ~/.profile\r\nwget -qO ~/bin/lftp https://github.com/userdocs/lftp-static/releases/latest/download/lftp-arm32v6\r\nchmod 700 ~/bin/lftp\r\n```\r\n\r\narm32v7\r\n\r\n```bash\r\nmkdir -p ~/bin \u0026\u0026 source ~/.profile\r\nwget -qO ~/bin/lftp https://github.com/userdocs/lftp-static/releases/latest/download/lftp-arm32v7\r\nchmod 700 ~/bin/lftp\r\n```\r\n\r\naarch64 / arm64\r\n\r\n```bash\r\nmkdir -p ~/bin \u0026\u0026 source ~/.profile\r\nwget -qO ~/bin/lftp https://github.com/userdocs/lftp-static/releases/latest/download/lftp-arm64v8\r\nchmod 700 ~/bin/lftp\r\n```\r\n\r\nppc64le\r\n\r\n```bash\r\nmkdir -p ~/bin \u0026\u0026 source ~/.profile\r\nwget -qO ~/bin/lftp https://github.com/userdocs/lftp-static/releases/latest/download/lftp-ppc64le\r\nchmod 700 ~/bin/lftp\r\n```\r\n\r\ns390x\r\n\r\n```bash\r\nmkdir -p ~/bin \u0026\u0026 source ~/.profile\r\nwget -qO ~/bin/lftp https://github.com/userdocs/lftp-static/releases/latest/download/lftp-s390x\r\nchmod 700 ~/bin/lftp\r\n```\r\n\r\nCheck the version:\r\n\r\n~~~\r\n~/bin/lftp --version\r\n~~~","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuserdocs%2Flftp-static","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuserdocs%2Flftp-static","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuserdocs%2Flftp-static/lists"}