1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-21 13:28:08 +01:00

Fixed up setup.py and wpath.py to install the curses client.

Added a wicd-curses wrapper script to /usr/bin
Made curses *.py files executable
All of this passes the build test, but not the "WFM" test. :)
This commit is contained in:
Robby Workman
2009-01-01 02:02:26 -06:00
parent 4798d26f9a
commit 066237718f
6 changed files with 11 additions and 1 deletions

0
curses/curses_misc.py Normal file → Executable file
View File

0
curses/prefs_curses.py Normal file → Executable file
View File

0
curses/wicd-curses.py Normal file → Executable file
View File

2
in/scripts=wicd-curses.in Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/bash
exec python -O %LIB%wicd-curses.py $@

View File

@@ -64,6 +64,7 @@ no_install_man = %NO_INSTALL_MAN%
no_install_kde = %NO_INSTALL_KDE%
no_install_acpi = %NO_INSTALL_ACPI%
no_install_docs = %NO_INSTALL_DOCS%
no_install_ncurses = %NO_INSTALL_NCURSES%
def chdir(file):
"""Change directory to the location of the specified file.

View File

@@ -84,7 +84,8 @@ class configure(Command):
('no-install-kde', None, 'do not install the kde autostart file'),
('no-install-acpi', None, 'do not install the suspend.d and resume.d acpi scripts'),
('no-install-pmutils', None, 'do not install the pm-utils hooks'),
('no-install-docs', None, 'do not install the auxiliary documentation')
('no-install-docs', None, 'do not install the auxiliary documentation'),
('no-install-ncurses', None, 'do not install the ncurses client')
]
@@ -117,6 +118,7 @@ class configure(Command):
self.no_install_acpi = False
self.no_install_pmutils = False
self.no_install_docs = False
self.no_install_ncurses = False
# Determine the default init file location on several different distros
@@ -392,6 +394,11 @@ try:
(wpath.backends, ['wicd/backends/be-external.py', 'wicd/backends/be-ioctl.py']),
(wpath.autostart, ['other/wicd-tray.desktop', ]),
]
if not wpath.no_install_ncurses:
data.append(( wpath.lib, ['curses/curses_misc.py']))
data.append(( wpath.lib, ['curses/prefs_curses.py']))
data.append(( wpath.lib, ['curses/wicd-curses.py']))
data.append(( wpath.bin, ['scripts/wicd-curses']))
piddir = os.path.dirname(wpath.pidfile)
if not piddir.endswith('/'):
piddir += '/'