commit 9bf3f21f2ad01c4ade81b1b99427041de7c2325d Author: 4679 Date: Sat Dec 5 10:15:23 2015 +0800 init diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..c5bd6a3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,50 @@ +pkgbase = nginx-mainline-boringssl + pkgdesc = lightweight HTTP server, statically linked against BoringSSL. + pkgver = 1.9.7 + pkgrel = 2 + url = http://nginx.org + arch = i686 + arch = x86_64 + license = custom + makedepends = libxslt + makedepends = gd + makedepends = git + makedepends = cmake + depends = pcre + depends = zlib + depends = pam + depends = gd + depends = hardening-wrapper + depends = libxslt + depends = go + provides = nginx + conflicts = nginx + conflicts = nginx-libressl + conflicts = nginx-unstable + conflicts = nginx-svn + conflicts = nginx-devel + conflicts = nginx-custom-dev + conflicts = nginx-full + backup = etc/nginx/nginx.conf + backup = etc/nginx/koi-win + backup = etc/nginx/koi-utf + backup = etc/nginx/win-utf + backup = etc/nginx/mime.types + backup = etc/nginx/fastcgi.conf + backup = etc/nginx/fastcgi_params + backup = etc/nginx/scgi_params + backup = etc/nginx/uwsgi_params + backup = etc/logrotate.d/nginx + source = nginx.conf + source = nginx.logrotate + source = nginx.service + source = http://nginx.org/download/nginx-1.9.7.tar.gz + source = https://dn-4679kun.qbox.me/openssl.patch + sha256sums = 8d8e314da10411b29157066ea313fc080a145d2075df0c99a1d500ffc7e8b7d1 + sha256sums = adcf6507abb2d4edbc50bd92f498ba297927eed0460d71633df94f79637aa786 + sha256sums = 225228970d779e1403ba4314e3cd8d0d7d16f8c6d48d7a22f8384db040eb0bdf + sha256sums = 794bd217affdfce1c6263d9199c3961f387a2df9d57dcb42876faaf41c1748d5 + sha256sums = SKIP + +pkgname = nginx-mainline-boringssl + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..1582247 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,119 @@ +#base on aur/nginx-mainline-libressl + +_pkgname="nginx" +_user="www" +_group="www" +_doc_root="/usr/share/${_pkgname}/http" +_sysconf_path="etc" +_conf_path="${_sysconf_path}/${_pkgname}" +_tmp_path="/var/spool/${_pkgname}" +_pid_path="/run" +_lock_path="/var/lock" +_log_path="/var/log/${_pkgname}" + + +pkgname=nginx-mainline-boringssl +pkgver=1.9.7 +pkgrel=2 +pkgdesc="lightweight HTTP server, statically linked against BoringSSL." +arch=('i686' 'x86_64') + +depends=('pcre' 'zlib' 'pam' 'gd' 'hardening-wrapper' 'libxslt' 'go') +makedepends=( + 'libxslt' + 'gd' + 'git' + 'cmake' +) + +url="http://nginx.org" +license=('custom') +conflicts=('nginx' 'nginx-libressl' 'nginx-unstable' 'nginx-svn' 'nginx-devel' 'nginx-custom-dev' 'nginx-full') +provides=('nginx') +backup=("${_conf_path}/nginx.conf" + "${_conf_path}/koi-win" + "${_conf_path}/koi-utf" + "${_conf_path}/win-utf" + "${_conf_path}/mime.types" + "${_conf_path}/fastcgi.conf" + "${_conf_path}/fastcgi_params" + "${_conf_path}/scgi_params" + "${_conf_path}/uwsgi_params" + "etc/logrotate.d/nginx") + +source=( "nginx.conf" + "nginx.logrotate" + "nginx.service" + "http://nginx.org/download/nginx-$pkgver.tar.gz" + "https://dn-4679kun.qbox.me/openssl.patch" +) + +sha256sums=('8d8e314da10411b29157066ea313fc080a145d2075df0c99a1d500ffc7e8b7d1' + 'adcf6507abb2d4edbc50bd92f498ba297927eed0460d71633df94f79637aa786' + '225228970d779e1403ba4314e3cd8d0d7d16f8c6d48d7a22f8384db040eb0bdf' + '794bd217affdfce1c6263d9199c3961f387a2df9d57dcb42876faaf41c1748d5' + 'SKIP') + +build() { + local _src_dir="${srcdir}/${_pkgname}-${pkgver}" + + export CFLAGS="-Wno-error" + git clone https://boringssl.googlesource.com/boringssl + cd boringssl + mkdir build && cd build && cmake ../ && make && cd ../ + mkdir -p .openssl/lib && cd .openssl && ln -s ../include . && cd ../ + cp build/crypto/libcrypto.a build/ssl/libssl.a .openssl/lib && cd .. + + cd $_src_dir + + ./configure \ + --prefix="/${_conf_path}" \ + --conf-path="/${_conf_path}/nginx.conf" \ + --sbin-path="/usr/bin/${_pkgname}" \ + --pid-path="${_pid_path}/${_pkgname}.pid" \ + --lock-path=${_pid_path}/${_pkgname}.lock \ + --http-client-body-temp-path=${_tmp_path}/client_body_temp \ + --http-proxy-temp-path=${_tmp_path}/proxy_temp \ + --http-fastcgi-temp-path=${_tmp_path}/fastcgi_temp \ + --http-uwsgi-temp-path=${_tmp_path}/uwsgi_temp \ + --http-scgi-temp-path=${_tmp_path}scgi_temp \ + --http-log-path=${_log_path}/access.log \ + --error-log-path=${_log_path}/error.log \ + --user=${_user} \ + --group=${_group} \ + --with-ipv6 \ + --with-openssl=../boringssl \ + --with-threads \ + --with-http_ssl_module \ + --with-http_gzip_static_module \ + --with-http_realip_module \ + --with-http_v2_module \ + --with-file-aio \ + --with-pcre-jit \ + --with-stream + + touch ../boringssl/.openssl/include/openssl/ssl.h + patch -p0 < ../openssl.patch + + make +} + +package() { + cd "${srcdir}/${_pkgname}-${pkgver}" + make DESTDIR="$pkgdir/" install + + sed -i -e "s/\