Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
bee-files/citrix-workspace-app.be0
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
210 lines (182 sloc)
7.45 KB
This file contains 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
#!/usr/bin/env beesh | |
# BEE_VERSION citrix-workspace-app-19.10.0.15-0 | |
# more info: https://www.citrix.com/downloads/workspace-app/linux/workspace-app-for-linux-latest.html | |
# | |
# never execute the provided installer. Its total junk. | |
# | |
# To use the package, this has to be done for each new user: | |
# | |
# mkdir -p $HOME/.ICAClient/cache | |
# cp /opt/Citrix/ICAClient/config/{All_Regions,Trusted_Region,Unknown_Region,canonicalization,regions}.ini $HOME/.ICAClient/ | |
# | |
# maybe we do this from a wrapper in a future build | |
SRCURL[0]="/src/mariux/download/citrix_workspace_app-${PKGVERSION}.tgz" | |
# PATCHURL+=() | |
# build_in_sourcedir | |
# sourcesubdir_append src | |
#mee_extract() { | |
# bee_extract "${@}" | |
#} | |
#mee_patch() { | |
# bee_patch "${@}" | |
#} | |
#mee_configure() { | |
# bee_configure | |
#} | |
#mee_build() { | |
# bee_build | |
#} | |
mee_install() { | |
# stolen from | |
# https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=icaclient | |
srcdir="$S" | |
pkgdir=$D | |
ICAROOT=/opt/Citrix/ICAClient | |
ICADIR="$srcdir/linuxx64/linuxx64.cor" | |
mkdir -p "${pkgdir}$ICAROOT" | |
cd "$ICADIR" | |
install -m755 wfica *.so *.DLL AuthManagerDaemon PrimaryAuthManager ServiceRecord selfservice "${pkgdir}$ICAROOT" | |
# copy directories | |
cp -r ./config/ "${pkgdir}$ICAROOT" | |
cp -r ./gtk/ "${pkgdir}$ICAROOT" | |
cp -r ./help/ "${pkgdir}$ICAROOT" | |
cp -r ./keyboard/ "${pkgdir}$ICAROOT" | |
cp -r ./keystore/ "${pkgdir}$ICAROOT" | |
cp -r ./lib/ "${pkgdir}$ICAROOT" | |
cp -r ./icons/ "${pkgdir}$ICAROOT" | |
cp -r ./nls/ "${pkgdir}$ICAROOT" | |
cp -r ./site/ "${pkgdir}$ICAROOT" | |
cp -r ./usb/ "${pkgdir}$ICAROOT" | |
cp -r ./util/ "${pkgdir}$ICAROOT" | |
# Install License | |
install -m644 -D nls/en.UTF-8/eula.txt \ | |
"${pkgdir}$ICAROOT/eula.txt" | |
# create /config/.server to enable user customization using ~/.ICACLient/ overrides. Thanks Tomek | |
touch "${pkgdir}$ICAROOT/config/.server" | |
# # Extract system ca-certificates and install in the Citrix cacerts directory | |
# cp /etc/ca-certificates/extracted/tls-ca-bundle.pem "${pkgdir}$ICAROOT/keystore/cacerts/" | |
# cd "${pkgdir}$ICAROOT/keystore/cacerts/" | |
# awk 'BEGIN {c=0;} /BEGIN CERT/{c++} { print > "cert." c ".pem"}' < tls-ca-bundle.pem | |
# The following 32-bit library causes false namcap errors | |
# rm util/libgstflatstm.32.so | |
# # Install wrapper script | |
# install -m755 "${srcdir}/wfica.sh" "${pkgdir}$ICAROOT/wfica.sh" | |
# Dirty Hack | |
# wfica expects {module,wfclient,apssrv}.ini in $ICAROOT/config | |
# sadly these configs differ slightly by locale | |
lang=${LANG%%_*} | |
if [[ ! -d "${pkgdir}/$ICAROOT/nls/$lang" ]]; then | |
lang='en' | |
fi | |
cp "${pkgdir}$ICAROOT/nls/$lang/module.ini" "${pkgdir}/$ICAROOT/config/" | |
cp "${pkgdir}$ICAROOT/nls/$lang/appsrv.template" "${pkgdir}/$ICAROOT/config/appsrv.ini" | |
cp "${pkgdir}$ICAROOT/nls/$lang/wfclient.template" "${pkgdir}/$ICAROOT/config/wfclient.ini" | |
# Copy Firefox plugin into plugin directory | |
mkdir -p "${pkgdir}/usr/lib/mozilla/plugins" | |
ln -s "$ICAROOT/npica.so" "${pkgdir}"/usr/lib/mozilla/plugins/npica.so | |
cd "${srcdir}" | |
# install freedesktop.org files | |
# install -Dm644 wfica.desktop "${pkgdir}/usr/share/applications/wfica.desktop" | |
# install -Dm644 conncenter.desktop "${pkgdir}/usr/share/applications/conncentre.desktop" | |
# install -Dm644 configmgr.desktop "${pkgdir}/usr/share/applications/configmgr.desktop" | |
# install -Dm644 selfservice.desktop "${pkgdir}/usr/share/applications/wfcmgr.desktop" | |
mkdir -p "${pkgdir}/usr/share/applications/" | |
cat <<'EOF' >"${pkgdir}/usr/share/applications/wfica.desktop" | |
[Desktop Entry] | |
Encoding=UTF-8 | |
Version=1.0 | |
Type=Application | |
Name=Citrix Receiver Engine | |
StartupWMClass=Wfica | |
NoDisplay=true | |
Categories=Application;Network;X-Red-Hat-Base;X-SuSE-Core-Internet; | |
MimeType=application/x-ica; | |
Icon=/opt/Citrix/ICAClient/icons/manager.png | |
TryExec=/opt/Citrix/ICAClient/wfica.sh | |
Exec=/opt/Citrix/ICAClient/wfica.sh | |
EOF | |
cat <<'EOF' >"${pkgdir}/usr/share/applications/conncentre.desktop" | |
[Desktop Entry] | |
Encoding=UTF-8 | |
Version=1.0 | |
Type=Application | |
Name=Citrix Connection Centre | |
NoDisplay=false | |
Categories=Application;Network;X-Red-Hat-Base;X-SuSE-Core-Internet; | |
Icon=/opt/Citrix/ICAClient/icons/manager.png | |
TryExec=/opt/Citrix/ICAClient/util/conncenter | |
Exec=/opt/Citrix/ICAClient/util/conncenter --icaroot /opt/Citrix/ICAClient | |
EOF | |
cat <<'EOF' >"${pkgdir}/usr/share/applications/configmgr.desktop" | |
[Desktop Entry] | |
Encoding=UTF-8 | |
Version=1.0 | |
Type=Application | |
Name=Citrix Receiver Preferences | |
NoDisplay=false | |
Categories=Application;Network;X-Red-Hat-Base;X-SuSE-Core-Internet; | |
Icon=/opt/Citrix/ICAClient/icons/manager.png | |
TryExec=/opt/Citrix/ICAClient/util/configmgr | |
Exec=/opt/Citrix/ICAClient/util/configmgr --icaroot /opt/Citrix/ICAClient | |
EOF | |
cat <<'EOF' > "${pkgdir}/usr/share/applications/wfcmgr.desktop" | |
[Desktop Entry] | |
Encoding=UTF-8 | |
Version=1.0 | |
Type=Application | |
Name=Citrix Receiver Self Service | |
Categories=Application;Network;X-Red-Hat-Base;X-SuSE-Core-Internet; | |
Icon=/opt/Citrix/ICAClient/icons/manager.png | |
TryExec=/opt/Citrix/ICAClient/selfservice | |
Exec=/opt/Citrix/ICAClient/selfservice --icaroot /opt/Citrix/ICAClient | |
EOF | |
# install scripts | |
# install -Dm755 wfica.sh "${pkgdir}$ICAROOT" | |
# install -Dm755 wfica_assoc.sh "${pkgdir}$ICAROOT" | |
cat <<'EOF' >"${pkgdir}$ICAROOT/wfica.sh" | |
#!/bin/sh | |
export ICAROOT=/opt/Citrix/ICAClient | |
${ICAROOT}/wfica -file "$1" | |
EOF | |
chmod 755 "${pkgdir}$ICAROOT/wfica.sh" | |
cat <<'EOF' >"${pkgdir}$ICAROOT/wfica_assoc.sh" | |
#!/bin/sh | |
export ICAROOT=/opt/Citrix/ICAClient | |
${ICAROOT}/wfica -associate -fileparam "$1" | |
EOF | |
chmod 755 "${pkgdir}$ICAROOT/wfica_assoc.sh" | |
# # make certificates available | |
# rm -r "${pkgdir}/opt/Citrix/ICAClient/keystore/cacerts" | |
# ln -s /etc/ssl/certs "${pkgdir}/opt/Citrix/ICAClient/keystore/cacerts" | |
# #ln -s /usr/share/ca-certificates/trust-source/* "${pkgdir}/opt/Citrix/ICAClient/keystore/cacerts/" | |
# #c_rehash "${pkgdir}/opt/Citrix/ICAClient/keystore/cacerts/" | |
cat<<'EOF' >"${pkgdir}/opt/Citrix/ICAClient/keystore/cacerts/T-TeleSec_GlobalRoot_Class_2.pem" | |
subject=/CN=T-TeleSec GlobalRoot Class 2/OU=T-Systems Trust Center/O=T-Systems Enterprise Services GmbH/C=DE | |
-----BEGIN CERTIFICATE----- | |
MIIDwzCCAqugAwIBAgIBATANBgkqhkiG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4RYZeLbK4rnJVM3YlNfvNoBYimipidx5joifsFvHZVw | |
IEoHNN/q/xWA5brXethbdXwFeilHfkCoMRN3zUA7tFFHei4R40cR3p1m0IvVVGb6 | |
g1XqfMIpiRvpb7PO4gWEyS8+eIVibslfwXhjdFjASBgMmTnrpMwatXlajRWc2BQN | |
9noHV8cigwUtPJslJj0Ys6lDfMjIq2SPDqO/nBudMNva0Bkuqjzx+zOAduTNrRlP | |
BSeOE6Fuwg== | |
-----END CERTIFICATE----- | |
EOF | |
} | |
#mee_install_post() { | |
# exit | |
#} |