summaryrefslogtreecommitdiff
path: root/sysutils/fusefs-httpfs/files
diff options
context:
space:
mode:
authorRobert Clausecker <fuz@FreeBSD.org>2024-09-27 12:48:46 +0200
committerRobert Clausecker <fuz@FreeBSD.org>2024-11-06 16:17:35 +0100
commit6e2da9672f79f44048d597f0f61e4646cdeade9d (patch)
treec92e4b3158e3419e8cec38e00227d08dcdaab3e9 /sysutils/fusefs-httpfs/files
parentmath/sdpa: speed up build (diff)
filesystems: add new category for file systems and related utilities
The filesystems category houses file systems and file system utilities. It is added mainly to turn the sysutils/fusefs-* pseudo-category into a proper one, but is also useful for the sundry of other file systems related ports found in the tree. Ports that seem like they belong there are moved to the new category. Two ports, sysutils/fusefs-funionfs and sysutils/fusefs-fusepak are not moved as they currently don't fetch and don't have TIMESTAMP set in their distinfo, but that is required to be able to push a rename of the port by the pre-receive hook. Approved by: portmgr (rene) Reviewed by: mat Pull Request: https://github.com/freebsd/freebsd-ports/pull/302 PR: 281988
Diffstat (limited to 'sysutils/fusefs-httpfs/files')
-rw-r--r--sysutils/fusefs-httpfs/files/patch-Makefile60
-rw-r--r--sysutils/fusefs-httpfs/files/patch-httpfs2.c53
2 files changed, 0 insertions, 113 deletions
diff --git a/sysutils/fusefs-httpfs/files/patch-Makefile b/sysutils/fusefs-httpfs/files/patch-Makefile
deleted file mode 100644
index 4e2252a2840b..000000000000
--- a/sysutils/fusefs-httpfs/files/patch-Makefile
+++ /dev/null
@@ -1,60 +0,0 @@
---- Makefile.orig 2012-09-03 14:58:02 UTC
-+++ Makefile
-@@ -1,5 +1,5 @@
- MAIN_CFLAGS := -g -Os -Wall $(shell pkg-config fuse --cflags)
--MAIN_CPPFLAGS := -Wall -Wno-unused-function -Wconversion -Wtype-limits -DUSE_AUTH -D_XOPEN_SOURCE=700 -D_ISOC99_SOURCE
-+MAIN_CPPFLAGS := -Wall -Wno-unused-function -Wconversion -DUSE_AUTH -D_XOPEN_SOURCE=700 -D_ISOC99_SOURCE
- THR_CPPFLAGS := -DUSE_THREAD
- THR_LDFLAGS := -lpthread
- MAIN_LDFLAGS := $(shell pkg-config fuse --libs | sed -e s/-lrt// -e s/-ldl// -e s/-pthread// -e "s/ / /g")
-@@ -10,7 +10,7 @@ ifeq ($(shell pkg-config --atleast-version 2.10 gnutls
-
- variants += -ssl -ssl-mt
-
-- CERT_STORE := /etc/ssl/certs/ca-certificates.crt
-+# CERT_STORE := /etc/ssl/certs/ca-certificates.crt
- SSL_CPPFLAGS := -DUSE_SSL $(shell pkg-config gnutls --cflags) -DCERT_STORE=\"$(CERT_STORE)\"
- SSL_LDFLAGS := $(shell pkg-config gnutls --libs)
- endif
-@@ -23,7 +23,8 @@ manpages = $(addsuffix .1,$(binaries))
-
- intermediates += $(addsuffix .xml,$(manpages))
-
--targets = $(binaries) $(manpages)
-+#targets = $(binaries) $(manpages)
-+targets = $(binaries)
-
- full:
- $(MAKE) all $(addprefix all,$(variants))
-@@ -44,8 +45,8 @@ clean-recursive:
- %-full:
- $(MAKE) $* $(addprefix $*,$(variants))
-
--%.1: %.1.txt
-- a2x -f manpage $<
-+#%.1: %.1.txt
-+# a2x -f manpage $<
-
- %-ssl: $*
- $(MAKE) CPPFLAGS='$(CPPFLAGS) $(SSL_CPPFLAGS)' LDFLAGS='$(LDFLAGS) $(SSL_LDFLAGS)' binsuffix=-ssl$(binsuffix) $*
-@@ -60,20 +61,6 @@ clean-recursive:
- $(MAKE) CPPFLAGS='$(CPPFLAGS) -DRETRY_ON_RESET' binsuffix=-rst$(binsuffix) $*
-
- # Rules to automatically make a Debian package
--
--package = $(shell dpkg-parsechangelog | grep ^Source: | sed -e s,'^Source: ',,)
--version = $(shell dpkg-parsechangelog | grep ^Version: | sed -e s,'^Version: ',, -e 's,-.*,,')
--revision = $(shell dpkg-parsechangelog | grep ^Version: | sed -e -e 's,.*-,,')
--architecture = $(shell dpkg --print-architecture)
--tar_dir = $(package)-$(version)
--tar_gz = $(tar_dir).tar.gz
--pkg_deb_dir = pkgdeb
--unpack_dir = $(pkg_deb_dir)/$(tar_dir)
--orig_tar_gz = $(pkg_deb_dir)/$(package)_$(version).orig.tar.gz
--pkg_deb_src = $(pkg_deb_dir)/$(package)_$(version)-$(revision)_source.changes
--pkg_deb_bin = $(pkg_deb_dir)/$(package)_$(version)-$(revision)_$(architecture).changes
--
--deb_pkg_key = CB8C5858
-
- debclean:
- rm -rf $(pkg_deb_dir)
diff --git a/sysutils/fusefs-httpfs/files/patch-httpfs2.c b/sysutils/fusefs-httpfs/files/patch-httpfs2.c
deleted file mode 100644
index c18b96efd4a4..000000000000
--- a/sysutils/fusefs-httpfs/files/patch-httpfs2.c
+++ /dev/null
@@ -1,53 +0,0 @@
---- httpfs2.c.orig 2012-09-03 14:58:02 UTC
-+++ httpfs2.c
-@@ -35,7 +35,7 @@
- #include <assert.h>
- #include <ctype.h>
- #include <sys/stat.h>
--#include <sys/dir.h>
-+#include <dirent.h>
- #include <sys/types.h>
- #include <sys/time.h>
- #include <sys/socket.h>
-@@ -188,7 +188,7 @@ static char * b64_encode(unsigned const char* ptr, lon
-
- static int httpfs_stat(fuse_ino_t ino, struct stat *stbuf)
- {
-- stbuf->st_ino = ino;
-+ stbuf->st_ino = (uint32_t)ino;
- switch (ino) {
- case 1:
- stbuf->st_mode = S_IFDIR | 0755;
-@@ -257,7 +257,7 @@ static void dirbuf_add(fuse_req_t req, struct dirbuf *
- b->size += fuse_add_direntry(req, NULL, 0, name, NULL, 0);
- b->p = (char *) realloc(b->p, b->size);
- memset(&stbuf, 0, sizeof(stbuf));
-- stbuf.st_ino = ino;
-+ stbuf.st_ino = (uint32_t)ino;
- fuse_add_direntry(req, b->p + oldsize, b->size - oldsize, name, &stbuf,
- (off_t) b->size);
- }
-@@ -667,11 +667,12 @@ static char * url_encode(char * path) {
-
- static int init_url(struct_url* url)
- {
-- memset(url, 0, sizeof(url));
-+ memset(url, 0, sizeof(*url));
- url->sock_type = SOCK_CLOSED;
- url->timeout = TIMEOUT;
- #ifdef USE_SSL
-- url->cafile = CERT_STORE;
-+ if ((url->cafile = getenv("CERT_STORE")) == NULL)
-+ url->cafile = CERT_STORE;
- #endif
- return 0;
- }
-@@ -911,7 +912,7 @@ int main(int argc, char *argv[])
- return 3;
- }
- #ifdef USE_SSL
-- else {
-+ else if(main_url.ss != NULL) {
- print_ssl_info(main_url.ss);
- }
- #endif