Welcome, Guest. Please login or register.
April 24, 2014, 00:33:40 AM
Home Help Search Calendar Login Register
Show unread posts since last visit.
News: Let Pardus-Anka become #1: Pardus-Anka Bug ReportPardus-Anka World Google+ | The Pardus wiki  | Visit Pardus-Anka official website  | Register as forum member?  Email the moderator!

+  Pardus Worldforum
|-+  General
| |-+  Wish list
| | |-+  Citrix Client
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] 2 3 Go Down Print
Author Topic: Citrix Client  (Read 4560 times)
saygili
Pardus fellow craft
**
Posts: 115


View Profile
« on: June 18, 2012, 15:35:59 PM »

Hello,
Is it possible to make Citrix Client as pisi package?

http://download.citrix.com.edgesuite.net/akdlm/7010/linuxx86_12.1.0.203066.tar.gz?__gda__=1340026109_822c5e9dfab97a97c973a660e4a96b61&__dlmgda__=1340112210_f860a75d394d3a37f059271957ba79e1&fileExt=.gz

Also some bug hints.

http://forums.citrix.com/thread.jspa?threadID=306353&tstart=0

Thanks in advance.
Logged
saygili
Pardus fellow craft
**
Posts: 115


View Profile
« Reply #1 on: July 19, 2012, 12:36:55 PM »

Hi Atolboo,

Suppose that I want to make citrix pisi client. It has following dependencies:

kizilyildiz ICAClient # ldd wfcmgr
        linux-gate.so.1 =>  (0xffffe000)
        libXm.so.4 => /usr/lib32/libXm.so.4 (0xf7489000)
        libXp.so.6 => /usr/lib32/libXp.so.6 (0xf747f000)
        libXpm.so.4 => /usr/lib32/libXpm.so.4 (0xf746c000)
        libSM.so.6 => /usr/lib32/libSM.so.6 (0xf7462000)
        libICE.so.6 => /usr/lib32/libICE.so.6 (0xf7447000)
        libXmu.so.6 => /usr/lib32/libXmu.so.6 (0xf742d000)
        libXinerama.so.1 => /usr/lib32/libXinerama.so.1 (0xf7429000)
        libdl.so.2 => /lib32/libdl.so.2 (0xf7425000)
        libpthread.so.0 => /lib32/libpthread.so.0 (0xf740b000)
        libc.so.6 => /lib32/libc.so.6 (0xf728d000)
        libXt.so.6 => /usr/lib32/libXt.so.6 (0xf7230000)
        libX11.so.6 => /usr/lib32/libX11.so.6 (0xf70f6000)
        libXext.so.6 => /usr/lib32/libXext.so.6 (0xf70e3000)
        libXft.so.2 => /usr/lib32/libXft.so.2 (0xf70cd000)
        libjpeg.so.8 => /usr/lib32/libjpeg.so.8 (0xf7094000)
        libpng14.so.14 => /usr/lib32/libpng14.so.14 (0xf7066000)
        libXau.so.6 => /usr/lib32/libXau.so.6 (0xf7062000)
        /lib/ld-linux.so.2 (0xf7762000)
        libxcb.so.1 => /usr/lib32/libxcb.so.1 (0xf7042000)
        libfontconfig.so.1 => /usr/lib32/libfontconfig.so.1 (0xf700d000)
        libfreetype.so.6 => /usr/lib32/libfreetype.so.6 (0xf6f73000)
        libXrender.so.1 => /usr/lib32/libXrender.so.1 (0xf6f67000)
        libz.so.1 => /usr/lib32/libz.so.1 (0xf6f51000)
        libm.so.6 => /lib32/libm.so.6 (0xf6f2a000)
        libXdmcp.so.6 => /usr/lib32/libXdmcp.so.6 (0xf6f23000)
        libexpat.so.1 => /usr/lib32/libexpat.so.1 (0xf6ef9000)
