pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/httpfile Add httpfile, a secure HTTP server derive...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/417ae8684526
branches:  trunk
changeset: 768418:417ae8684526
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Thu Oct 21 20:38:35 2021 +0000

description:
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:

 www/httpfile/DESCR                  |  11 ++++++++++
 www/httpfile/Makefile               |  16 +++++++++++++++
 www/httpfile/PLIST                  |   8 +++++++
 www/httpfile/distinfo               |   6 +++++
 www/httpfile/patches/patch-Makefile |  39 +++++++++++++++++++++++++++++++++++++
 5 files changed, 80 insertions(+), 0 deletions(-)

diffs (100 lines):

diff -r 1d733a2372ec -r 417ae8684526 www/httpfile/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/httpfile/DESCR        Thu Oct 21 20:38:35 2021 +0000
@@ -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 -r 1d733a2372ec -r 417ae8684526 www/httpfile/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/httpfile/Makefile     Thu Oct 21 20:38:35 2021 +0000
@@ -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@localhost
+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 -r 1d733a2372ec -r 417ae8684526 www/httpfile/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/httpfile/PLIST        Thu Oct 21 20:38:35 2021 +0000
@@ -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 -r 1d733a2372ec -r 417ae8684526 www/httpfile/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/httpfile/distinfo     Thu Oct 21 20:38:35 2021 +0000
@@ -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 -r 1d733a2372ec -r 417ae8684526 www/httpfile/patches/patch-Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/httpfile/patches/patch-Makefile       Thu Oct 21 20:38:35 2021 +0000
@@ -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



Home | Main Index | Thread Index | Old Index