Revisión 54
Añadido por jredrejo hace alrededor de 14 años
wifi-ltsp/trunk/parsehostapd/escanea.py | ||
---|---|---|
es otro diccionario cuyas claves con las características
|
||
recogidas por iwlist
|
||
"""
|
||
|
||
#Si hostapd está corriendo iwlist scan no funciona:
|
||
Popen(["invoke-rc.d","hostapd","stop"]).wait()
|
||
Popen(["ifconfig",interface,"up"]).wait()
|
||
|
||
cmd = 'iwlist ' + interface + ' scan'
|
||
resultado = Ejecuta(cmd)
|
||
# Divide las redes, utilizando Cell como punto de división
|
wifi-ltsp/trunk/debian/rules | ||
---|---|---|
#!/usr/bin/make -f
|
||
# -*- makefile -*-
|
||
# Uncomment this to turn on verbose mode.
|
||
#export DH_VERBOSE=1
|
||
|
||
|
||
build: build-stamp
|
||
|
||
build-stamp:
|
||
dh_testdir
|
||
touch build-stamp
|
||
|
||
clean:
|
||
dh_testdir
|
||
dh_testroot
|
||
rm -f build-stamp configure-stamp
|
||
rm -Rf build
|
||
|
||
dh_clean
|
||
|
||
install: build
|
||
dh_testdir
|
||
dh_testroot
|
||
dh_clean -k
|
||
dh_installdirs
|
||
python setup.py install --prefix=/usr --root=$(CURDIR)/debian/wifi-ltsp
|
||
|
||
|
||
# Build architecture-independent files here.
|
||
binary-indep: build install
|
||
dh_pysupport
|
||
dh_testdir
|
||
dh_testroot
|
||
dh_installchangelogs
|
||
dh_installdocs
|
||
dh_installman
|
||
dh_install
|
||
dh_compress
|
||
dh_fixperms
|
||
dh_installdeb
|
||
dh_shlibdeps
|
||
dh_gencontrol
|
||
dh_md5sums
|
||
dh_builddeb
|
||
|
||
# Build architecture-dependent files here.
|
||
binary-arch: build install
|
||
|
||
binary: binary-indep binary-arch
|
||
.PHONY: build clean binary-indep binary-arch binary install
|
||
wifi-ltsp/trunk/debian/control | ||
---|---|---|
Source: wifi-ltsp
|
||
Section: admin
|
||
Priority: optional
|
||
Maintainer: José L. Redrejo Rodríguez <jredrejo@debian.org>
|
||
Standards-Version: 3.8.2
|
||
Build-Depends: debhelper (>= 5.0.37.2), python-support (>= 0.3)
|
||
Build-Depends-Indep: python
|
||
Homepage:http://desarrollo.educarex.es/linex/projects/servidoressecundaria/repository/show/wifi-ltsp
|
||
|
||
Package: wifi-ltsp
|
||
Architecture: all
|
||
Depends: ${python:Depends}, hostapd
|
||
Description: Hostapd auto configuration
|
||
Configura automáticamente hostapd en función de la información
|
||
recibida desde el servidor del centro con los horarios de los
|
||
profesores.
|
||
.
|
||
Escoje el mejor canal wifi disponible, autoriza a los alumnos
|
||
correspondientes, coloca el essid del aula y reinicia hostapd
|
wifi-ltsp/trunk/debian/dirs | ||
---|---|---|
usr/bin
|
wifi-ltsp/trunk/debian/compat | ||
---|---|---|
5
|
wifi-ltsp/trunk/debian/install | ||
---|---|---|
|
wifi-ltsp/trunk/debian/changelog | ||
---|---|---|
wifi-ltsp (0.1-1) unstable; urgency=low
|
||
|
||
* First version
|
||
|
||
-- José L. Redrejo Rodríguez <jredrejo@debian.org> Wed, 09 Feb 2011 12:42:48 +0100
|
||
|
wifi-ltsp/trunk/debian/copyright | ||
---|---|---|
This package was debianized by José L. Redrejo Rodríguez <jredrejo@edu.juntaextremadura.net> on
|
||
Wed, 09 Feb 2011 12:42:48 +0100.
|
||
|
||
|
||
Upstream Authors: José L. Redrejo Rodríguez <jredrejo@edu.juntaextremadura.net>
|
||
Francisco Mora Sánchez <adminies.maestrojuancalero@edu.juntaextremadura.net>
|
||
Isabel Aparicio Pérez <prog5pe@edu.juntaextremadura.net>
|
||
|
||
Copyright:
|
||
|
||
Copyright (C) 2011 José L. Redrejo Rodríguez <jredrejo@edu.juntaextremadura.net>,
|
||
Francisco Mora Sánchez <adminies.maestrojuancalero@edu.juntaextremadura.net>
|
||
Isabel Aparicio Pérez <prog5pe@edu.juntaextremadura.net>
|
||
|
||
This program is free software; you can redistribute it and/or modify
|
||
it under the terms of the GNU General Public License as published by
|
||
the Free Software Foundation; either version 3 of the License, or
|
||
(at your option) any later version.
|
||
|
||
This program is distributed in the hope that it will be useful,
|
||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
GNU General Public License for more details.
|
||
|
||
You should have received a copy of the GNU General Public License
|
||
along with this program; if not, write to the Free Software
|
||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||
|
||
On Debian GNU/Linux systems, the complete text of the GNU General
|
||
Public License can be found in `/usr/share/common-licenses/GPL'.
|
wifi-ltsp/trunk/setup.py | ||
---|---|---|
#!/usr/bin/env python
|
||
# -*- coding: utf-8 -*-
|
||
|
||
from distutils.core import setup
|
||
import os
|
||
|
||
datafiles = []
|
||
|
||
|
||
setup(name='wifi-ltsp',
|
||
version='0.1',
|
||
description='Archivos de configuración de hostapd con wifi',
|
||
long_description = """Really long text here.""",
|
||
author = 'José L. Redrejo Rodríguez, Francisco Mora Sánchez y Elisa Aparicio Pérez',
|
||
author_email = 'jredrejo@debian.org',
|
||
license = "GNU GPLv3",
|
||
packages=['parsehostapd'],
|
||
package_dir={'parsehostapd': 'parsehostapd/'},
|
||
url = 'http://desarrollo.educarex.es/linex/projects/servidoressecundaria/repository/show/wifi-ltsp',
|
||
# Those are going to be installed on /usr/bin/
|
||
scripts=['configura_hostapd.py'],
|
||
|
||
data_files=datafiles
|
||
)
|
||
|
Exportar a: Unified diff
empaquetado y alguna corrección menor