From 5a83bac6a997f551af88e4bc462e433cdc693ba4 Mon Sep 17 00:00:00 2001 From: Dominic Ricottone Date: Thu, 28 Mar 2024 20:15:40 -0500 Subject: [PATCH] WIP: nginx-dav-ext-module Does not work currently. --- src/nginx-dav-ext-module/APKBUILD | 47 +++++++++++++++++++ src/nginx-dav-ext-module/Makefile | 5 ++ .../src/nginx-1.25.4.tar.gz | 1 + 3 files changed, 53 insertions(+) create mode 100644 src/nginx-dav-ext-module/APKBUILD create mode 100644 src/nginx-dav-ext-module/Makefile create mode 120000 src/nginx-dav-ext-module/src/nginx-1.25.4.tar.gz diff --git a/src/nginx-dav-ext-module/APKBUILD b/src/nginx-dav-ext-module/APKBUILD new file mode 100644 index 0000000..f8a27bf --- /dev/null +++ b/src/nginx-dav-ext-module/APKBUILD @@ -0,0 +1,47 @@ +pkgname=nginx-mod-http-dav-ext +pkgver=3.0.0 +pkgrel=0 +pkgdesc="Nginx module for WebDAV support" +url="https://github.com/arut/nginx-dav-ext-module" +arch="all" +license="BSD-2-Clause" +depends="nginx" +makedepends=" + linux-headers + openssl-dev + pcre2-dev + zlib-dev + openssl + abuild + musl-dev + libxslt-dev + libxml2-utils + make + gcc + unzip + xz + g++ + coreutils +" +source=" + nginx-1.25.4.tar.gz::https://nginx.org/download/nginx-1.25.4.tar.gz + nginx-dav-ext-module-$pkgver.tar.gz::https://github.com/arut/nginx-dav-ext-module/archive/v$pkgver.gz +" + +options="!check" + +build() { + cd "$srcdir"/nginx-1.25.4/ + ./configure \ + --with-compat \ + --with-http_dav_module \ + --add-dynamic-module="$srcdir"/nginx-dav-ext-module-$pkgver + make modules +} + +package() { + install -Dm755 "$srcdir"/nginx-1.25.4/objs/ngx_http_dav_ext_module.so \ + "$pkgdir"/etc/nginx/modules/ +} + + diff --git a/src/nginx-dav-ext-module/Makefile b/src/nginx-dav-ext-module/Makefile new file mode 100644 index 0000000..9135f53 --- /dev/null +++ b/src/nginx-dav-ext-module/Makefile @@ -0,0 +1,5 @@ + + +version: + docker run --rm -it nginx:alpine sh -c 'apk list -i nginx 2>/dev/null | sed "s/^nginx-\([0-9.]\+\)-.*$$/\1/"' + diff --git a/src/nginx-dav-ext-module/src/nginx-1.25.4.tar.gz b/src/nginx-dav-ext-module/src/nginx-1.25.4.tar.gz new file mode 120000 index 0000000..844468f --- /dev/null +++ b/src/nginx-dav-ext-module/src/nginx-1.25.4.tar.gz @@ -0,0 +1 @@ +/var/cache/distfiles/nginx-1.25.4.tar.gz \ No newline at end of file -- 2.45.2