Hi,
Where can I get a src rpm for senginx 1.6.0? I'm trying to build it on my Centos 6.5 32bit machine.
I tried to build the rpm using the senginx.spec in the rpm folder of the source, but the build failed with error:
sed -i 's#data_dir=.*#data_dir=/home/langzi/rpmbuild/BUILDROOT/senginx-1.6.0-0.el6.i386/etc/senginx/naxsi/nx_util/nx_datas#' '/home/langzi/rpmbuild/BUILDROOT/senginx-1.6.0-0.el6.i386/etc/senginx/naxsi/nx_util/nx_util.conf'
test -d '/home/langzi/rpmbuild/BUILDROOT/senginx-1.6.0-0.el6.i386/etc/senginx/logs' || mkdir -p '/home/langzi/rpmbuild/BUILDROOT/senginx-1.6.0-0.el6.i386/etc/senginx/logs'
make[1]: Leaving directory `/home/langzi/rpmbuild/BUILD/senginx-1.6.0'
install -p -D -m 0755 /home/langzi/rpmbuild/SOURCES/senginx.init /home/langzi/rpmbuild/BUILDROOT/senginx-1.6.0-0.el6.i386/etc/rc.d/init.d/senginx
install: cannot stat `/home/langzi/rpmbuild/SOURCES/senginx.init': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.4TTp0a (%install)
Looks like it can't find the file "senginx.init". So I copied the file from source tar ball etc folder to "SOURCE" and run rpmbuild again. This time I got another error:
cpio: senginx-1.6.0/http_response_parser.rl: Cannot stat: No such file or directory
cpio: senginx-1.6.0/smtp_response_parser.c: Cannot stat: No such file or directory
cpio: senginx-1.6.0/smtp_response_parser.rl: Cannot stat: No such file or directory
8357 blocks
/usr/lib/rpm/check-buildroot
/home/langzi/rpmbuild/BUILDROOT/senginx-1.6.0-0.el6.i386/etc/senginx/naxsi/nx_util/nx_util.conf:data_dir=/home/langzi/rpmbuild/BUILDROOT/senginx-1.6.0-0.el6.i386/etc/senginx/naxsi/nx_util/nx_datas
/home/langzi/rpmbuild/BUILDROOT/senginx-1.6.0-0.el6.i386/etc/senginx/naxsi/nx_util/nx_util.conf:naxsi_core_rules=/home/langzi/rpmbuild/BUILDROOT/senginx-1.6.0-0.el6.i386/etc/senginx/naxsi/naxsi_config/naxsi_core.rules
Found '/home/langzi/rpmbuild/BUILDROOT/senginx-1.6.0-0.el6.i386' in installed files; aborting
error: Bad exit status from /var/tmp/rpm-tmp.7aarvj (%install)
So, I figured if you could just provide the src rpm, I can build it from there.
Hi, Where can I get a src rpm for senginx 1.6.0? I'm trying to build it on my Centos 6.5 32bit machine.
I tried to build the rpm using the senginx.spec in the rpm folder of the source, but the build failed with error:
sed -i 's#data_dir=.*#data_dir=/home/langzi/rpmbuild/BUILDROOT/senginx-1.6.0-0.el6.i386/etc/senginx/naxsi/nx_util/nx_datas#' '/home/langzi/rpmbuild/BUILDROOT/senginx-1.6.0-0.el6.i386/etc/senginx/naxsi/nx_util/nx_util.conf' test -d '/home/langzi/rpmbuild/BUILDROOT/senginx-1.6.0-0.el6.i386/etc/senginx/logs' || mkdir -p '/home/langzi/rpmbuild/BUILDROOT/senginx-1.6.0-0.el6.i386/etc/senginx/logs' make[1]: Leaving directory `/home/langzi/rpmbuild/BUILD/senginx-1.6.0'
Looks like it can't find the file "senginx.init". So I copied the file from source tar ball etc folder to "SOURCE" and run rpmbuild again. This time I got another error:
cpio: senginx-1.6.0/http_response_parser.rl: Cannot stat: No such file or directory cpio: senginx-1.6.0/smtp_response_parser.c: Cannot stat: No such file or directory cpio: senginx-1.6.0/smtp_response_parser.rl: Cannot stat: No such file or directory 8357 blocks
So, I figured if you could just provide the src rpm, I can build it from there.
Thanks!