From nobody Thu Sep 05 11:48:52 2024 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 4WzyLY1V5lz5Vrk9; Thu, 05 Sep 2024 11:48:53 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WzyLY0fCYz49l4; Thu, 5 Sep 2024 11:48:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725536933; 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=q35iVw8SKBsw26WsAWJuQhP90a6grRCFXdZDDyuDKTU=; b=h4WG4RFWB1efMG2aZdc+KAPf8he/KLOjNbrfoPd6BM5m1ZXwf95sqfUSfPSNuZwGyUno94 NdZEDPhrCG1Mu8Q+ET13hyC16zjC4DfmAt0cqFRLzYAGMKFS3mZnQtUru53CWbIIzpvRfO rYkzr9EARKL98fGiwAZZ4Vb2ce79tdIsOzIMEK5yIfvDCEBIOFP7fj/ZewN2HcJ1vr/CJY vf7IQn/BBCef0xDMaXDqt/n9VbMtEWQrfVn1FycCQ4bMGKbpNTSEUZCUKHoQD0dultSwgz 8rb56oLly8UKKXjqQFnp3dGDIK+vTh72ZVZO0YgnumYatjKWLW+tJ35lAxScAw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725536933; a=rsa-sha256; cv=none; b=k6zgmQ/2gLL7oVkie4UwmH3OjhoLlOoHaSd5fotcTj7oIoy9ehg336G0s00ZucbPKjejhd y2NdphgltYN9TszKteSdcxqTXi3WSopsq+e9jEbxn9culKY+HB5y1LGjZ3aXoWodFEfRcO VjD5Ji2o+/W9GRzH2mA3m8+SNAFFs7cfWpbSXjAHdg895zrSjZRvV3kIBTlDzviua2weB7 xMzvtLmClOZQwzf0eW9bmobnWY3pdnnNdmQAumP3F4vFgBRupbhfkX9xCu6bdKfXJdk46W k7yGf7mms5TDoEOIpIQPS0kAmEbjeshLgOYKzz4FeUo4r59B1EEZGrPhJkioUA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725536933; 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=q35iVw8SKBsw26WsAWJuQhP90a6grRCFXdZDDyuDKTU=; b=HQ0XE4EcOIFOkRTM8xzwkWeMMTRB3idCWzdgSHw4GGx5nmo9qr7ZFBdP6J1ravicQRKwoR MREVGDJdyxc49O1BULKtu755F2xkzsHeoPlPWzScyV0POVJ7Zcn3jOs+2RnjnAVAbju48P aK4R0JgHLwnARlH/tZzZ1ns7GxTZwhgAmyIBrTOtvgZHaUa6o+e+OBIOUvQOTsyKqxtWwz CX1n8p9UNr4R/d+0MMCL9BZTLbtvEvPmx5sQ+KtENrQMrOjEAkJwqkXtU/p0ubfcJnm/3+ d8dzdQ96GU73C6QTYGc6zJhaVKD1F9vwYUAx01fg3Z3ygapA8i6YsNDncjAxTw== 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 4WzyLY09C9z16RV; Thu, 5 Sep 2024 11:48:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 485Bmqm4061071; Thu, 5 Sep 2024 11:48:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 485BmqjV061068; Thu, 5 Sep 2024 11:48:52 GMT (envelope-from git) Date: Thu, 5 Sep 2024 11:48:52 GMT Message-Id: <202409051148.485BmqjV061068@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Hiroki Tagato Subject: git: ba7c09d98455 - main - ftp/wcurl: add port: Simple wrapper around curl to easily download files 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: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tagattie X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ba7c09d98455357aae46334c18c85187b173dd0f Auto-Submitted: auto-generated The branch main has been updated by tagattie: URL: https://cgit.FreeBSD.org/ports/commit/?id=ba7c09d98455357aae46334c18c85187b173dd0f commit ba7c09d98455357aae46334c18c85187b173dd0f Author: Hiroki Tagato AuthorDate: 2024-09-05 11:47:02 +0000 Commit: Hiroki Tagato CommitDate: 2024-09-05 11:48:39 +0000 ftp/wcurl: add port: Simple wrapper around curl to easily download files wcurl is a simple curl wrapper which lets you use curl to download files without having to remember any parameters. Simply call wcurl with a list of URLs you want to download and wcurl will pick sane defaults. If you need anything more complex, you can provide any of curl's supported parameters via the --curl-options option. Just beware that you likely should be using curl directly if your use case is not covered. WWW: https://curl.se/wcurl/ --- ftp/Makefile | 1 + ftp/wcurl/Makefile | 31 +++++++++++++++++++++++++++++++ ftp/wcurl/distinfo | 3 +++ ftp/wcurl/pkg-descr | 10 ++++++++++ 4 files changed, 45 insertions(+) diff --git a/ftp/Makefile b/ftp/Makefile index 06b545d27011..ee90a11f19a2 100644 --- a/ftp/Makefile +++ b/ftp/Makefile @@ -91,6 +91,7 @@ SUBDIR += vsftpd SUBDIR += vsftpd-ext SUBDIR += waiho + SUBDIR += wcurl SUBDIR += weex SUBDIR += wget SUBDIR += wmget diff --git a/ftp/wcurl/Makefile b/ftp/wcurl/Makefile new file mode 100644 index 000000000000..963f7372ffb1 --- /dev/null +++ b/ftp/wcurl/Makefile @@ -0,0 +1,31 @@ +PORTNAME= wcurl +DISTVERSION= 2024.07.10 +CATEGORIES= ftp net www + +MAINTAINER= tagattie@FreeBSD.org +COMMENT= Simple wrapper around curl to easily download files +WWW= https://curl.se/wcurl/ + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= curl>=7.46.0:ftp/curl +TEST_DEPENDS= shunit2:devel/shunit2 + +USE_GITHUB= yes +GH_ACCOUNT= curl + +NO_ARCH= yes +NO_BUILD= yes + +PLIST_FILES= bin/wcurl \ + share/man/man1/wcurl.1.gz + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/wcurl ${STAGEDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/wcurl.1 ${STAGEDIR}${PREFIX}/share/man/man1 + +do-test: + cd ${WRKSRC} && ./tests/tests.sh + +.include diff --git a/ftp/wcurl/distinfo b/ftp/wcurl/distinfo new file mode 100644 index 000000000000..5a056e441ab2 --- /dev/null +++ b/ftp/wcurl/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1725536015 +SHA256 (curl-wcurl-2024.07.10_GH0.tar.gz) = 962bb72e36e6f6cedbd21c8ca3af50e7dadd587a49d2482ab3226e76cf6dcc97 +SIZE (curl-wcurl-2024.07.10_GH0.tar.gz) = 5791 diff --git a/ftp/wcurl/pkg-descr b/ftp/wcurl/pkg-descr new file mode 100644 index 000000000000..12e51760f31c --- /dev/null +++ b/ftp/wcurl/pkg-descr @@ -0,0 +1,10 @@ +wcurl is a simple curl wrapper which lets you use curl to download +files without having to remember any parameters. + +Simply call wcurl with a list of URLs you want to download and wcurl +will pick sane defaults. + +If you need anything more complex, you can provide any of curl's +supported parameters via the --curl-options option. Just beware that +you likely should be using curl directly if your use case is not +covered.