Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
client
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
2
Merge Requests
0
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a6d13d07
authored
Sep 08, 2014
by
Csók Tamás
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
client: (linuxInstaller) some flake8 correction
parent
6f104177
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
44 deletions
+17
-44
dist/install.sh
+0
-19
dist/setup.py
+17
-16
dist/uninstall.sh
+0
-9
No files found.
dist/install.sh
deleted
100755 → 0
View file @
6f104177
#!/bin/bash
sudo
apt-get install sshpass python-pip remmina-plugin-nx remmina-plugin-rdp xdg-user-dirs
sudo
cp cloud2 /usr/local/bin/
sudo
chmod +x /usr/local/bin/cloud2
sudo
cp cloud.py /usr/local/bin/
sudo
chmod +x /usr/local/bin/cloud.py
sudo
cp cloud_connect_from_linux.py /usr/local/bin/
sudo
chmod +x /usr/local/bin/cloud_connect_from_linux.py
sudo
cp cloud.svg /usr/share/icons/
sudo
cp cloud.desktop /usr/share/applications
sudo
chmod +x /usr/share/applications/cloud.desktop
sudo
update-desktop-database
cp cloud.desktop
$(
xdg-user-dir DESKTOP
)
chmod +x
$(
xdg-user-dir DESKTOP
)
/cloud.desktop
remmina
\ No newline at end of file
dist/setup.py
View file @
a6d13d07
...
...
@@ -13,6 +13,7 @@ if version < '2.2.3':
compile_args
=
[
'-DHAVE_LIBGCRYPT'
]
linker_args
=
[]
def
decide_options
(
arguments
,
compile_arguments
,
linker_arguments
):
for
argument
in
arguments
:
if
argument
[:
2
]
==
'-l'
:
...
...
@@ -20,6 +21,7 @@ def decide_options(arguments, compile_arguments, linker_arguments):
else
:
compile_arguments
.
append
(
argument
)
def
list_output
(
cmd
):
p
=
subprocess
.
Popen
(
cmd
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
,
...
...
@@ -27,25 +29,27 @@ def list_output(cmd):
return
p
.
communicate
()[
0
]
.
split
()
cmd
=
[
'pkg-config'
,
'--libs'
,
'--cflags'
,
'gtk+-2.0'
,
'glib-2.0'
]
decide_options
(
list_output
(
cmd
),
compile_args
,
linker_args
)
decide_options
(
list_output
(
cmd
),
compile_args
,
linker_args
)
cmd
=
[
'libgcrypt-config'
,
'--libs'
,
'--cflags'
]
decide_options
(
list_output
(
cmd
),
compile_args
,
linker_args
)
decide_options
(
list_output
(
cmd
),
compile_args
,
linker_args
)
remminapasswd
=
Extension
(
'remminapasswd'
,
sources
=
[
'remminapasswdmodule.c'
,
'remmina_crypt.c'
,
'remmina_pref.c'
,
'remmina_string_array.c'
],
extra_compile_args
=
compile_args
,
extra_link_args
=
linker_args
)
sources
=
[
'remminapasswdmodule.c'
,
'remmina_crypt.c'
,
'remmina_pref.c'
,
'remmina_string_array.c'
],
extra_compile_args
=
compile_args
,
extra_link_args
=
linker_args
)
setup
(
name
=
'CIRCLE Client'
,
version
=
'0.1'
,
description
=
'Connectivity helper for CIRCLE cloud system'
,
long_description
=
(
'Tool to enhance ease of use of the CIRCLE by '
+
'the use of third party connetcion handler programs. These programs '
+
'are auto launched and configured by the Client.'
),
long_description
=
(
'Tool to enhance ease of use of the CIRCLE by '
'the use of third party connetcion handler programs. '
'These programs are auto launched and '
'configured by the Client.'
),
author
=
'Csok Tamas'
,
author_email
=
'csok.tamas@cloud.bme.hu'
,
maintainer
=
'BME IK'
,
...
...
@@ -58,7 +62,5 @@ setup(name='CIRCLE Client',
'Intended Audience :: End Users/Desktop'
,
'Intended Audience :: System Administrators'
,
'Programming Language :: Python/C'
,
'Topic :: Office/Business'
,
],
ext_modules
=
[
remminapasswd
],
)
\ No newline at end of file
'Topic :: Office/Business'
],
ext_modules
=
[
remminapasswd
])
dist/uninstall.sh
deleted
100755 → 0
View file @
6f104177
#!/bin/bash
sudo
rm
-f
/usr/local/bin/remminapasswd
sudo
rm
-f
/usr/local/bin/cloud2
sudo
rm
-f
/usr/local/bin/cloud.py
sudo
rm
-f
/usr/local/bin/cloud_connect_from_linux.py
sudo
rm
-f
/usr/share/icons/cloud.svg
rm
-f
$(
xdg-user-dir DESKTOP
)
/cloud.desktop
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment