Created
February 12, 2021 20:33
Repacks a BlueJeans package to make it install-able under Debian.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -z "$*" ]; then echo "Pass in the path to a BlueJeans Debian package to fix it."; exit 1; fi | |
filename=$1 | |
newfilename=${filename:0:(-4)}-fixed.deb | |
echo "This will remove the libnss3 check from BlueJeans package $filename" | |
# This is all needed because BlueJeans uses a preinstall script to run | |
# dpkg -s libnss3 | |
# which returns multiple packges with multiarch enabled, so it ends up printing an error | |
# and returning code 2. This causes the installation to bail out. | |
# Interestingly, libnss3 is already a depenency of the package's DEBIAN/control file. | |
mkdir repack | |
echo "unpacking..." | |
dpkg-deb -R $filename repack | |
echo "modifying" | |
sed -i 's/dpkg -s libnss3/echo 0/g' repack/DEBIAN/preinst | |
echo "repacking..." | |
dpkg-deb -b repack $newfilename | |
echo "Finished, you can now install $newfilename" | |
rm -rf repack |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment