pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/superscript-shttpd Add superscript-httpd, some HTT...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/eeb122371478
branches:  trunk
changeset: 768689:eeb122371478
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Sat Oct 30 09:14:05 2021 +0000

description:
Add superscript-httpd, some HTTP daemons designed to complement publicfile.

cgi-httpd, cgiuser-httpd, constant-httpd, echo-httpd, and redir-httpd
are HTTP daemons designed to complement publicfile.

Each instance of an shttpd daemon listens on a separate address, in a
chroot directory (except for cgiuser-httpd), typically running as a
nonprivileged user.

diffstat:

 www/superscript-shttpd/DESCR                          |   6 ++
 www/superscript-shttpd/Makefile                       |  22 +++++++++
 www/superscript-shttpd/PLIST                          |  14 ++++++
 www/superscript-shttpd/distinfo                       |   7 +++
 www/superscript-shttpd/patches/patch-Makefile         |  44 +++++++++++++++++++
 www/superscript-shttpd/patches/patch-leapsecs__read.c |  15 ++++++
 6 files changed, 108 insertions(+), 0 deletions(-)

diffs (132 lines):

diff -r e32e9570fc86 -r eeb122371478 www/superscript-shttpd/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/superscript-shttpd/DESCR      Sat Oct 30 09:14:05 2021 +0000
@@ -0,0 +1,6 @@
+cgi-httpd, cgiuser-httpd, constant-httpd, echo-httpd, and redir-httpd
+are HTTP daemons designed to complement publicfile.
+
+Each instance of an shttpd daemon listens on a separate address, in a
+chroot directory (except for cgiuser-httpd), typically running as a
+nonprivileged user.
diff -r e32e9570fc86 -r eeb122371478 www/superscript-shttpd/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/superscript-shttpd/Makefile   Sat Oct 30 09:14:05 2021 +0000
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1 2021/10/30 09:14:05 schmonz Exp $
+
+DISTNAME=              shttpd-0.53
+PKGNAME=               superscript-${DISTNAME}
+CATEGORIES=            www
+MASTER_SITES=          ${MASTER_SITE_GITHUB:=SuperScript/shttpd/raw/179e52631ce26d2e3b6137596466b1764ba276ea/dist/}
+
+MAINTAINER=            schmonz%NetBSD.org@localhost
+HOMEPAGE=              https://web.archive.org/web/20120908072828/http://www.superscript.com/shttpd/index.html
+COMMENT=               HTTP daemons designed to complement publicfile
+#LICENSE=              # TODO: (see mk/license.mk)
+
+SUBST_CLASSES+=                paths
+SUBST_STAGE.paths=     do-configure
+SUBST_FILES.paths=     leapsecs_read.c
+SUBST_VARS.paths=      PKG_SYSCONFDIR
+
+post-configure:
+       cd ${WRKSRC} && cp conf-ld conf-lds
+
+.include "../../mk/djbware.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r e32e9570fc86 -r eeb122371478 www/superscript-shttpd/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/superscript-shttpd/PLIST      Sat Oct 30 09:14:05 2021 +0000
@@ -0,0 +1,14 @@
+@comment $NetBSD: PLIST,v 1.1 2021/10/30 09:14:05 schmonz Exp $
+bin/cgi-config
+bin/cgi-dispatch
+bin/cgi-httpd
+bin/cgi-success
+bin/cgiuser-config
+bin/cgiuser-httpd
+bin/constant-config
+bin/constant-httpd
+bin/echo-config
+bin/echo-httpd
+bin/redir-config
+bin/redir-data
+bin/redir-httpd
diff -r e32e9570fc86 -r eeb122371478 www/superscript-shttpd/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/superscript-shttpd/distinfo   Sat Oct 30 09:14:05 2021 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2021/10/30 09:14:05 schmonz Exp $
+
+BLAKE2s (shttpd-0.53.tar.gz) = 60a35da5985a0a68ec7d47a19f2aef7b4b05858f2ba0b15b51f8a8b051c1bee3
+SHA512 (shttpd-0.53.tar.gz) = 35cbe2cd85a90c55c2ada2b13f75b8cf06f0123abfb4609271134c2d7deff99dc9752db37fb3ca1ae2b7131da53285c7a4f5a996edb37cebcdab912396c0b599
+Size (shttpd-0.53.tar.gz) = 54439 bytes
+SHA1 (patch-Makefile) = 7ee8313d7cd38cdb1153c8b5965d018ee27bf769
+SHA1 (patch-leapsecs__read.c) = 395d516f5fa737802903bfde3fa6b479d82da2dc
diff -r e32e9570fc86 -r eeb122371478 www/superscript-shttpd/patches/patch-Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/superscript-shttpd/patches/patch-Makefile     Sat Oct 30 09:14:05 2021 +0000
@@ -0,0 +1,44 @@
+$NetBSD: patch-Makefile,v 1.1 2021/10/30 09:14:05 schmonz Exp $
+
+DESTDIR support.
+
+--- Makefile.orig      2001-07-01 19:19:52.000000000 +0000
++++ Makefile
+@@ -24,6 +24,13 @@ cgi-config.c \
+ strerr.h exit.h auto_home.h generic-conf.h buffer.h fmt.h
+       ./compile cgi-config.c
+ 
++auto_destdir.o: compile \
++auto_destdir.c
++      ./compile auto_destdir.c
++
++auto_destdir.c: auto-str conf-destdir
++      ./auto-str auto_home `head -1 conf-destdir` > auto_destdir.c
++
+ auto_home.o: compile \
+ auto_home.c
+       ./compile auto_home.c
+@@ -852,9 +859,9 @@ prog: cgi-config cgi-env cgi-example cgi
+ cgiuser-config cgi-dispatch echo-config echo-httpd redir-config \
+ redir-httpd redir-data constant-config constant-httpd utime
+ 
+-install: load install.o hier.o auto_home.o stralloc.a alloc.a strerr.a \
++install: load install.o hier.o auto_destdir.o stralloc.a alloc.a strerr.a \
+ buffer.a open.a error.a str.a
+-      ./load install hier.o auto_home.o stralloc.a alloc.a strerr.a buffer.a \
++      ./load install hier.o auto_destdir.o stralloc.a alloc.a strerr.a buffer.a \
+       open.a error.a str.a 
+ 
+ constant-httpd: load constant-httpd.o pathdecode.o file.o filetype.o \
+@@ -904,9 +911,9 @@ rts: warn-auto.sh rts.sh conf-home
+       > rts
+       chmod 755 rts
+ 
+-instcheck: load instcheck.o hier.o auto_home.o strerr.a buffer.a error.a \
++instcheck: load instcheck.o hier.o auto_destdir.o strerr.a buffer.a error.a \
+ str.a
+-      ./load instcheck hier.o auto_home.o strerr.a buffer.a error.a str.a 
++      ./load instcheck hier.o auto_destdir.o strerr.a buffer.a error.a str.a 
+ 
+ instcheck.o: compile \
+ instcheck.c \
diff -r e32e9570fc86 -r eeb122371478 www/superscript-shttpd/patches/patch-leapsecs__read.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/superscript-shttpd/patches/patch-leapsecs__read.c     Sat Oct 30 09:14:05 2021 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-leapsecs__read.c,v 1.1 2021/10/30 09:14:05 schmonz Exp $
+
+PKG_SYSCONFDIR support.
+
+--- leapsecs_read.c.orig       1999-11-15 06:33:15.000000000 +0000
++++ leapsecs_read.c
+@@ -18,7 +18,7 @@ int leapsecs_read()
+   int i;
+   struct tai u;
+ 
+-  fd = open("/etc/leapsecs.dat",O_RDONLY | O_NDELAY);
++  fd = open("@PKG_SYSCONFDIR@/leapsecs.dat",O_RDONLY | O_NDELAY);
+   if (fd == -1) {
+     if (errno != ENOENT) return -1;
+     if (leapsecs) free(leapsecs);



Home | Main Index | Thread Index | Old Index