Date: Wednesday, October 26, 2022 @ 22:42:38
Author: mtorromeo
Revision: 1337922
archrelease: copy trunk to community-x86_64
Added:
nginx-mod-njs/repos/community-x86_64/PKGBUILD
(from rev 1337921, nginx-mod-njs/trunk/PKGBUILD)
Deleted:
nginx-mod-njs/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 108 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 54 insertions(+), 54 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-10-26 22:42:32 UTC (rev 1337921)
+++ PKGBUILD 2022-10-26 22:42:38 UTC (rev 1337922)
@@ -1,54 +0,0 @@
-# Maintainer: Massimiliano Torromeo <[email protected]>
-
-pkgname=nginx-mod-njs
-pkgver=0.7.8 # https://hg.nginx.org/njs/tags
-pkgrel=1
-
-_modname="${pkgname#nginx-mod-}"
-
-pkgdesc='nginScript module for nginx'
-arch=('x86_64')
-depends=('nginx')
-makedepends=('nginx-src')
-url="https://nginx.org/en/docs/njs_about.html"
-license=('CUSTOM')
-
-source=(njs-$pkgver.tar.gz::https://hg.nginx.org/njs/archive/$pkgver.tar.gz)
-sha256sums=('d4f8e04522f1ef520682469d3ab3afae04ead1d7108f4b13e02a66c25675e724')
-
-prepare() {
- mkdir -p build
- cd build
- ln -sf /usr/src/nginx/auto
- ln -sf /usr/src/nginx/src
-}
-
-build() {
- cd "$srcdir/njs-$pkgver"
- CFLAGS="$CFLAGS -Wno-dangling-pointer" ./configure
- make njs
-
- # next configure cleans the build directory
- mv build/njs ../build/
-
- cd "$srcdir/build"
- /usr/src/nginx/configure \
- --with-compat \
- --with-stream \
- --with-http_ssl_module \
- --with-http_v2_module \
- --add-dynamic-module=../njs-$pkgver/nginx
- make modules
-}
-
-package() {
- install -Dm644 "$srcdir"/njs-$pkgver/LICENSE \
- "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-
- install -Dm755 build/njs "$pkgdir"/usr/bin/njs
-
- cd build/objs
- for mod in *.so; do
- install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod
- done
-}
Copied: nginx-mod-njs/repos/community-x86_64/PKGBUILD (from rev 1337921,
nginx-mod-njs/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-10-26 22:42:38 UTC (rev 1337922)
@@ -0,0 +1,54 @@
+# Maintainer: Massimiliano Torromeo <[email protected]>
+
+pkgname=nginx-mod-njs
+pkgver=0.7.8 # https://hg.nginx.org/njs/tags
+pkgrel=2
+
+_modname="${pkgname#nginx-mod-}"
+
+pkgdesc='nginScript module for nginx'
+arch=('x86_64')
+depends=('nginx')
+makedepends=('nginx-src')
+url="https://nginx.org/en/docs/njs_about.html"
+license=('CUSTOM')
+
+source=(njs-$pkgver.tar.gz::https://hg.nginx.org/njs/archive/$pkgver.tar.gz)
+sha256sums=('d4f8e04522f1ef520682469d3ab3afae04ead1d7108f4b13e02a66c25675e724')
+
+prepare() {
+ mkdir -p build
+ cd build
+ ln -sf /usr/src/nginx/auto
+ ln -sf /usr/src/nginx/src
+}
+
+build() {
+ cd "$srcdir/njs-$pkgver"
+ CFLAGS="$CFLAGS -Wno-dangling-pointer" ./configure
+ make njs
+
+ # next configure cleans the build directory
+ mv build/njs ../build/
+
+ cd "$srcdir/build"
+ /usr/src/nginx/configure \
+ --with-compat \
+ --with-stream \
+ --with-http_ssl_module \
+ --with-http_v2_module \
+ --add-dynamic-module=../njs-$pkgver/nginx
+ make modules
+}
+
+package() {
+ install -Dm644 "$srcdir"/njs-$pkgver/LICENSE \
+ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+ install -Dm755 build/njs "$pkgdir"/usr/bin/njs
+
+ cd build/objs
+ for mod in *.so; do
+ install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod
+ done
+}