Skip to content

Commit

Permalink
Unified code with nProbe
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaderi committed Feb 7, 2025
1 parent 4c55807 commit 126fbb6
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions packages/FreeBSD/build.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,14 @@ cd $HERE

cat >> ${STAGEDIR}/+POST_INSTALL <<EOF
# Add missing libraries symlinks due to invalid shlib verion
OUT=\`ldd /usr/local/bin/ntopng | grep "not found"\`
# Add missing libraries symlinks due to invalid shlib version
RES=\`ldd /usr/local/bin/ntopng | grep "not found" | cut -d '=' -f 1 | sed 's/[[:blank:]]//g'\`
if [ ! -z "\$OUT" ]; then
RES=\`echo \$OUT | cut -d '=' -f 1 | sed 's/[[:blank:]]//g'\`
for LIB in \$RES; do
for LIB in \$RES; do
BASELIB=\`echo \$LIB|cut -d '.' -f 1\`
CMD=\`ln -s /usr/local/lib/\$BASELIB.so /usr/local/lib/\$LIB\`
done
fi
done
EOF

####################

Expand Down

0 comments on commit 126fbb6

Please sign in to comment.