diff --git a/srcpkgs/nginx/files/ngx_auto_config.h.riscv64 b/srcpkgs/nginx/files/ngx_auto_config.h.riscv64 new file mode 100644 index 00000000000..fb49c8d012a --- /dev/null +++ b/srcpkgs/nginx/files/ngx_auto_config.h.riscv64 @@ -0,0 +1,629 @@ +#define NGX_CONFIGURE " --prefix=/etc/nginx --conf-path=/etc/nginx/nginx.conf --sbin-path=/usr/bin/nginx --modules-path=/usr/lib/nginx/modules --pid-path=/run/nginx.pid --lock-path=/var/lock/nginx.lock --user=nginx --group=nginx --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --http-client-body-temp-path=/var/lib/nginx/tmp/client-body --http-proxy-temp-path=/var/lib/nginx/tmp/proxy --http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi --http-scgi-temp-path=/var/lib/nginx/tmp/scgi --http-uwsgi-temp-path=/var/lib/nginx/tmp/uwsgi --with-compat --with-file-aio --with-http_dav_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_realip_module --with-http_ssl_module --with-http_slice_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-http_xslt_module=dynamic --with-http_geoip_module=dynamic --with-http_perl_module=dynamic --with-stream=dynamic --with-stream_geoip_module=dynamic --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module --with-mail --with-mail_ssl_module --with-pcre-jit --with-threads --add-dynamic-module=../njs-0.7.7/nginx" + +#ifndef NGX_HAVE_GCC_ATOMIC +#define NGX_HAVE_GCC_ATOMIC 1 +#endif + + +#ifndef NGX_HAVE_C99_VARIADIC_MACROS +#define NGX_HAVE_C99_VARIADIC_MACROS 1 +#endif + + +#ifndef NGX_HAVE_GCC_VARIADIC_MACROS +#define NGX_HAVE_GCC_VARIADIC_MACROS 1 +#endif + + +#ifndef NGX_HAVE_GCC_BSWAP64 +#define NGX_HAVE_GCC_BSWAP64 1 +#endif + + +#ifndef NGX_HAVE_EPOLL +#define NGX_HAVE_EPOLL 1 +#endif + + +#ifndef NGX_HAVE_CLEAR_EVENT +#define NGX_HAVE_CLEAR_EVENT 1 +#endif + + +#ifndef NGX_HAVE_EPOLLRDHUP +#define NGX_HAVE_EPOLLRDHUP 1 +#endif + + +#ifndef NGX_HAVE_EPOLLEXCLUSIVE +#define NGX_HAVE_EPOLLEXCLUSIVE 1 +#endif + + +#ifndef NGX_HAVE_EVENTFD +#define NGX_HAVE_EVENTFD 1 +#endif + + +#ifndef NGX_HAVE_SYS_EVENTFD_H +#define NGX_HAVE_SYS_EVENTFD_H 1 +#endif + + +#ifndef NGX_HAVE_O_PATH +#define NGX_HAVE_O_PATH 1 +#endif + + +#ifndef NGX_HAVE_SENDFILE +#define NGX_HAVE_SENDFILE 1 +#endif + + +#ifndef NGX_HAVE_SENDFILE64 +#define NGX_HAVE_SENDFILE64 1 +#endif + + +#ifndef NGX_HAVE_PR_SET_DUMPABLE +#define NGX_HAVE_PR_SET_DUMPABLE 1 +#endif + + +#ifndef NGX_HAVE_PR_SET_KEEPCAPS +#define NGX_HAVE_PR_SET_KEEPCAPS 1 +#endif + + +#ifndef NGX_HAVE_CAPABILITIES +#define NGX_HAVE_CAPABILITIES 1 +#endif + + +#ifndef NGX_HAVE_GNU_CRYPT_R +#define NGX_HAVE_GNU_CRYPT_R 1 +#endif + + +#ifndef NGX_ALIGNMENT +#define NGX_ALIGNMENT 16 +#endif + + +#ifndef NGX_CPU_CACHE_LINE +#define NGX_CPU_CACHE_LINE 32 +#endif + + +#define NGX_KQUEUE_UDATA_T (void *) + + +#ifndef NGX_HAVE_POSIX_FADVISE +#define NGX_HAVE_POSIX_FADVISE 1 +#endif + + +#ifndef NGX_HAVE_O_DIRECT +#define NGX_HAVE_O_DIRECT 1 +#endif + + +#ifndef NGX_HAVE_ALIGNED_DIRECTIO +#define NGX_HAVE_ALIGNED_DIRECTIO 1 +#endif + + +#ifndef NGX_HAVE_STATFS +#define NGX_HAVE_STATFS 1 +#endif + + +#ifndef NGX_HAVE_STATVFS +#define NGX_HAVE_STATVFS 1 +#endif + + +#ifndef NGX_HAVE_DLOPEN +#define NGX_HAVE_DLOPEN 1 +#endif + + +#ifndef NGX_HAVE_SCHED_YIELD +#define NGX_HAVE_SCHED_YIELD 1 +#endif + + +#ifndef NGX_HAVE_SCHED_SETAFFINITY +#define NGX_HAVE_SCHED_SETAFFINITY 1 +#endif + + +#ifndef NGX_HAVE_REUSEPORT +#define NGX_HAVE_REUSEPORT 1 +#endif + + +#ifndef NGX_HAVE_TRANSPARENT_PROXY +#define NGX_HAVE_TRANSPARENT_PROXY 1 +#endif + + +#ifndef NGX_HAVE_IP_BIND_ADDRESS_NO_PORT +#define NGX_HAVE_IP_BIND_ADDRESS_NO_PORT 1 +#endif + + +#ifndef NGX_HAVE_IP_PKTINFO +#define NGX_HAVE_IP_PKTINFO 1 +#endif + + +#ifndef NGX_HAVE_IPV6_RECVPKTINFO +#define NGX_HAVE_IPV6_RECVPKTINFO 1 +#endif + + +#ifndef NGX_HAVE_DEFERRED_ACCEPT +#define NGX_HAVE_DEFERRED_ACCEPT 1 +#endif + + +#ifndef NGX_HAVE_KEEPALIVE_TUNABLE +#define NGX_HAVE_KEEPALIVE_TUNABLE 1 +#endif + + +#ifndef NGX_HAVE_TCP_FASTOPEN +#define NGX_HAVE_TCP_FASTOPEN 1 +#endif + + +#ifndef NGX_HAVE_TCP_INFO +#define NGX_HAVE_TCP_INFO 1 +#endif + + +#ifndef NGX_HAVE_ACCEPT4 +#define NGX_HAVE_ACCEPT4 1 +#endif + + +#ifndef NGX_HAVE_FILE_AIO +#define NGX_HAVE_FILE_AIO 1 +#endif + + +#ifndef NGX_HAVE_EVENTFD +#define NGX_HAVE_EVENTFD 1 +#endif + + +#ifndef NGX_HAVE_SYS_EVENTFD_H +#define NGX_HAVE_SYS_EVENTFD_H 1 +#endif + + +#ifndef NGX_HAVE_UNIX_DOMAIN +#define NGX_HAVE_UNIX_DOMAIN 1 +#endif + + +#ifndef NGX_PTR_SIZE +#define NGX_PTR_SIZE 8 +#endif + + +#ifndef NGX_SIG_ATOMIC_T_SIZE +#define NGX_SIG_ATOMIC_T_SIZE 4 +#endif + + +#ifndef NGX_HAVE_LITTLE_ENDIAN +#define NGX_HAVE_LITTLE_ENDIAN 1 +#endif + + +#ifndef NGX_MAX_SIZE_T_VALUE +#define NGX_MAX_SIZE_T_VALUE 9223372036854775807LL +#endif + + +#ifndef NGX_SIZE_T_LEN +#define NGX_SIZE_T_LEN (sizeof("-9223372036854775808") - 1) +#endif + + +#ifndef NGX_MAX_OFF_T_VALUE +#define NGX_MAX_OFF_T_VALUE 9223372036854775807LL +#endif + + +#ifndef NGX_OFF_T_LEN +#define NGX_OFF_T_LEN (sizeof("-9223372036854775808") - 1) +#endif + + +#ifndef NGX_TIME_T_SIZE +#define NGX_TIME_T_SIZE 8 +#endif + + +#ifndef NGX_TIME_T_LEN +#define NGX_TIME_T_LEN (sizeof("-9223372036854775808") - 1) +#endif + + +#ifndef NGX_MAX_TIME_T_VALUE +#define NGX_MAX_TIME_T_VALUE 9223372036854775807LL +#endif + + +#ifndef NGX_HAVE_INET6 +#define NGX_HAVE_INET6 1 +#endif + + +#ifndef NGX_HAVE_PREAD +#define NGX_HAVE_PREAD 1 +#endif + + +#ifndef NGX_HAVE_PWRITE +#define NGX_HAVE_PWRITE 1 +#endif + + +#ifndef NGX_HAVE_PWRITEV +#define NGX_HAVE_PWRITEV 1 +#endif + + +#ifndef NGX_HAVE_LOCALTIME_R +#define NGX_HAVE_LOCALTIME_R 1 +#endif + + +#ifndef NGX_HAVE_CLOCK_MONOTONIC +#define NGX_HAVE_CLOCK_MONOTONIC 1 +#endif + + +#ifndef NGX_HAVE_POSIX_MEMALIGN +#define NGX_HAVE_POSIX_MEMALIGN 1 +#endif + + +#ifndef NGX_HAVE_MEMALIGN +#define NGX_HAVE_MEMALIGN 1 +#endif + + +#ifndef NGX_HAVE_MAP_ANON +#define NGX_HAVE_MAP_ANON 1 +#endif + + +#ifndef NGX_HAVE_MAP_DEVZERO +#define NGX_HAVE_MAP_DEVZERO 1 +#endif + + +#ifndef NGX_HAVE_SYSVSHM +#define NGX_HAVE_SYSVSHM 1 +#endif + + +#ifndef NGX_HAVE_POSIX_SEM +#define NGX_HAVE_POSIX_SEM 1 +#endif + + +#ifndef NGX_HAVE_MSGHDR_MSG_CONTROL +#define NGX_HAVE_MSGHDR_MSG_CONTROL 1 +#endif + + +#ifndef NGX_HAVE_FIONBIO +#define NGX_HAVE_FIONBIO 1 +#endif + + +#ifndef NGX_HAVE_FIONREAD +#define NGX_HAVE_FIONREAD 1 +#endif + + +#ifndef NGX_HAVE_GMTOFF +#define NGX_HAVE_GMTOFF 1 +#endif + + +#ifndef NGX_HAVE_D_TYPE +#define NGX_HAVE_D_TYPE 1 +#endif + + +#ifndef NGX_HAVE_SC_NPROCESSORS_ONLN +#define NGX_HAVE_SC_NPROCESSORS_ONLN 1 +#endif + + +#ifndef NGX_HAVE_OPENAT +#define NGX_HAVE_OPENAT 1 +#endif + + +#ifndef NGX_HAVE_GETADDRINFO +#define NGX_HAVE_GETADDRINFO 1 +#endif + + +#ifndef NGX_THREADS +#define NGX_THREADS 1 +#endif + + +#ifndef NGX_HTTP_CACHE +#define NGX_HTTP_CACHE 1 +#endif + + +#ifndef NGX_HTTP_GZIP +#define NGX_HTTP_GZIP 1 +#endif + + +#ifndef NGX_HTTP_SSI +#define NGX_HTTP_SSI 1 +#endif + + +#ifndef NGX_HTTP_GZIP +#define NGX_HTTP_GZIP 1 +#endif + + +#ifndef NGX_HTTP_V2 +#define NGX_HTTP_V2 1 +#endif + + +#ifndef NGX_HTTP_HEADERS +#define NGX_HTTP_HEADERS 1 +#endif + + +#ifndef NGX_HTTP_GZIP +#define NGX_HTTP_GZIP 1 +#endif + + +#ifndef NGX_HTTP_DAV +#define NGX_HTTP_DAV 1 +#endif + + +#ifndef NGX_CRYPT +#define NGX_CRYPT 1 +#endif + + +#ifndef NGX_HTTP_REALIP +#define NGX_HTTP_REALIP 1 +#endif + + +#ifndef NGX_HTTP_X_FORWARDED_FOR +#define NGX_HTTP_X_FORWARDED_FOR 1 +#endif + + +#ifndef NGX_HTTP_X_FORWARDED_FOR +#define NGX_HTTP_X_FORWARDED_FOR 1 +#endif + + +#ifndef NGX_HTTP_X_FORWARDED_FOR +#define NGX_HTTP_X_FORWARDED_FOR 1 +#endif + + +#ifndef NGX_HTTP_SSL +#define NGX_HTTP_SSL 1 +#endif + + +#ifndef NGX_HTTP_X_FORWARDED_FOR +#define NGX_HTTP_X_FORWARDED_FOR 1 +#endif + + +#ifndef NGX_HTTP_UPSTREAM_ZONE +#define NGX_HTTP_UPSTREAM_ZONE 1 +#endif + + +#ifndef NGX_STAT_STUB +#define NGX_STAT_STUB 1 +#endif + + +#ifndef NGX_MAIL_SSL +#define NGX_MAIL_SSL 1 +#endif + + +#ifndef NGX_STREAM_SSL +#define NGX_STREAM_SSL 1 +#endif + + +#ifndef NGX_STREAM_UPSTREAM_ZONE +#define NGX_STREAM_UPSTREAM_ZONE 1 +#endif + + +#ifndef NGX_COMPAT +#define NGX_COMPAT 1 +#endif + + +#ifndef NGX_HTTP_GZIP +#define NGX_HTTP_GZIP 1 +#endif + + +#ifndef NGX_HTTP_DAV +#define NGX_HTTP_DAV 1 +#endif + + +#ifndef NGX_HTTP_REALIP +#define NGX_HTTP_REALIP 1 +#endif + + +#ifndef NGX_HTTP_X_FORWARDED_FOR +#define NGX_HTTP_X_FORWARDED_FOR 1 +#endif + + +#ifndef NGX_HTTP_HEADERS +#define NGX_HTTP_HEADERS 1 +#endif + + +#ifndef NGX_HTTP_UPSTREAM_ZONE +#define NGX_HTTP_UPSTREAM_ZONE 1 +#endif + + +#ifndef NGX_STREAM_UPSTREAM_ZONE +#define NGX_STREAM_UPSTREAM_ZONE 1 +#endif + + +#ifndef NGX_PCRE2 +#define NGX_PCRE2 1 +#endif + + +#ifndef NGX_PCRE +#define NGX_PCRE 1 +#endif + + +#ifndef NGX_OPENSSL +#define NGX_OPENSSL 1 +#endif + + +#ifndef NGX_SSL +#define NGX_SSL 1 +#endif + + +#ifndef NGX_ZLIB +#define NGX_ZLIB 1 +#endif + + +#ifndef NGX_HAVE_EXSLT +#define NGX_HAVE_EXSLT 1 +#endif + + +#ifndef NGX_HAVE_PERL_MULTIPLICITY +#define NGX_HAVE_PERL_MULTIPLICITY 1 +#endif + + +#ifndef NGX_HAVE_GEOIP_V6 +#define NGX_HAVE_GEOIP_V6 1 +#endif + + +#ifndef NGX_PREFIX +#define NGX_PREFIX "/etc/nginx/" +#endif + + +#ifndef NGX_CONF_PREFIX +#define NGX_CONF_PREFIX "/etc/nginx/" +#endif + + +#ifndef NGX_SBIN_PATH +#define NGX_SBIN_PATH "/usr/bin/nginx" +#endif + + +#ifndef NGX_CONF_PATH +#define NGX_CONF_PATH "/etc/nginx/nginx.conf" +#endif + + +#ifndef NGX_PID_PATH +#define NGX_PID_PATH "/run/nginx.pid" +#endif + + +#ifndef NGX_LOCK_PATH +#define NGX_LOCK_PATH "/var/lock/nginx.lock" +#endif + + +#ifndef NGX_ERROR_LOG_PATH +#define NGX_ERROR_LOG_PATH "/var/log/nginx/error.log" +#endif + + +#ifndef NGX_HTTP_LOG_PATH +#define NGX_HTTP_LOG_PATH "/var/log/nginx/access.log" +#endif + + +#ifndef NGX_HTTP_CLIENT_TEMP_PATH +#define NGX_HTTP_CLIENT_TEMP_PATH "/var/lib/nginx/tmp/client-body" +#endif + + +#ifndef NGX_HTTP_PROXY_TEMP_PATH +#define NGX_HTTP_PROXY_TEMP_PATH "/var/lib/nginx/tmp/proxy" +#endif + + +#ifndef NGX_HTTP_FASTCGI_TEMP_PATH +#define NGX_HTTP_FASTCGI_TEMP_PATH "/var/lib/nginx/tmp/fastcgi" +#endif + + +#ifndef NGX_HTTP_UWSGI_TEMP_PATH +#define NGX_HTTP_UWSGI_TEMP_PATH "/var/lib/nginx/tmp/uwsgi" +#endif + + +#ifndef NGX_HTTP_SCGI_TEMP_PATH +#define NGX_HTTP_SCGI_TEMP_PATH "/var/lib/nginx/tmp/scgi" +#endif + + +#ifndef NGX_SUPPRESS_WARN +#define NGX_SUPPRESS_WARN 1 +#endif + + +#ifndef NGX_SMP +#define NGX_SMP 1 +#endif + + +#ifndef NGX_USER +#define NGX_USER "nginx" +#endif + + +#ifndef NGX_GROUP +#define NGX_GROUP "nginx" +#endif + diff --git a/srcpkgs/nginx/files/njs_auto_config.h.riscv64 b/srcpkgs/nginx/files/njs_auto_config.h.riscv64 new file mode 100644 index 00000000000..6460d00be3b --- /dev/null +++ b/srcpkgs/nginx/files/njs_auto_config.h.riscv64 @@ -0,0 +1,163 @@ + +/* This file is auto-generated by configure */ + + +#ifndef NJS_LINUX +#define NJS_LINUX 1 +#endif + + +#ifndef NJS_GCC +#define NJS_GCC 1 +#endif + + +#ifndef NJS_TEST262 +#define NJS_TEST262 1 +#endif + + +#ifndef NJS_INT_SIZE +#define NJS_INT_SIZE 4 +#endif + + +#ifndef NJS_UINT_SIZE +#define NJS_UINT_SIZE 4 +#endif + + +#ifndef NJS_PTR_SIZE +#define NJS_PTR_SIZE 8 +#endif + + +#ifndef NJS_UINTPTR_T_SIZE +#define NJS_UINTPTR_T_SIZE 8 +#endif + + +#ifndef NJS_SIZE_T_SIZE +#define NJS_SIZE_T_SIZE 8 +#endif + + +#ifndef NJS_OFF_T_SIZE +#define NJS_OFF_T_SIZE 8 +#endif + + +#ifndef NJS_TIME_T_SIZE +#define NJS_TIME_T_SIZE 8 +#endif + + +#ifndef NJS_BYTE_ORDER +#define NJS_BYTE_ORDER little +#endif + + +#ifndef NJS_HAVE_LITTLE_ENDIAN +#define NJS_HAVE_LITTLE_ENDIAN 1 +#endif + + +#ifndef NJS_HAVE_UNSIGNED_INT128 +#define NJS_HAVE_UNSIGNED_INT128 1 +#endif + + +#ifndef NJS_HAVE_BUILTIN_EXPECT +#define NJS_HAVE_BUILTIN_EXPECT 1 +#endif + + +#ifndef NJS_HAVE_BUILTIN_UNREACHABLE +#define NJS_HAVE_BUILTIN_UNREACHABLE 1 +#endif + + +#ifndef NJS_HAVE_BUILTIN_PREFETCH +#define NJS_HAVE_BUILTIN_PREFETCH 1 +#endif + + +#ifndef NJS_HAVE_BUILTIN_CLZ +#define NJS_HAVE_BUILTIN_CLZ 1 +#endif + + +#ifndef NJS_HAVE_BUILTIN_CLZLL +#define NJS_HAVE_BUILTIN_CLZLL 1 +#endif + + +#ifndef NJS_HAVE_GCC_ATTRIBUTE_VISIBILITY +#define NJS_HAVE_GCC_ATTRIBUTE_VISIBILITY 1 +#endif + + +#ifndef NJS_HAVE_GCC_ATTRIBUTE_MALLOC +#define NJS_HAVE_GCC_ATTRIBUTE_MALLOC 1 +#endif + + +#ifndef NJS_HAVE_GCC_ATTRIBUTE_ALIGNED +#define NJS_HAVE_GCC_ATTRIBUTE_ALIGNED 1 +#endif + + +#ifndef NJS_HAVE_GCC_ATTRIBUTE_PACKED +#define NJS_HAVE_GCC_ATTRIBUTE_PACKED 1 +#endif + + +#ifndef NJS_HAVE_CLOCK_MONOTONIC +#define NJS_HAVE_CLOCK_MONOTONIC 1 +#endif + + +#ifndef NJS_HAVE_TM_GMTOFF +#define NJS_HAVE_TM_GMTOFF 1 +#endif + + +#ifndef NJS_HAVE_POSIX_MEMALIGN +#define NJS_HAVE_POSIX_MEMALIGN 1 +#endif + + +#ifndef NJS_HAVE_GETRANDOM +#define NJS_HAVE_GETRANDOM 1 +#endif + + +#ifndef NJS_HAVE_STAT_ATIM +#define NJS_HAVE_STAT_ATIM 1 +#endif + + +#ifndef NJS_HAVE_EXPLICIT_BZERO +#define NJS_HAVE_EXPLICIT_BZERO 1 +#endif + + +#ifndef NJS_HAVE_PCRE2 +#define NJS_HAVE_PCRE2 1 +#endif + + +#ifndef NJS_PCRE2_VERSION +#define NJS_PCRE2_VERSION 10.39 +#endif + + +#ifndef NJS_HAVE_OPENSSL +#define NJS_HAVE_OPENSSL 1 +#endif + + +#ifndef NJS_OPENSSL_VERSION +#define NJS_OPENSSL_VERSION "OpenSSL 1.1.1s 1 Nov 2022" +#endif + diff --git a/srcpkgs/nginx/template b/srcpkgs/nginx/template index 5c220a57ef2..c72073d9a7c 100644 --- a/srcpkgs/nginx/template +++ b/srcpkgs/nginx/template @@ -132,6 +132,10 @@ pre_build() { cp "${FILESDIR}/ngx_auto_config.h.aarch64" objs/ngx_auto_config.h cp "${FILESDIR}/njs_auto_config.h.aarch64" ../njs-${_njs_version}/build/njs_auto_config.h ;; + riscv64*) + cp "${FILESDIR}/ngx_auto_config.h.riscv64" objs/ngx_auto_config.h + cp "${FILESDIR}/njs_auto_config.h.riscv64" ../njs-${_njs_version}/build/njs_auto_config.h + ;; esac sed -i "s:-I/usr:-I${XBPS_CROSS_BASE}/usr:" objs/Makefile