mirror of
https://github.com/BlackLight/Snort_AIPreproc.git
synced 2024-11-13 04:07:15 +01:00
22 lines
387 B
Bash
22 lines
387 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
OUTDIR=${HOME}/local/snort/lib/snort_dynamicpreprocessor
|
||
|
LIBSF=libsf_ai_preproc
|
||
|
|
||
|
make clean
|
||
|
make
|
||
|
chmod +x ./${LIBSF}.la
|
||
|
cp ./${LIBSF}.la ${OUTDIR}
|
||
|
cp .libs/${LIBSF}.a ${OUTDIR}
|
||
|
cp .libs/${LIBSF}.so.0.0.0 ${OUTDIR}
|
||
|
cd ${OUTDIR}
|
||
|
|
||
|
if [ ! -f ${LIBSF}.so.0 ]; then
|
||
|
ln -sf ${LIBSF}.so.0.0.0 ${LIBSF}.so.0
|
||
|
fi
|
||
|
|
||
|
if [ ! -f ${LIBSF}.so ]; then
|
||
|
ln -sf ${LIBSF}.so.0.0.0 ${LIBSF}.so
|
||
|
fi
|
||
|
|