Package Details: nginx-mod-fancyindex 0.4.4-2

Git Clone URL: https://aur.archlinux.org/nginx-mod-fancyindex.git (read-only, click to copy)
Package Base: nginx-mod-fancyindex
Description: Fancy indexes module for the Nginx web server
Upstream URL: https://github.com/aperezdc/ngx-fancyindex
Licenses: BSD
Submitter: markzz
Maintainer: markzz
Last Packager: markzz
Votes: 4
Popularity: 0.000060
First Submitted: 2017-09-23 03:09
Last Updated: 2020-04-24 14:04

Latest Comments

ahmubashshir commented on 2020-04-25 17:41

You can use the attached patch to use nginx-src.

From 3a26b35772e71f7eeacedba58110efeebb72a7e1 Mon Sep 17 00:00:00 2001
From: Mubashshir <ahmubashshir@gmail.com>
Date: Sat, 25 Apr 2020 23:08:10 +0600
Subject: [PATCH] Use nginx-src from repository.

---
 PKGBUILD | 23 +++++++++++------------
 1 file changed, 11 insertions(+), 12 deletions(-)

diff --git a/PKGBUILD b/PKGBUILD
index 697271d..c12b97b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,24 +6,23 @@ pkgver=0.4.4
 pkgrel=2

 _modname="${pkgname#nginx-mod-}"
-_nginxver=1.18.0
-
+_nginxver=$(sed -nE '0,/.*nginx [[:digit:].]+.*/ s/.*nginx ([[:digit:].]+).*/\1/gp' /usr/src/nginx/CHANGES)
 pkgdesc='Fancy indexes module for the Nginx web server'
 arch=('i686' 'x86_64')
-depends=('nginx')
+depends=("nginx=$_nginxver")
+makedepends=('nginx-src')
 url="https://github.com/aperezdc/ngx-fancyindex"
 license=('BSD')

-source=(https://nginx.org/download/nginx-$_nginxver.tar.gz{,.asc}
-        https://github.com/aperezdc/ngx-$_modname/archive/v$pkgver.tar.gz
-)
+source=(https://github.com/aperezdc/ngx-$_modname/archive/v$pkgver.tar.gz)
 validpgpkeys=(B0F4253373F8F6F510D42178520A9993A1C052F8) # Maxim Dounin <mdounin@mdounin.ru>
-md5sums=('b2d33d24d89b8b1f87ff5d251aa27eb8'
-         'SKIP'
-         'dfd302335124520de95a7028f56d657b')
-
+md5sums=('dfd302335124520de95a7028f56d657b')
+prepare()
+{
+   cp -af /usr/src/nginx "$srcdir"/
+}
 build() {
-  cd "$srcdir"/nginx-$_nginxver
+  cd "$srcdir"/nginx
   ./configure --with-compat --add-dynamic-module=../ngx-$_modname-$pkgver
   make modules
 }
@@ -32,7 +31,7 @@ package() {
   install -Dm644 "$srcdir/"ngx-$_modname-$pkgver/LICENSE \
                  "$pkgdir"/usr/share/licenses/$pkgname/LICENSE

-  cd "$srcdir"/nginx-$_nginxver/objs
+  cd "$srcdir"/nginx/objs
   for mod in *.so; do
     install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod
   done
-- 
2.26.2

Martchus commented on 2020-04-24 16:29

You might want to update the PKGBUILD to utilize nginx-src similarly to https://github.com/Martchus/PKGBUILDs/commit/4f0976dbf490755082fd9a1add5c6f2b8105f88f.

akiirui commented on 2019-12-09 20:18

@pan93412 Don't flag out-of-date for this package, because this is stable version module. nginx 1.17.6 is mainline version, you need view to: AUR/nginx-mainline-mod-fancyindex

markzz commented on 2019-08-21 13:33

There's also a nice convenience script in pacman-contrib called updpkgsums that will update the checksums for you.

steadfasterX commented on 2019-08-21 06:34

module "/usr/lib/nginx/modules/ngx_http_fancyindex_module.so" version 1016000 instead of 1016001 in /etc/nginx/nginx.conf:2

-> workaround until the pkg gets its update:

  1. change: _nginxver=1.16.1
  2. set MD5 to skip (sorry was too lazy to download and get the md5): md5sums=('SKIP' 'SKIP' 'a0052f0377700b18dd53d96d29f47db8')

markzz commented on 2018-04-30 15:34

AlirezaieS: Yes, any PKGBUILD that verifies PGP signatures requires the signature's key to be in the keyring of the user that you are running makepkg from.

AlirezaieS commented on 2018-04-30 11:38

looks like I need to do gpg --receive-keys 520A9993A1C052F8

Martchus commented on 2018-04-22 16:49

Seems I unnecessarily created a new package for this when migrating my nginx-custom package to the dynamic approach: https://github.com/Martchus/PKGBUILDs/commit/fa2243382f586d3ec7e2bfa120940bd754285b2f

If you like, you can add me as co-maintainer. I have to update/rebuild my other NGINX modules anyways. One more package shouldn't make a difference.

The binary repository I provided for nginx-custom will include also include this package when NGINX 1.14 is out: https://martchus.no-ip.biz/repo/arch/ownstuff