NeusoftSecurity / SEnginx

Security-Enhanced nginx by Neusoft corporation.
www.senginx.org
BSD 2-Clause "Simplified" License
182 stars 68 forks source link

src rpm for senginx 1.6.0? #23

Open lz2 opened 10 years ago

lz2 commented 10 years ago

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!

dawidmalina commented 10 years ago

Look at https://github.com/NeusoftSecurity/SEnginx/issues/6 I provide workaround for same issue.

InfoHunter commented 10 years ago

@lz2 have a try for @dawidmalina 's patch