#!/bin/bash
# Copyright (c) 2000-2016 Synology Inc. All rights reserved.

. ${ScriptsDir}/include/exports
if [ "$SupportNSM" = "yes" ]; then
	STRIP=${STRIP}
else
	SkipThisProject
	return
fi

LibDir=${TmpInstDir}/lib/

echo "Now install the library..."

[ -d $LibDir ] || install -d $LibDir
install -c -v -m 755 src/.libs/libnetfilter_cthelper.so.0.0.0 $LibDir
ln -sf libnetfilter_cthelper.so.0.0.0 $LibDir/libnetfilter_cthelper.so
ln -sf libnetfilter_cthelper.so.0.0.0 $LibDir/libnetfilter_cthelper.so.0

if [ "x$NOSTRIP" != "xNOSTRIP" ]; then
	echo "${STRIP} ${LibDir}/libnetfilter_cthelper.so.0.0.0"
	${STRIP} ${LibDir}/libnetfilter_cthelper.so.0.0.0
fi
