Build without any mod runs fine
I want nginx to setup his conf-path to /etc/nginx and the pid file to the standard path.
So I set in the %build section following parameters:
%build
./configure --conf-path=/etc/nginx/nginx.conf --lock-path=/var/lock/ningx/nginx.lock --pid-path=/var/run/nginx.pid --with-pcre-jit --with-luajit --with-http_ssl_module --with-ld-opt=-Wl,-rpath,/usr/local/openresty/luajit/lib
--without-http_ssi_module --without-http_scgi_module
--without-mail_pop3_module --without-mail_imap_module
--without-mail_smtp_module --without-http_browser_module
--without-http_fastcgi_module --without-http_uwsgi_module
--without-http_autoindex_module --without-http_geo_module
During build now this errors ouccurs:
+ mkdir -p /root/rpmbuild/BUILDROOT/openresty-1.9.7.3-1.el6.x86_64/etc/init.d
+ sed -e 's/%NGINX_CONF_DIR%/\/usr\/local\/openresty\/nginx\/conf/g' -e 's/%NGINX_BIN_DIR%/\/usr\/local\/openresty\/nginx\/sbin/g' /root/rpmbuild/SOURCES/nginx.init
+ /usr/lib/rpm/find-debuginfo.sh --strict-build-id /root/rpmbuild/BUILD/openresty-1.9.7.3
extracting debug info from /root/rpmbuild/BUILDROOT/openresty-1.9.7.3-1.el6.x86_64/usr/local/openresty/luajit/bin/luajit-2.1.0-beta1
extracting debug info from /root/rpmbuild/BUILDROOT/openresty-1.9.7.3-1.el6.x86_64/usr/local/openresty/luajit/lib/libluajit-5.1.so.2.1.0
extracting debug info from /root/rpmbuild/BUILDROOT/openresty-1.9.7.3-1.el6.x86_64/usr/local/openresty/nginx/sbin/nginx
extracting debug info from /root/rpmbuild/BUILDROOT/openresty-1.9.7.3-1.el6.x86_64/usr/local/openresty/lualib/cjson.so
extracting debug info from /root/rpmbuild/BUILDROOT/openresty-1.9.7.3-1.el6.x86_64/usr/local/openresty/lualib/rds/parser.so
extracting debug info from /root/rpmbuild/BUILDROOT/openresty-1.9.7.3-1.el6.x86_64/usr/local/openresty/lualib/redis/parser.so
symlinked /usr/lib/debug/usr/local/openresty/luajit/bin/luajit-2.1.0-beta1.debug to /usr/lib/debug/usr/local/openresty/luajit/bin/luajit.debug
symlinked /usr/lib/debug/usr/local/openresty/luajit/lib/libluajit-5.1.so.2.1.0.debug to /usr/lib/debug/usr/local/openresty/luajit/lib/libluajit-5.1.so.debug
symlinked /usr/lib/debug/usr/local/openresty/luajit/lib/libluajit-5.1.so.2.1.0.debug to /usr/lib/debug/usr/local/openresty/luajit/lib/libluajit-5.1.so.2.debug
cpio: openresty-1.9.7.3/build/nginx-1.9.7/src/common.rl: Cannot stat: No such file or directory
cpio: openresty-1.9.7.3/build/nginx-1.9.7/src/memc_common.rl: Cannot stat: No such file or directory
cpio: openresty-1.9.7.3/build/nginx-1.9.7/src/multi_bulk_reply.rl: Cannot stat: No such file or directory
cpio: openresty-1.9.7.3/build/nginx-1.9.7/src/ngx_http_memc_response.c: Cannot stat: No such file or directory
cpio: openresty-1.9.7.3/build/nginx-1.9.7/src/ngx_http_memc_response.rl: Cannot stat: No such file or directory
cpio: openresty-1.9.7.3/build/nginx-1.9.7/src/ngx_http_redis2_reply.c: Cannot stat: No such file or directory
cpio: openresty-1.9.7.3/build/nginx-1.9.7/src/ngx_http_redis2_reply.rl: Cannot stat: No such file or directory
cpio: openresty-1.9.7.3/build/nginx-1.9.7/src/ngx_http_xss_util.c: Cannot stat: No such file or directory
cpio: openresty-1.9.7.3/build/nginx-1.9.7/src/ngx_http_xss_util.rl: Cannot stat: No such file or directory
11980 blocks
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
+ /usr/lib/rpm/brp-python-bytecompile
+ /usr/lib/rpm/redhat/brp-python-hardlink
+ /usr/lib/rpm/redhat/brp-java-repack-jars
Processing files: openresty-1.9.7.3-1.el6.x86_64
error: File not found: /root/rpmbuild/BUILDROOT/openresty-1.9.7.3-1.el6.x86_64/usr/local/openresty/nginx/conf
error: File not found: /root/rpmbuild/BUILDROOT/openresty-1.9.7.3-1.el6.x86_64/usr/local/openresty/nginx/conf/fastcgi.conf.default
error: File not found: /root/rpmbuild/BUILDROOT/openresty-1.9.7.3-1.el6.x86_64/usr/local/openresty/nginx/conf/fastcgi_params.default
error: File not found: /root/rpmbuild/BUILDROOT/openresty-1.9.7.3-1.el6.x86_64/usr/local/openresty/nginx/conf/mime.types.default
error: File not found: /root/rpmbuild/BUILDROOT/openresty-1.9.7.3-1.el6.x86_64/usr/local/openresty/nginx/conf/nginx.conf.default
error: File not found: /root/rpmbuild/BUILDROOT/openresty-1.9.7.3-1.el6.x86_64/usr/local/openresty/nginx/conf/scgi_params.default
error: File not found: /root/rpmbuild/BUILDROOT/openresty-1.9.7.3-1.el6.x86_64/usr/local/openresty/nginx/conf/uwsgi_params.default
error: File not found: /root/rpmbuild/BUILDROOT/openresty-1.9.7.3-1.el6.x86_64/usr/local/openresty/nginx/conf/fastcgi.conf
error: File not found: /root/rpmbuild/BUILDROOT/openresty-1.9.7.3-1.el6.x86_64/usr/local/openresty/nginx/conf/fastcgi_params
error: File not found: /root/rpmbuild/BUILDROOT/openresty-1.9.7.3-1.el6.x86_64/usr/local/openresty/nginx/conf/koi-utf
error: File not found: /root/rpmbuild/BUILDROOT/openresty-1.9.7.3-1.el6.x86_64/usr/local/openresty/nginx/conf/koi-win
error: File not found: /root/rpmbuild/BUILDROOT/openresty-1.9.7.3-1.el6.x86_64/usr/local/openresty/nginx/conf/mime.types
error: File not found: /root/rpmbuild/BUILDROOT/openresty-1.9.7.3-1.el6.x86_64/usr/local/openresty/nginx/conf/nginx.conf
error: File not found: /root/rpmbuild/BUILDROOT/openresty-1.9.7.3-1.el6.x86_64/usr/local/openresty/nginx/conf/scgi_params
error: File not found: /root/rpmbuild/BUILDROOT/openresty-1.9.7.3-1.el6.x86_64/usr/local/openresty/nginx/conf/uwsgi_params
error: File not found: /root/rpmbuild/BUILDROOT/openresty-1.9.7.3-1.el6.x86_64/usr/local/openresty/nginx/conf/win-utf
I tried to adapt the "sed" in the %install Section cause i think it is the core problem.
But i'm was not able to resolve it.
Could anyone assist with a correct sed line or any other idea ?
Regards