sipb-xen-vnc-server (1.2) unstable; urgency=low
* Move certificate files into /usr/share/sipb-xen-vnc-server
+ * Switch to distutils-based package
- -- Evan Broder <broder@mit.edu> Tue, 28 Oct 2008 14:59:24 -0400
+ -- Evan Broder <broder@mit.edu> Tue, 28 Oct 2008 15:07:33 -0400
sipb-xen-vnc-server (1.1) unstable; urgency=low
Section: base
Priority: extra
Maintainer: SIPB Xen Project <sipb-xen@mit.edu>
-Build-Depends: cdbs (>= 0.4.23-1.1), debhelper (>= 4.1.0), subversion
+Build-Depends: cdbs (>= 0.4.23-1.1), debhelper (>= 4.1.0),
+ python-all-dev (>=2.3.5-11), python-support (>= 0.5.3),
+ python-setuptools, python-debian, python-apt
Standards-Version: 3.7.2
Package: sipb-xen-vnc-server
Architecture: all
-Depends: ${misc:Depends}, daemon, python-twisted-core, python-xen-3.2
+Depends: ${python:Depends}, ${misc:Depends}, daemon,
+ python-twisted-core, python-xen-3.2
+Provides: ${python:Provides}
+XB-Python-Version: ${python:Versions}
Description: Install and enable the VNC server
#!/usr/bin/make -f
+DEB_PYTHON_SYSTEM=pysupport
+
include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/python-distutils.mk
binary-fixup/sipb-xen-vnc-server::
- svn co https://sipb-xen-dev.mit.edu:1111/trunk/packages/sipb-xen-vnc-server/code/ $(DEB_DESTDIR)/usr/local/lib/sipb-xen-vnc-server
+ mv $(DEB_DESTDIR)usr/bin/sipb-xen-vnc-server $(DEB_DESTDIR)usr/sbin/sipb-xen-vnc-server
+
+clean::
+ rm -rf invirt.vnc.egg-info
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="The sipb-xen VNC Proxy Server"
NAME=sipb-xen-vnc-server
-DAEMON=/usr/local/lib/sipb-xen-vnc-server/vncproxy.py
+DAEMON=/usr/sbin/sipb-xen-vnc-server
DAEMON_ARGS=""
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
--- /dev/null
+from extauth import *
--- /dev/null
+#!/usr/bin/python
+
+from os import path
+from debian_bundle.changelog import Changelog
+from debian_bundle.deb822 import Deb822
+from email.utils import parseaddr
+from setuptools import setup
+
+version = Changelog(open(path.join(path.dirname(__file__), 'debian/changelog')).read()).\
+ get_version().full_version
+
+maintainer_full = Deb822(open(path.join(path.dirname(__file__), 'debian/control')))['Maintainer']
+maintainer, maintainer_email = parseaddr(maintainer_full)
+
+setup(
+ name='invirt.vnc',
+ version=version,
+ maintainer=maintainer,
+ maintainer_email=maintainer_email,
+
+ packages = ['invirt.vnc'],
+ package_dir = {'invirt': 'python'},
+ scripts=['sipb-xen-vnc-server']
+)
#! /usr/bin/python
from twisted.internet import reactor, ssl
-import vncexternalauth
+from invirt import vnc
sslContext = ssl.DefaultOpenSSLContextFactory(
'/usr/share/sipb-xen-vnc-server/vncproxykey.pem',
)
if '__main__' == __name__:
- reactor.listenSSL(10003,vncexternalauth.VNCAuthFactory("localhost"), contextFactory=sslContext)
+ reactor.listenSSL(10003,vnc.VNCAuthFactory("localhost"), contextFactory=sslContext)
reactor.run()