kizilyildiz ICAClient # ldd wfica
        linux-gate.so.1 =>  (0xffffe000)
        libXaw.so.7 => /usr/lib32/libXaw.so.7 (0xf7695000)
        libXt.so.6 => /usr/lib32/libXt.so.6 (0xf7638000)
        libX11.so.6 => /usr/lib32/libX11.so.6 (0xf74fe000)
        libXinerama.so.1 => /usr/lib32/libXinerama.so.1 (0xf74f9000)
        libXext.so.6 => /usr/lib32/libXext.so.6 (0xf74e6000)
        libXrender.so.1 => /usr/lib32/libXrender.so.1 (0xf74db000)
        libdl.so.2 => /lib32/libdl.so.2 (0xf74d7000)
        libpthread.so.0 => /lib32/libpthread.so.0 (0xf74bd000)
        libc.so.6 => /lib32/libc.so.6 (0xf7340000)
        libXmu.so.6 => /usr/lib32/libXmu.so.6 (0xf7325000)
        libXpm.so.4 => /usr/lib32/libXpm.so.4 (0xf7312000)
        libSM.so.6 => /usr/lib32/libSM.so.6 (0xf7309000)
        libICE.so.6 => /usr/lib32/libICE.so.6 (0xf72ee000)
        libxcb.so.1 => /usr/lib32/libxcb.so.1 (0xf72ce000)
        /lib/ld-linux.so.2 (0xf7739000)
        libXau.so.6 => /usr/lib32/libXau.so.6 (0xf72c9000)
        libXdmcp.so.6 => /usr/lib32/libXdmcp.so.6 (0xf72c2000)
kizilyildiz ICAClient #

There is no package related to citrix. If I want to start from the beginning. What should I do?

Would you show me the way?



Logged
atolboo
Pardus Guru
****
Posts: 2317



View Profile
« Reply #2 on: July 19, 2012, 15:23:27 PM »

Did you already start to use PiSiDo
And also a good reference is http://aur.archlinux.org/packages.php and especially in the appropriate PKGBUILD .
Then you get an idea how easy/difficult it will be Wink
« Last Edit: July 19, 2012, 15:27:31 PM by atolboo » Logged
saygili
Pardus fellow craft
**
Posts: 115


View Profile
« Reply #3 on: July 19, 2012, 17:31:24 PM »

Hi,

I have installed pisido. And now trying for citrix.

I got the below error:

saygili@kizilyildiz ~ $ cd /home/saygili/paketler
saygili@kizilyildiz paketler $ pkexec --user root pisi build /home/saygili/paketler/citrix/pspec.xml  --output-dir /home/saygili/paketler
Building source package: citrix
DEBUG: RepoDB initialized in 0.012228012085.
DEBUG: ComponentDB initialized in 0.946749925613.
DEBUG: InstallDB initialized in 22.4707739353.
Fetching source from: /home/saygili/indirilenler/linux/linuxx86-12.0.0.189834.tar.gz
linuxx86-12.0.0.189834.tar.gz  (3.6 MB)  0%    159.45 MB/s [--:--:--]Source archive is stored: /var/cache/pisi/archives/linuxx86-12.0.0.189834.tar.gz
Unpacking archive(s)...
 unpacked (/var/pisi/citrix-12.0.0.189834-1/work)
Setting up source...
Program terminated.
ERROR: WorkDir (/var/pisi/citrix-12.0.0.189834-1/work/linuxx86-12) does not exist
Logged
saygili
Pardus fellow craft
**
Posts: 115


View Profile
« Reply #4 on: July 19, 2012, 19:06:03 PM »

Hi,

I found this under http://aur.archlinux.org/packages/ic/icaclient/PKGBUILD

How can I use it for pisi package build?

# Maintainer: Whitney Marshall <whitney.marshall@gmail.com>
pkgname=icaclient
pkgver=12.1.0.203066
pkgrel=1
pkgdesc="Citrix Receiver for Linux (ICAClient)"
arch=('x86_64')
url="http://www.citrix.com/English/ps2/products/product.asp?contentID=1689163&ntref=prod_top"
license=('custom:Citrix')
depends=(
    'gstreamer0.10-base'
    'lib32-alsa-lib'
    'lib32-libvorbis'
    'lib32-libxmu'
    'lib32-libxp'
    'lib32-libxpm'
    'lib32-gtk2'
    'lib32-openmotif'
    )
conflicts=('bin32-citrix-client' 'citrix-client')
install=$pkgname.install
source=(linuxx86_$pkgver.tar.gz::'http://www.citrix.com/English/SS/downloads/EULA_p.asp?downloadID=2323812&versionID=2323814&productID=1689163')
md5sums=('e09ae908e69bfe7aa227d648750af97a')

package() {
  ICAROOT=/opt/Citrix/ICAClient
  install --directory --owner=root --group=root --mode=555 \
    "$pkgdir$ICAROOT"{,/lib,/util,/keystore,/keystore/cacerts,/config/usertemplate,/keyboard,/help,/icons,/nls,/gtk,/gtk/glade,/nls/{en,de,ja}/{LC_MESSAGES,UTF-8}}

  cd "$srcdir/linuxx86/linuxx86.cor"
  install --owner=root --group=root --mode=555 \
    wfica \
    wfcmgr \
    *.so \
    *.DLL \
    FlashContainer.bin \
    "$pkgdir$ICAROOT"
  install --owner=root --group=root --mode=555 \
    util/*.sh \
    util/*.so \
    util/echo_cmd \
    util/gst_{read,play}.64 \
    util/hinst \
    util/nslaunch \
    util/pacexec \
    util/pnabrowse \
    util/what \
    util/xcapture \
    "$pkgdir$ICAROOT/util"
  # The following 32-bit library causes false namcap errors
  rm util/libgstflatstm.32.so
  install --owner=root --group=root --mode=444 \
    util/pac.js \
    "$pkgdir$ICAROOT/util"
  install --owner=root --group=root --mode=444 \
    keystore/cacerts/*.crt \
    "$pkgdir$ICAROOT/keystore"
  install --owner=root --group=root --mode=444 \
    config/*.ini \
    "$pkgdir$ICAROOT/config"
  install --owner=root --group=root --mode=444 \
    config/usertemplate/*.ini \
    "$pkgdir$ICAROOT/config/usertemplate"
  install --owner=root --group=root --mode=444 \
    keyboard/*.ini keyboard/*.kbd \
    "$pkgdir$ICAROOT/keyboard"
  install --owner=root --group=root --mode=444 \
    icons/*.png icons/session.xpm \
    "$pkgdir$ICAROOT/icons"
  install --owner=root --group=root --mode=444 \
    gtk/resource.gtkrc \
    "$pkgdir$ICAROOT/gtk"
  install --owner=root --group=root --mode=444 \
    gtk/glade/*.glade \
    "$pkgdir$ICAROOT/gtk/glade"
  install --owner=root --group=root --mode=444 \
    lib/*.so \
    "$pkgdir$ICAROOT/lib"
  for locale in de en ja; do
     install --owner=root --group=root --mode=444 \
       nls/$locale/{*.{ini,txt,htm,ad,nls},Wfcmgr} \
       "$pkgdir$ICAROOT/nls/$locale"
     install --owner=root --group=root --mode=444 \
       nls/$locale/LC_MESSAGES/*.mo \
       "$pkgdir$ICAROOT/nls/$locale/LC_MESSAGES"
     install --owner=root --group=root --mode=444 \
       nls/$locale/UTF-8/{*.{txt,ad,nls},Wfcmgr} \
       "$pkgdir$ICAROOT/nls/$locale/UTF-8"
  done
 
  cd "$pkgdir$ICAROOT"
  ln -s en nls/C
  for locale in de en ja; do
    ln -s Npica.ad nls/$locale/Npica
    ln -s UTF-8 nls/$locale/utf8
    ln -s XCapture.ad nls/$locale/UTF-8/XCapture
    ln -s XCapture.ad nls/$locale/XCapture
  done

  cat > wfica.sh << EOF
#!/bin/sh
ICAROOT=$ICAROOT
export ICAROOT
\$ICAROOT/wfica -file \$1
EOF
  chmod 755 wfica.sh

  install --owner=root --group=root --mode=444 -D \
    nls/en/eula.txt \
    "$pkgdir/usr/share/licenses/$pkgname/eula.txt"
}

# vim:set ts=2 sw=2 et:
Logged
saygili
Pardus fellow craft
**
Posts: 115


View Profile
« Reply #5 on: July 19, 2012, 19:43:23 PM »

Hi Friends,

Suppose that I am building a package which I do not know.

How can I see the dependencies of tar.gz ball?

Best Regards,

Murat
Logged
atolboo
Pardus Guru
****
Posts: 2317



View Profile
« Reply #6 on: July 19, 2012, 20:58:08 PM »

I find it at http://aur.archlinux.org/packages/ci/citrix-client/PKGBUILD

How can I see the dependencies of tar.gz ball?
It's in the "depends=(...)" section.
Logged
saygili
Pardus fellow craft
**
Posts: 115


View Profile
« Reply #7 on: July 20, 2012, 09:20:03 AM »

Hello Friends,

I am trying to make pspec.xml file for Citrix Client. The currently installed citrix settings for desktop is:

/usr/lib/ICAClient/desktop/wfcmgr.desktop

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=Citrix Receiver
Name[de]=Citrix Receiver
Name[ja]=Citrix Receiver
Categories=Application;Network;X-Red-Hat-Base;X-SuSE-Core-Internet;
Icon=/usr/lib/ICAClient/icons/manager.png
TryExec=/usr/lib/ICAClient/wfcmgr
Exec=/usr/lib/ICAClient/wfcmgr -icaroot /usr/lib/ICAClient

I want to configure pspec.xml file like if ARCH=i686 executable dir /usr/lib/ICAClient if ARCH=x86_64 then /usr/lib32/ICAClient

I want to use like the link given :http://aur.archlinux.org/packages/ci/citrix-client/PKGBUILD

Should I define these settings in pspec.xml or in actions.py?

I am sending very beginnig of pspec.txt.

* pspec1.txt (4.01 KB - downloaded 83 times.)
Logged
saygili
Pardus fellow craft
**
Posts: 115


View Profile
« Reply #8 on: July 20, 2012, 09:46:11 AM »

I am moving slowly Smiley

If a program to be packaged is using both 32 bit and 64 bit libraries the how the structure of pspec.xml file should be?

I mean:

<Files>

<Path fileType="library">/usr/lib/*</Path>

</Files>

Should I define /usr/lib32 also?
Logged
atolboo
Pardus Guru
****
Posts: 2317



View Profile
« Reply #9 on: July 20, 2012, 11:24:12 AM »

My suggestion:
Do a
Code:
svn co http://svn.pardus.org.tr/pardus/tags/2011-EOL/
and you will get all build files in a directory "2011-EOL".

For programs based on a 32-bit source, I always use a separate pspec-32.xml and pspec-64.xml file.
Examples are at http://www.pardususer.de/index.php?action=repository&dir=/build-files/2011
  • virtualgl
  • teamviewer
  • AnmanieSMP
  • aptana-studio-3
  • opera
  • teamspeak3
  • synfigstudio
  • areca
  • winetricks
  • desura
Logged
saygili
Pardus fellow craft
**
Posts: 115


View Profile
« Reply #10 on: July 26, 2012, 17:32:36 PM »

Hello,
------------------------------------------------------
In my actions.py I have:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import shelltools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

WorkDir = (get.srcNAME(), get.srcVERSION())

def install():
    pisitools.insinto("/opt/Citrix/ICAClient", "*")
-----------------------------------------------------------------------------

when I run command : pisi bi pspec.xml -y I am having:


Building source package: ICAClient
DEBUG: RepoDB initialized in 8.89301300049e-05.                                                                                                                                                                                                   
DEBUG: ComponentDB initialized in 0.733727931976.
DEBUG: InstallDB initialized in 0.176177978516.
ICAClient_12.1.0-0.x86_64.tar.gz [cached]
Unpacking archive(s)...
 unpacked (/var/pisi/ICAClient-12.1-1/work)                                                                                                                                                                                                       
Setting up source...
System error. Program terminated.                                                                                                                                                                                                                 
<type 'exceptions.AttributeError'>: 'tuple' object has no attribute 'lstrip'                                                                                                                                                                       
Please use 'pisi help' for general help.                                                                                                                                                                                                           

Traceback:
  File "/usr/bin/pisi", line 82, in <module>
    cli.run_command()
  File "/usr/lib/pardus/pisi/cli/pisicli.py", line 141, in run_command
    self.command.run()
  File "/usr/lib/pardus/pisi/cli/build.py", line 182, in run
    pisi.api.build(x)
  File "/usr/lib/pardus/pisi/api.py", line 922, in build
    return pisi.atomicoperations.build(*args, **kw)
  File "/usr/lib/pardus/pisi/atomicoperations.py", line 695, in build
    return pisi.operations.build.build(package)
  File "/usr/lib/pardus/pisi/operations/build.py", line 1239, in build
    pb.build()
  File "/usr/lib/pardus/pisi/operations/build.py", line 346, in build
    self.run_setup_action()
  File "/usr/lib/pardus/pisi/operations/build.py", line 530, in run_setup_action
    if self.run_action_function(ctx.const.setup_func):
  File "/usr/lib/pardus/pisi/operations/build.py", line 689, in run_action_function
    src_dir = self.pkg_src_dir()
  File "/usr/lib/pardus/pisi/operations/build.py", line 653, in pkg_src_dir
    return util.join_path(self.pkg_work_dir(), dirname)
  File "/usr/lib/pardus/pisi/util.py", line 297, in join_path
    b = b.lstrip('/')



What is the problem?

BR

Murat


Logged
atolboo
Pardus Guru
****
Posts: 2317



View Profile
« Reply #11 on: July 26, 2012, 23:37:32 PM »

The very first build files for the i686 version are in my playground.
I must emphasize that they are still very dirty and it's only a first attempt.
For instance: I guess the \ sign should be removed from the .sh files.
My reference is
And also a good reference is http://aur.archlinux.org/packages.php and especially in the appropriate PKGBUILD .
Wink
Next will be the x86_64 version.
Also found https://wiki.archlinux.org/index.php/Citrix#Manual_Install
Logged
saygili
Pardus fellow craft
**
Posts: 115


View Profile
« Reply #12 on: July 27, 2012, 07:34:27 AM »

Many thanks Atolboo.

I used rpm file since most of the work there already done.

Also for 64 bit you do not need to make soft links for the library. Since when I install openmotif-32bit it directly puts necessary libraries.

BR
Murat
Logged
saygili
Pardus fellow craft
**
Posts: 115


View Profile
« Reply #13 on: July 27, 2012, 08:49:55 AM »

here is the output of raw rpm2tgz

http://saygili.freeshell.org/ICAClient_12.1.0-0.x86_64.tar.gz

I am putting may be it saves your time.

If you have time please check the content?

BR
Murat
Logged
atolboo
Pardus Guru
****
Posts: 2317



View Profile
« Reply #14 on: July 27, 2012, 16:52:10 PM »

New build files Wink
Logged
Pages: [1] 2 3 Go Up Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!