git: 8b21c81cb353 - main - www/nginx-module-fancyindex: Add New Port

From: Jochen Neumeister <joneum_at_FreeBSD.org>
Date: Tue, 20 Oct 2026 17:43:48 UTC
The branch main has been updated by joneum:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8b21c81cb3531d8c9449273771fa79b8cc6e321d

commit 8b21c81cb3531d8c9449273771fa79b8cc6e321d
Author:     Jochen Neumeister <joneum@FreeBSD.org>
AuthorDate: 2026-10-20 17:41:00 +0000
Commit:     Jochen Neumeister <joneum@FreeBSD.org>
CommitDate: 2026-10-20 17:43:28 +0000

    www/nginx-module-fancyindex: Add New Port
    
    Sources of the fancyindex module for the NGINX ports.  The module writes the
    automatic directory listing as HTML that a template can shape.
    
    Sponsored by:   Netzkommune GmbH
---
 www/Makefile                                     |  1 +
 www/nginx-module-fancyindex/Makefile             | 36 ++++++++++++++++++++++++
 www/nginx-module-fancyindex/distinfo             |  3 ++
 www/nginx-module-fancyindex/files/pkg-message.in | 14 +++++++++
 www/nginx-module-fancyindex/pkg-descr            |  7 +++++
 5 files changed, 61 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index e1447c94fd73..c92c6084509e 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -543,6 +543,7 @@
     SUBDIR += nginx-module-aws-auth
     SUBDIR += nginx-module-cache-purge
     SUBDIR += nginx-module-encrypted-session
+    SUBDIR += nginx-module-fancyindex
     SUBDIR += nginx-module-fips-check
     SUBDIR += nginx-module-form-input
     SUBDIR += nginx-module-gridfs
diff --git a/www/nginx-module-fancyindex/Makefile b/www/nginx-module-fancyindex/Makefile
new file mode 100644
index 000000000000..f2ff0cfbde66
--- /dev/null
+++ b/www/nginx-module-fancyindex/Makefile
@@ -0,0 +1,36 @@
+PORTNAME=	nginx-module-fancyindex
+DISTVERSION=	0.5.2.20230120
+CATEGORIES=	www
+
+MAINTAINER=	joneum@FreeBSD.org
+COMMENT=	Sources of the fancyindex module for the NGINX ports
+WWW=		https://github.com/aperezdc/ngx-fancyindex
+
+LICENSE=	BSD2CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	aperezdc
+GH_PROJECT=	ngx-fancyindex
+GH_TAGNAME=	cbc0d3f
+
+NO_ARCH=	yes
+NO_BUILD=	yes
+
+SUB_FILES=	pkg-message
+
+_MODDIR=	share/nginx/modules/${PORTNAME}
+MODULESDIR=	${PREFIX}/${_MODDIR}
+
+_MODFILES=	ngx_http_fancyindex_module.c \
+		template.h
+
+PLIST_FILES=	${_MODDIR}/config \
+		${_MODFILES:S!^!${_MODDIR}/!}
+
+do-install:
+	@${MKDIR} ${STAGEDIR}${MODULESDIR}
+	${INSTALL_DATA} ${WRKSRC}/config ${STAGEDIR}${MODULESDIR}
+	${INSTALL_DATA} ${_MODFILES:S!^!${WRKSRC}/!} ${STAGEDIR}${MODULESDIR}
+
+.include <bsd.port.mk>
diff --git a/www/nginx-module-fancyindex/distinfo b/www/nginx-module-fancyindex/distinfo
new file mode 100644
index 000000000000..b3fa1c9d6fe5
--- /dev/null
+++ b/www/nginx-module-fancyindex/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1792437055
+SHA256 (aperezdc-ngx-fancyindex-0.5.2.20230120-cbc0d3f_GH0.tar.gz) = ded74515205e1e7a3a0175214bbe62ac3a13c21bd428084783d6345520bed782
+SIZE (aperezdc-ngx-fancyindex-0.5.2.20230120-cbc0d3f_GH0.tar.gz) = 30334
diff --git a/www/nginx-module-fancyindex/files/pkg-message.in b/www/nginx-module-fancyindex/files/pkg-message.in
new file mode 100644
index 000000000000..8983139d5956
--- /dev/null
+++ b/www/nginx-module-fancyindex/files/pkg-message.in
@@ -0,0 +1,14 @@
+[
+{ type: install
+  message: <<EOM
+This package contains the sources of the fancyindex module only.  It does not
+install a loadable module.
+
+The module itself is built by the nginx ports.  To use it, build www/nginx,
+www/nginx-devel or www/freenginx with the HTTP_FANCYINDEX option enabled.
+Those ports pick the sources up from
+%%PREFIX%%/share/nginx/modules/nginx-module-fancyindex
+and produce ngx_http_fancyindex_module.so.
+EOM
+}
+]
diff --git a/www/nginx-module-fancyindex/pkg-descr b/www/nginx-module-fancyindex/pkg-descr
new file mode 100644
index 000000000000..5475a6601f97
--- /dev/null
+++ b/www/nginx-module-fancyindex/pkg-descr
@@ -0,0 +1,7 @@
+The fancyindex module generates directory listings like the built-in
+autoindex module, but the page is built from a template: header and footer
+can be supplied as files, the columns can be sorted, and the listing can be
+styled with a sheet of its own.
+
+This port only installs the module sources.  The module itself is built by
+the nginx ports when their HTTP_FANCYINDEX option is enabled.