Build against -src
This commit is contained in:
9
.SRCINFO
9
.SRCINFO
@@ -1,15 +1,14 @@
|
|||||||
pkgbase = nginx-mainline-mod-vts
|
pkgbase = nginx-mainline-mod-vts
|
||||||
pkgdesc = Nginx virtual host traffic status module (module for mainline nginx)
|
pkgdesc = Nginx virtual host traffic status module (module for mainline nginx)
|
||||||
pkgver = 0.2.1
|
pkgver = 0.2.1
|
||||||
pkgrel = 2
|
pkgrel = 3
|
||||||
url = https://github.com/vozlt/nginx-module-vts
|
url = https://github.com/vozlt/nginx-module-vts
|
||||||
arch = i686
|
arch = i686
|
||||||
arch = x86_64
|
arch = x86_64
|
||||||
license = BSD
|
license = BSD
|
||||||
source = https://nginx.org/download/nginx-1.23.2.tar.gz
|
makedepends = nginx-mainline-src
|
||||||
source = nginx-mainline-mod-vts-0.2.1.tar.gz::https://github.com/vozlt/nginx-module-vts/archive/v0.2.1.tar.gz
|
source = nginx-module-vts-0.2.1.tar.gz::https://github.com/vozlt/nginx-module-vts/archive/v0.2.1.tar.gz
|
||||||
sha256sums = a80cc272d3d72aaee70aa8b517b4862a635c0256790434dbfc4d618a999b0b46
|
|
||||||
sha256sums = 1a63d78d3ae4df18b3a57a616eeee006cdc0bd71aa7ea2947046004b123704f4
|
sha256sums = 1a63d78d3ae4df18b3a57a616eeee006cdc0bd71aa7ea2947046004b123704f4
|
||||||
|
|
||||||
pkgname = nginx-mainline-mod-vts
|
pkgname = nginx-mainline-mod-vts
|
||||||
depends = nginx-mainline=1.23.2
|
depends = nginx-mainline
|
||||||
|
29
PKGBUILD
29
PKGBUILD
@@ -3,37 +3,42 @@
|
|||||||
|
|
||||||
pkgname=nginx-mainline-mod-vts
|
pkgname=nginx-mainline-mod-vts
|
||||||
pkgver=0.2.1
|
pkgver=0.2.1
|
||||||
pkgrel=2
|
pkgrel=3
|
||||||
|
|
||||||
_modname="${pkgname#nginx-mainline-mod-}"
|
_modname="nginx-module-${pkgname#nginx-mainline-mod-}"
|
||||||
_nginxver=1.23.2
|
|
||||||
|
|
||||||
pkgdesc='Nginx virtual host traffic status module (module for mainline nginx)'
|
pkgdesc='Nginx virtual host traffic status module (module for mainline nginx)'
|
||||||
arch=('i686' 'x86_64')
|
arch=('i686' 'x86_64')
|
||||||
depends=() # the build process doesn't require or use installed nginx, so add the dependency in package() to break the cycle
|
depends=() # the build process doesn't require or use installed nginx, so add the dependency in package() to break the cycle
|
||||||
|
makedepends=('nginx-mainline-src')
|
||||||
url="https://github.com/vozlt/nginx-module-vts"
|
url="https://github.com/vozlt/nginx-module-vts"
|
||||||
license=('BSD')
|
license=('BSD')
|
||||||
|
|
||||||
source=(
|
source=(
|
||||||
https://nginx.org/download/nginx-$_nginxver.tar.gz
|
$_modname-$pkgver.tar.gz::https://github.com/vozlt/nginx-module-vts/archive/v$pkgver.tar.gz
|
||||||
$pkgname-$pkgver.tar.gz::https://github.com/vozlt/nginx-module-vts/archive/v$pkgver.tar.gz
|
|
||||||
)
|
)
|
||||||
|
|
||||||
sha256sums=('a80cc272d3d72aaee70aa8b517b4862a635c0256790434dbfc4d618a999b0b46'
|
sha256sums=('1a63d78d3ae4df18b3a57a616eeee006cdc0bd71aa7ea2947046004b123704f4')
|
||||||
'1a63d78d3ae4df18b3a57a616eeee006cdc0bd71aa7ea2947046004b123704f4')
|
|
||||||
|
prepare() {
|
||||||
|
mkdir -p build
|
||||||
|
cd build
|
||||||
|
ln -sf /usr/src/nginx/auto
|
||||||
|
ln -sf /usr/src/nginx/src
|
||||||
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$srcdir"/nginx-$_nginxver
|
cd build
|
||||||
./configure --with-compat --add-dynamic-module=../nginx-module-vts-$pkgver
|
/usr/src/nginx/configure --with-compat --add-dynamic-module=../$_modname-$pkgver
|
||||||
make modules
|
make modules
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
depends=("nginx-mainline=$_nginxver")
|
depends=("nginx-mainline")
|
||||||
install -Dm644 "$srcdir"/nginx-module-vts-$pkgver/LICENSE \
|
install -Dm644 "$srcdir"/$_modname-$pkgver/LICENSE \
|
||||||
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
||||||
|
|
||||||
cd "$srcdir"/nginx-$_nginxver/objs
|
cd build/objs
|
||||||
for mod in *.so; do
|
for mod in *.so; do
|
||||||
install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod
|
install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod
|
||||||
done
|
done
|
||||||
|
Reference in New Issue
Block a user