I use a similar script for my installs except I pull the source from SVN (https://svn.wald.intevation.org/svn/openvas/tags/) and I abort if cmake, make or 'make install' throw an error (and print a warning it make man or make doc throw an error).

For WMI support in the openvas-libraries ( https://svn.wald.intevation.org/svn/openvas/trunk/openvas-libraries/doc/wmi-howto.txt ) I use the following snippet:

echo "Downloading, patching and compiling WMI"
if [[ ! -f 'wmi-1.3.14.tar.bz2' ]] ; then
wget -nv http://dev.zenoss.org/svn/trunk/inst/externallibs/wmi-1.3.14.tar.bz2 -O wmi-1.3.14.tar.bz2
fi
if [[ -d 'wmi-1.3.14' ]] ; then
  rm -rf wmi-1.3.14
fi
tar -xjf wmi-1.3.14.tar.bz2
cd wmi-1.3.14
for patch in openvas-wmi-1.3.14.patch openvas-wmi-1.3.14.patch2 openvas-wmi-1.3.14.patch3
do
  wget -nv http://www.openvas.org/download/wmi/${patch} -O ${patch}
  patch -p1 < ${patch}
done
cd Samba/source/
./autogen.sh && \
./configure && \
make proto all && \
make libraries && \
bash install-libwmiclient.sh ${installprefix} && \
bash install-libwincmd.sh ${installprefix} || exit 1



On 10/1/2013 10:48 AM, Christian Fernandez wrote:
Posting here since I decided to share it with other people
in the hopes more people will jump in to help me create a way to install
from source beta and later on stable for those that do not want to wait
for their distro packages or just want to install from source to be able
to run on USB's or liveCD's etc.
http://hispagatos.org/blog/2013/10/01/openvas-almost-automatic-install-script-from-source/

Thanks!
--
Certified Ethical Hacker CeH7, IACRB, Linux and cloud Engineer. DevOps, PenTester.

Need work done? <https://www.odesk.com/users/%7E01c5d3395dcaddf9af>
my resume/CV on linkedin <http://www.linkedin.com/in/chfernandez/>

GooglePlus Profile <https://plus.google.com/u/1/113419960212527537246/posts>

Visit my binaryFreedom site! <http://binaryfreedom.info>

Support Free Software <http://www.fsf.org/associate/support_freedom/join_fsf?referrer=2442>



Endorse Chris Fernandez at CoderWall <https://coderwall.com/chfernandez>




_______________________________________________
Openvas-discuss mailing list
[email protected]
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
Openvas-discuss mailing list
[email protected]
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss

Reply via email to