xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.


Ticket #2608: xpra.patch

File xpra.patch, 2.1 KB (added by arrowd, 14 months ago)
  • src/setup.py

     
    162162minify_ENABLED = html5_ENABLED
    163163pam_ENABLED = DEFAULT and (server_ENABLED or proxy_ENABLED) and POSIX and not OSX and (os.path.exists("/usr/include/pam/pam_misc.h") or os.path.exists("/usr/include/security/pam_misc.h"))
    164164
    165 xdg_open_ENABLED        = LINUX and DEFAULT
     165xdg_open_ENABLED        = (LINUX or FREEBSD) and DEFAULT
    166166netdev_ENABLED          = LINUX and DEFAULT
    167167vsock_ENABLED           = LINUX and os.path.exists("/usr/include/linux/vm_sockets.h")
    168168bencode_ENABLED         = DEFAULT
     
    14361436#*******************************************************************************
    14371437else:
    14381438    #OSX and *nix:
    1439     if LINUX:
     1439    if is_Fedora() or is_CentOS() or is_RedHat() or FREEBSD:
     1440        libexec = "libexec"
     1441    else:
     1442        libexec = "lib"
     1443
     1444    if LINUX or FREEBSD:
    14401445        if scripts_ENABLED:
    14411446            scripts += ["scripts/xpra_udev_product_version", "scripts/xpra_signal_listener"]
    14421447        libexec_scripts = []
    1443         if is_Fedora() or is_CentOS() or is_RedHat():
    1444             libexec = "libexec"
    1445         else:
    1446             libexec = "lib"
    14471448        if xdg_open_ENABLED:
    14481449            libexec_scripts += ["scripts/xdg-open", "scripts/gnome-open", "scripts/gvfs-open"]
    14491450        if server_ENABLED:
     
    14521453            add_data_files("%s/xpra/" % libexec, libexec_scripts)
    14531454    if data_ENABLED:
    14541455        man_path = "share/man"
    1455         if OPENBSD:
     1456        if OPENBSD or FREEBSD:
    14561457            man_path = "man"
    14571458        add_data_files("%s/man1" % man_path,  ["man/xpra.1", "man/xpra_launcher.1"])
    14581459        add_data_files("share/applications",  glob.glob("xdg/*.desktop"))
     
    15061507
    15071508            if printing_ENABLED and POSIX:
    15081509                #install "/usr/lib/cups/backend" with 0700 permissions:
    1509                 copytodir("cups/xpraforwarder", "lib/cups/backend", chmod=0o700)
     1510                copytodir("cups/xpraforwarder", "%s/cups/backend" % libexec, chmod=0o700)
    15101511
    15111512            if x11_ENABLED:
    15121513                #install xpra_Xdummy if we need it: