Only compile necessary boringssl modules, skip tests
This commit is contained in:
parent
17208eb32a
commit
e28c03f58b
3
.SRCINFO
3
.SRCINFO
|
@ -1,7 +1,7 @@
|
||||||
pkgbase = nginx-quic
|
pkgbase = nginx-quic
|
||||||
pkgdesc = Lightweight HTTP server and IMAP/POP3 proxy server, HTTP/3 QUIC branch
|
pkgdesc = Lightweight HTTP server and IMAP/POP3 proxy server, HTTP/3 QUIC branch
|
||||||
pkgver = 1.21.3
|
pkgver = 1.21.3
|
||||||
pkgrel = 1
|
pkgrel = 2
|
||||||
url = https://nginx.org
|
url = https://nginx.org
|
||||||
install = nginx.install
|
install = nginx.install
|
||||||
arch = i686
|
arch = i686
|
||||||
|
@ -41,6 +41,7 @@ pkgname = nginx-quic
|
||||||
|
|
||||||
pkgname = nginx-quic-src
|
pkgname = nginx-quic-src
|
||||||
pkgdesc = Source code of nginx-quic 1.21.3, useful for building modules
|
pkgdesc = Source code of nginx-quic 1.21.3, useful for building modules
|
||||||
|
arch = any
|
||||||
depends =
|
depends =
|
||||||
provides = nginx-src
|
provides = nginx-src
|
||||||
provides = nginx-mainline-src
|
provides = nginx-mainline-src
|
||||||
|
|
7
PKGBUILD
7
PKGBUILD
|
@ -8,7 +8,7 @@ _pkgbase=nginx
|
||||||
pkgbase=nginx-quic
|
pkgbase=nginx-quic
|
||||||
pkgname=(nginx-quic nginx-quic-src)
|
pkgname=(nginx-quic nginx-quic-src)
|
||||||
pkgver=1.21.3
|
pkgver=1.21.3
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc='Lightweight HTTP server and IMAP/POP3 proxy server, HTTP/3 QUIC branch'
|
pkgdesc='Lightweight HTTP server and IMAP/POP3 proxy server, HTTP/3 QUIC branch'
|
||||||
arch=('i686' 'x86_64')
|
arch=('i686' 'x86_64')
|
||||||
url='https://nginx.org'
|
url='https://nginx.org'
|
||||||
|
@ -78,6 +78,7 @@ _quic_flags=(
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
# Backup pristine version of nginx source for -src package
|
# Backup pristine version of nginx source for -src package
|
||||||
|
test -d ${srcdir}/${pkgname}-src && rm -r ${srcdir}/${pkgname}-src
|
||||||
cp -r ${srcdir}/${pkgname} ${srcdir}/${pkgname}-src
|
cp -r ${srcdir}/${pkgname} ${srcdir}/${pkgname}-src
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -91,7 +92,7 @@ build() {
|
||||||
export CFLAGS="$CFLAGS -fPIC -Wno-stringop-overflow -Wno-array-parameter"
|
export CFLAGS="$CFLAGS -fPIC -Wno-stringop-overflow -Wno-array-parameter"
|
||||||
|
|
||||||
cd ${srcdir}/boringssl
|
cd ${srcdir}/boringssl
|
||||||
mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release ../ && make
|
mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release ../ && make crypto ssl
|
||||||
cd ${srcdir}/boringssl
|
cd ${srcdir}/boringssl
|
||||||
mkdir -p .openssl/lib && cd .openssl && ln -s ../include . && cd ../
|
mkdir -p .openssl/lib && cd .openssl && ln -s ../include . && cd ../
|
||||||
cp ${srcdir}/boringssl/build/crypto/libcrypto.a ${srcdir}/boringssl/build/ssl/libssl.a .openssl/lib && cd ..
|
cp ${srcdir}/boringssl/build/crypto/libcrypto.a ${srcdir}/boringssl/build/ssl/libssl.a .openssl/lib && cd ..
|
||||||
|
@ -163,11 +164,13 @@ package_nginx-quic() {
|
||||||
|
|
||||||
package_nginx-quic-src() {
|
package_nginx-quic-src() {
|
||||||
pkgdesc="Source code of nginx-quic $pkgver, useful for building modules"
|
pkgdesc="Source code of nginx-quic $pkgver, useful for building modules"
|
||||||
|
arch=('any')
|
||||||
provides=('nginx-src' 'nginx-mainline-src')
|
provides=('nginx-src' 'nginx-mainline-src')
|
||||||
conflicts=($_pkgbase-src)
|
conflicts=($_pkgbase-src)
|
||||||
depends=()
|
depends=()
|
||||||
backup=()
|
backup=()
|
||||||
install -d "$pkgdir/usr/src"
|
install -d "$pkgdir/usr/src"
|
||||||
|
test -d "$pkgdir/usr/src/nginx" && rm -r "$pkgdir/usr/src/nginx"
|
||||||
cp -r ${srcdir}/${pkgname} "$pkgdir/usr/src/nginx"
|
cp -r ${srcdir}/${pkgname} "$pkgdir/usr/src/nginx"
|
||||||
# Link the 'configure' script to its location in release tarballs,
|
# Link the 'configure' script to its location in release tarballs,
|
||||||
# as this is where modules expect it
|
# as this is where modules expect it
|
||||||
|
|
Loading…
Reference in New Issue