summaryrefslogtreecommitdiff
path: root/www/httpfile
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2021-10-21 20:38:35 +0000
committerschmonz <schmonz@pkgsrc.org>2021-10-21 20:38:35 +0000
commit294868cf9f9d8f085755fef5f8f5de2b8d1ce716 (patch)
tree4ea56d102092476adfcbc30368fdaeaf75c8f284 /www/httpfile
parent9e069891980e96ba65a16159894f20a32061ce10 (diff)
downloadpkgsrc-294868cf9f9d8f085755fef5f8f5de2b8d1ce716.tar.gz
Add httpfile, a secure HTTP server derived from publicfile.
- removed ftpd - added "Content-Encoding: gzip" - added more 'default' filetypes - case insensitive filetype checking - upgraded alloc library, added memory limit - added request timeout - added basic authentication as a simple protection against robots - added 301 redirect for directories - added range support
Diffstat (limited to 'www/httpfile')
-rw-r--r--www/httpfile/DESCR11
-rw-r--r--www/httpfile/Makefile16
-rw-r--r--www/httpfile/PLIST8
-rw-r--r--www/httpfile/distinfo6
-rw-r--r--www/httpfile/patches/patch-Makefile39
5 files changed, 80 insertions, 0 deletions
diff --git a/www/httpfile/DESCR b/www/httpfile/DESCR
new file mode 100644
index 00000000000..0bd75ae9ecc
--- /dev/null
+++ b/www/httpfile/DESCR
@@ -0,0 +1,11 @@
+httpfile is a secure HTTP server derived from publicfile-0.52:
+
+- removed ftpd
+- added "Content-Encoding: gzip"
+- added more 'default' filetypes
+- case insensitive filetype checking
+- upgraded alloc library, added memory limit
+- added request timeout
+- added basic authentication as a simple protection against robots
+- added 301 redirect for directories
+- added range support
diff --git a/www/httpfile/Makefile b/www/httpfile/Makefile
new file mode 100644
index 00000000000..a6c242a12b1
--- /dev/null
+++ b/www/httpfile/Makefile
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile,v 1.1 2021/10/21 20:38:35 schmonz Exp $
+
+DISTNAME= httpfile-20151206
+CATEGORIES= www
+MASTER_SITES= ${HOMEPAGE}
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= schmonz@NetBSD.org
+HOMEPAGE= https://mojzis.com/software/httpfile/
+COMMENT= Secure HTTP server derived from publicfile
+LICENSE= djb-nonlicense
+
+DJB_BUILD_TARGETS= install instcheck
+
+.include "../../mk/djbware.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/httpfile/PLIST b/www/httpfile/PLIST
new file mode 100644
index 00000000000..c0bb2860caf
--- /dev/null
+++ b/www/httpfile/PLIST
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST,v 1.1 2021/10/21 20:38:35 schmonz Exp $
+bin/httpfile-access
+bin/httpfile-conf
+bin/httpfile-getmtime
+bin/httpfile-gzip
+bin/httpfile-httpd
+bin/httpfile-setlock
+bin/httpfile-setmtime
diff --git a/www/httpfile/distinfo b/www/httpfile/distinfo
new file mode 100644
index 00000000000..5c8d27d4cbc
--- /dev/null
+++ b/www/httpfile/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2021/10/21 20:38:35 schmonz Exp $
+
+RMD160 (httpfile-20151206.tar.bz2) = 9f83a89d47ca7d12cb80025ea178bff31823a81a
+SHA512 (httpfile-20151206.tar.bz2) = 1768a647f16026e8a928432bd21a6a8673d5993b8a913375a91fa0f62aac382bd32efc13cebc31bf275b298883d083f2485d4fe1a74f87907b29ceb721677d00
+Size (httpfile-20151206.tar.bz2) = 29502 bytes
+SHA1 (patch-Makefile) = 3739cf9cec613dbd9b823b9bca15b3e656497bb8
diff --git a/www/httpfile/patches/patch-Makefile b/www/httpfile/patches/patch-Makefile
new file mode 100644
index 00000000000..b1fe3c22efd
--- /dev/null
+++ b/www/httpfile/patches/patch-Makefile
@@ -0,0 +1,39 @@
+$NetBSD: patch-Makefile,v 1.1 2021/10/21 20:38:35 schmonz Exp $
+
+DESTDIR support.
+
+--- Makefile.orig 2013-11-24 14:38:10.000000000 +0000
++++ Makefile
+@@ -757,6 +757,14 @@ auto-str: \
+ load auto-str.o library.a
+ ./load auto-str library.a
+
++auto_destdir.c: \
++auto-str conf-destdir
++ ./auto-str auto_home `head -1 conf-destdir` > auto_destdir.c
++
++auto_destdir.o: \
++compile auto_destdir.c
++ ./compile auto_destdir.c
++
+ auto_home.c: \
+ auto-str conf-home
+ ./auto-str auto_home `head -1 conf-home` > auto_home.c
+@@ -770,13 +778,12 @@ load httpfile-conf.o auto_home.o library
+ ./load httpfile-conf auto_home.o library.a
+
+ install: \
+-load install.o auto_home.o library.a
+- ./load install auto_home.o library.a
+- ./install
++load install.o auto_destdir.o library.a
++ ./load install auto_destdir.o library.a
+
+ instcheck: \
+-load instcheck.o auto_home.o library.a
+- ./load instcheck auto_home.o library.a
++load instcheck.o auto_destdir.o library.a
++ ./load instcheck auto_destdir.o library.a
+
+ httpfile-gzip: \
+ warn-auto.sh httpfile-gzip.sh conf-home