Never mind guys. I figured it out. Just some issues with naming my junk. On Monday, May 16, 2016 at 9:04:05 AM UTC-5, James Dough wrote: > > I'm trying to build the OSSEC RPM with the most recent version, using my > own custom preloaded vars. > > I'm using the default spec file, modified to match the tar that I've > chosen. > > Here's the error I get. > > + STATUS=0 >> + '[' 0 -ne 0 ']' >> + cd ossec >> /var/tmp/rpm-tmp.CtNG72: line 36: cd: ossec: No such file or directory >> error: Bad exit status from /var/tmp/rpm-tmp.CtNG72 (%prep) >> >> RPM build errors: >> Bad exit status from /var/tmp/rpm-tmp.CtNG72 (%prep) > > > > The tmp file has the follow code which is causing it to fail: (It deletes > an ossec directory, then tries to cd into it.) > > cd '/root/rpmbuild/BUILD' >> rm -rf 'ossec' >> /usr/bin/gzip -dc '/root/rpmbuild/SOURCES/ossec.tar.gz' | /usr/bin/tar >> -xvvf - >> STATUS=$? >> if [ $STATUS -ne 0 ]; then >> exit $STATUS >> fi >> cd 'ossec' >> /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . > > > > I can't seem to find what generates this code. But I can't see why it > specifies to rm the ossec directory and then immediately CD into it. Any > suggestions? >
-- --- You received this message because you are subscribed to the Google Groups "ossec-list" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
