Skip to content

Commit

Permalink
network/nordvpn: Fixed compatibility issues
Browse files Browse the repository at this point in the history
Signed-off-by: Reza Talebi <reza.talebi.73@outlook.com>
  • Loading branch information
RezaT4795 committed Nov 15, 2024
1 parent 0068f2d commit 3ae54ba
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
11 changes: 11 additions & 0 deletions network/nordvpn/doinst.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# Patched by Peter Christy <pete.christy.uk@gmail.com>

# update configuration and shared library cache for linker to find .so files
echo "/usr/lib64/nordvpn" > /etc/ld.so.conf.d/nordvpn.conf
# NOTE: We found some really strange behavior with `ldconfig` cache refresh here.
# On .deb systems, using just `ldconfig` causes the nordvpnd daemon to fail on
# the first start with error that .so are missing. On restart, it's working again.
# Adding ANY flag to `ldconfig` (even the one we added on our own which does
# literally nothing) fixes the issue.
ldconfig -v > /dev/null 2>&1

if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
Expand Down
10 changes: 9 additions & 1 deletion network/nordvpn/nordvpn.SlackBuild
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,16 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

# Modified by Pouria Rezaei <Pouria.rz@outlook.com>
# Patched by Peter Christy <pete.christy.uk@gmail.com>


cd $(dirname $0) ; CWD=$(pwd)

PRGNAM=nordvpn
VERSION=${VERSION:-3.19.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
PKGTYPE=${PKGTYPE:-txz}

# Select nordvpn's default group
NORD_GROUP=${NORD_GROUP:-nordvpn}
Expand Down Expand Up @@ -88,6 +90,12 @@ mkdir -p $PRGNAM-$VERSION
cd $PKG
ar p $CWD/${PRGNAM}_${VERSION}_${DEBARCH}.deb data.tar.gz | tar zxv

# nordvpn-3.19.x appears to need additional libraries:
mkdir -p usr/lib64/nordvpn
cp usr/lib/nordvpn/*.so usr/lib64/nordvpn/
# Remove libsqlite3 so as not to interfere with Slackware's native version:
rm usr/lib64/nordvpn/libsqlite3.so

rm -fR etc usr/lib

# Move man where the man likes
Expand Down

0 comments on commit 3ae54ba

Please sign in to comment.