From fa69c49c2d4e94d55de17bb7608f7c5873227662 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Bar=C4=87?= Date: Thu, 3 Dec 2020 22:43:24 +0100 Subject: [PATCH] net-fs/httpdirfs: new pkg; add 1.2.0 and 9999 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Maciej Barć --- net-fs/httpdirfs/Manifest | 1 + net-fs/httpdirfs/httpdirfs-1.2.0.ebuild | 35 +++++++++++++++++++++++++ net-fs/httpdirfs/httpdirfs-9999.ebuild | 35 +++++++++++++++++++++++++ net-fs/httpdirfs/metadata.xml | 27 +++++++++++++++++++ 4 files changed, 98 insertions(+) create mode 100644 net-fs/httpdirfs/Manifest create mode 100644 net-fs/httpdirfs/httpdirfs-1.2.0.ebuild create mode 100644 net-fs/httpdirfs/httpdirfs-9999.ebuild create mode 100644 net-fs/httpdirfs/metadata.xml diff --git a/net-fs/httpdirfs/Manifest b/net-fs/httpdirfs/Manifest new file mode 100644 index 0000000000..db6b4f4a75 --- /dev/null +++ b/net-fs/httpdirfs/Manifest @@ -0,0 +1 @@ +DIST 1.2.0.tar.gz 74794 BLAKE2B a142e10f46db69ea106ad2a0df7a1853e9109693ac89c42d3669d5a3ce239d156d8bf5fc73a1180a5770e832ff2827f05aac79303a8ee7b52ac02f4518b7e5c1 SHA512 9774d7cf573c16135315a87e09667f706518254ea8d57744ce437c1e3f47128a3ca77684506570a6b74dfef236843a107947503deb50c999395ad2a08d341919 diff --git a/net-fs/httpdirfs/httpdirfs-1.2.0.ebuild b/net-fs/httpdirfs/httpdirfs-1.2.0.ebuild new file mode 100644 index 0000000000..13e127a4f5 --- /dev/null +++ b/net-fs/httpdirfs/httpdirfs-1.2.0.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Filesystem to mount HTTP directory listings, with a permanent cache" +HOMEPAGE="https://github.com/fangfufu/httpdirfs" + +if [[ "${PV}" == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/fangfufu/${PN}.git" +else + SRC_URI="https://github.com/fangfufu/${PN}/archive/${PV}.tar.gz" + KEYWORDS="~amd64" +fi + +RESTRICT="test" +LICENSE="GPL-3" +SLOT="0" +# Doc generation fails +# uses app-doc/doxygen[dot] +# IUSE="doc" + +DEPEND=" + dev-libs/expat + dev-libs/gumbo + net-misc/curl + sys-fs/e2fsprogs + sys-fs/fuse:0 +" +RDEPEND="${DEPEND}" + +src_install() { + emake prefix="${D}"/usr install +} diff --git a/net-fs/httpdirfs/httpdirfs-9999.ebuild b/net-fs/httpdirfs/httpdirfs-9999.ebuild new file mode 100644 index 0000000000..13e127a4f5 --- /dev/null +++ b/net-fs/httpdirfs/httpdirfs-9999.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Filesystem to mount HTTP directory listings, with a permanent cache" +HOMEPAGE="https://github.com/fangfufu/httpdirfs" + +if [[ "${PV}" == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/fangfufu/${PN}.git" +else + SRC_URI="https://github.com/fangfufu/${PN}/archive/${PV}.tar.gz" + KEYWORDS="~amd64" +fi + +RESTRICT="test" +LICENSE="GPL-3" +SLOT="0" +# Doc generation fails +# uses app-doc/doxygen[dot] +# IUSE="doc" + +DEPEND=" + dev-libs/expat + dev-libs/gumbo + net-misc/curl + sys-fs/e2fsprogs + sys-fs/fuse:0 +" +RDEPEND="${DEPEND}" + +src_install() { + emake prefix="${D}"/usr install +} diff --git a/net-fs/httpdirfs/metadata.xml b/net-fs/httpdirfs/metadata.xml new file mode 100644 index 0000000000..e4ba763898 --- /dev/null +++ b/net-fs/httpdirfs/metadata.xml @@ -0,0 +1,27 @@ + + + + + xgqt@protonmail.com + Maciej Barć + + + fangfufu/httpdirfs + + + A filesystem which allows you to mount HTTP directory listings, with a permanent cache. + Now with Airsonic / Subsonic support! + Have you ever wanted to mount those HTTP directory listings as if it was a partition? + Look no further, this is your solution. + HTTPDirFS stands for Hyper Text Transfer Protocol Directory Filesystem. + The performance of the program is excellent. + HTTP connections are reused due to the use of curl-multi interface. + The FUSE component runs in multithreaded mode. + There is a permanent cache system which can cache all the file segments you have downloaded, + so you don't need to these segments again if you access them later. + This feature is triggered by the --cache flag. + This makes this filesystem much faster than rclone mount. + The support for Airsonic / Subsonic server has also been added. + This allows you to mount a remote music collection locally. + +