From nobody Fri Nov 25 02:22:54 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NJJYV4gQ9z4hXs4; Fri, 25 Nov 2022 02:22:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NJJYV49ZPz4P43; Fri, 25 Nov 2022 02:22:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669342974; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=tMXiFE/kG2I+jVepZLKA+y0Cc0GvT35ZVNY0u74n8iU=; b=JRYG2hkKibK2dsqWD/VekGGXjjaoBxRWuEdM2BK0XW8Mz20RdpBWxEV8QPeaQZ7Wrxqh+h iEr0evCuEb2oOTq9JlQyHKLqymFvYq35PdfrX3P9vtBdXxNPTJ6x/VPRo0m2jFXbU7eRRA +BYEv58JD8wWXJnI7/luqWQvZzrq0rl/eWyjhEv1i0TlksJhfnZgTYAOxtYAjSI+cI+FtN /XaCiu7T9/UUVZ7ZBB6M1wg9TMO9vbvIkNr9fUx+iB8O2FJsvQt4l7hoFT0Jn1Ux2JtA9f u4jm6ApAMxtW9xzN1KpWQK4t+0dJYEceRp69QM7T2M1Wx+xr9kzYUQIfLUL15Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669342974; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=tMXiFE/kG2I+jVepZLKA+y0Cc0GvT35ZVNY0u74n8iU=; b=wIvzdv1Fz9S5YwDrvqpPMlG8Tc3doqtr9YMhinTnJtAp3S8BxOoS0oZkWyIMV6C9ANeDjp qZzO3Cl6jCdylkafqqJ+IhErTkwDM+wWivOEUbWAKF0YlpAp1PMzbhGAGow5c1PjUI2Yap q7yo4LUw53LpwNNzyjU3Ml0Lm81LOb8cr4by7hjcisjNuDgFznBbQ4K/3aHCkT3oiEMXa4 51T5LpHUFMnmdrS4c9zTBMp6f4lvxO98MaLaB3UfyciSkc0XQpR1MNWv5xEaWZiWGndoYD juCdjGXQb+ifDIhqajaJvOKNGX6w1bkJd8TgnEzcx5LEM6N/5fIi7xnIofnIhQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1669342974; a=rsa-sha256; cv=none; b=wUnTWefHeayNVh1o9amuiJhJXnJtU8Mkwe3aXPySNNXMcPnOGC28G8BvbmFDaaxrbR25Y8 q4ySJnBUT2R3hHvBHf8A+U6hIZxxuR/zw37Il+TUZTOC6AnrxIDkuHLYHcXsQVB37RZn+e ley7DSH9giUlWOsvGeV/lZv/IszeKULsT32EYmGMC0o5P9hptQIi/lRYYScgDFcku4LmmU Ocn7xmUtVRa+x7xrCWOG1cX4gZwQqyhqeGm7EkRe3vul5iZZPYw/oXLZetMEWNXSHkyfRu INLWx+99ZrmsG4KOs1YzMdiSuA0neGg+f/HbfT4gnhyLnZEcxKp9v1hGYh1mSQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NJJYV3DD5zPM3; Fri, 25 Nov 2022 02:22:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2AP2MspS075481; Fri, 25 Nov 2022 02:22:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2AP2MsQ0075480; Fri, 25 Nov 2022 02:22:54 GMT (envelope-from git) Date: Fri, 25 Nov 2022 02:22:54 GMT Message-Id: <202211250222.2AP2MsQ0075480@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: c4a794b3d76d - main - ftp/axel: New port: Lightweight CLI download accelerator List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c4a794b3d76d53d9c12f1d23afd58c85a73f885a Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=c4a794b3d76d53d9c12f1d23afd58c85a73f885a commit c4a794b3d76d53d9c12f1d23afd58c85a73f885a Author: Yuri Victorovich AuthorDate: 2022-11-25 02:22:03 +0000 Commit: Yuri Victorovich CommitDate: 2022-11-25 02:22:50 +0000 ftp/axel: New port: Lightweight CLI download accelerator --- MOVED | 3 +-- ftp/Makefile | 1 + ftp/axel/Makefile | 33 +++++++++++++++++++++++++++++++++ ftp/axel/distinfo | 3 +++ ftp/axel/files/patch-src_axel.c | 11 +++++++++++ ftp/axel/files/patch-src_random.c | 11 +++++++++++ ftp/axel/pkg-descr | 7 +++++++ 7 files changed, 67 insertions(+), 2 deletions(-) diff --git a/MOVED b/MOVED index 217f2fbec431..74793f35bf8c 100644 --- a/MOVED +++ b/MOVED @@ -17567,7 +17567,6 @@ net/libmms||2022-09-30|Has expired: Obsolete, Microsoft deprecated MMS protocol audio/mctoolame-decoder||2022-09-30|Has expired: Legacy and obscure audio format that never gained any traction audio/mctoolame-encoder||2022-09-30|Has expired: Legacy and obscure audio format that never gained any traction www/py-ws4py||2022-09-30|Has expired: Upstream abandoned -ftp/axel||2022-09-30|Has expired: Last release in 2009 and dead upstream, please consider using www/aria2 databases/py-bsddb3|databases/py-berkeleydb|2022-09-30|Has expired: Requires upstream EOLd db5. Use py-berkeleydb graphics/megapov|graphics/povray37|2022-10-01|Has expired: Abandoned upstream. graphics/povray37 is the recommended replacement x11-toolkits/gstreamer1-plugins-gtk4||2022-10-01|No consumers left and deprecated in favor gtk4 plugin from multimedia/gstreamer1-plugins-rust >= 0.8.0 @@ -17615,4 +17614,4 @@ net/rabbitmq-c-devel|net/rabbitmq-c|2022-11-16|Remove obsolete devel port, use n databases/foundationdb-devel|databases/foundationdb|2022-11-16|Remove obsolete devel port, use databases/foundationdb instead devel/py-pytest4-asyncio||2022-11-19|Has expired: legacy version for pytest4 no longer used by any port devel/tokamak||2022-11-20|Has expired: Last release in 2008, abandoned upstream, not used, website disappeared -net/libutp|net-p2p/libutp|2022-11-19|Moved to a more adequated category +net/libutp|net-p2p/libutp|2022-11-20|Moved to a more adequated category diff --git a/ftp/Makefile b/ftp/Makefile index d4f6166b7bfa..2ca7c730a9d9 100644 --- a/ftp/Makefile +++ b/ftp/Makefile @@ -2,6 +2,7 @@ SUBDIR += R-cran-RCurl SUBDIR += R-cran-curl + SUBDIR += axel SUBDIR += bbftp-client SUBDIR += bbftp-server SUBDIR += bftpd diff --git a/ftp/axel/Makefile b/ftp/axel/Makefile new file mode 100644 index 000000000000..da01ca854cd0 --- /dev/null +++ b/ftp/axel/Makefile @@ -0,0 +1,33 @@ +PORTNAME= axel +DISTVERSIONPREFIX= v +DISTVERSION= 2.17.11-21 +DISTVERSIONSUFFIX= -gd65dffa +CATEGORIES= ftp + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Lightweight CLI download accelerator +WWW= https://github.com/axel-download-accelerator/axel + +LICENSE= GPLv2+ +LICENSE_FILE= ${WRKSRC}/COPYING + +BUILD_DEPENDS= autoconf-archive>=0:devel/autoconf-archive \ + txt2man:textproc/txt2man + +USES= autoreconf gettext-tools gmake pkgconfig ssl + +USE_GITHUB= yes +GH_ACCOUNT= axel-download-accelerator + +GNU_CONFIGURE= yes + +.if exists(/usr/libdata/pkgconfig/openssl.pc) +CONFIGURE_ARGS= --with-ssl=openssl +.else +CONFIGURE_ARGS= --without-ssl # no easy workaround +.endif + +PLIST_FILES= bin/axel \ + man/man1/axel.1.gz + +.include diff --git a/ftp/axel/distinfo b/ftp/axel/distinfo new file mode 100644 index 000000000000..9a4086007e01 --- /dev/null +++ b/ftp/axel/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1669338799 +SHA256 (axel-download-accelerator-axel-v2.17.11-21-gd65dffa_GH0.tar.gz) = f58501c4f82e1e9dbf085552387328eccb211fb1592fafae06582899cb0cfbdf +SIZE (axel-download-accelerator-axel-v2.17.11-21-gd65dffa_GH0.tar.gz) = 101764 diff --git a/ftp/axel/files/patch-src_axel.c b/ftp/axel/files/patch-src_axel.c new file mode 100644 index 000000000000..bbf0d24a4493 --- /dev/null +++ b/ftp/axel/files/patch-src_axel.c @@ -0,0 +1,11 @@ +--- src/axel.c.orig 2022-11-25 02:14:41 UTC ++++ src/axel.c +@@ -151,7 +151,7 @@ axel_new(conf_t *conf, int count, const search_t *res) + axel->conf->buffer_size = axel->conf->max_speed; + } + uint64_t delay = +- UINT64_C(1073741824) * axel->conf->buffer_size * ++ ((uint64_t)1073741824) * axel->conf->buffer_size * + axel->conf->num_connections / axel->conf->max_speed; + + axel->delay_time.tv_sec = delay / 1073741824; diff --git a/ftp/axel/files/patch-src_random.c b/ftp/axel/files/patch-src_random.c new file mode 100644 index 000000000000..57fdefa7ace5 --- /dev/null +++ b/ftp/axel/files/patch-src_random.c @@ -0,0 +1,11 @@ +--- src/random.c.orig 2022-11-25 01:30:10 UTC ++++ src/random.c +@@ -6,7 +6,7 @@ + ssize_t + axel_rand64(uint64_t *out) + { +- static int fd = -1; ++ static atomic_int fd = -1; + if (fd == -1) { + int tmp = open("/dev/random", O_RDONLY); + int expect = -1; diff --git a/ftp/axel/pkg-descr b/ftp/axel/pkg-descr new file mode 100644 index 000000000000..c98c5a051b3d --- /dev/null +++ b/ftp/axel/pkg-descr @@ -0,0 +1,7 @@ +Axel tries to accelerate the download process by using multiple connections per +file, and can also balance the load between different servers. + +Axel tries to be as light as possible, so it might be useful on byte-critical +systems. + +Axel supports HTTP, HTTPS, FTP and FTPS protocols.