debian/0000755000000000000000000000000012251441323007163 5ustar debian/init0000755000000000000000000000310112251440740010051 0ustar #!/bin/sh # # /etc/init.d script for whiteboard ### BEGIN INIT INFO # Provides: whiteboard # Required-Start: $network $remote_fs # Required-Stop: $network $remote_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: start and stop whiteboard # Description: whiteboard is a collaborative web editor ### END INIT INFO PATH=/sbin:/usr/sbin:/bin:/usr/bin DESC="Whiteboard daemon" NAME=whiteboard DAEMON=/var/lib/whiteboard/rundaemon.py PIDFILE=/var/run/$NAME.pid SCRIPTNAME=/etc/init.d/$NAME # Exit if the package is not installed [ -x "$DAEMON" ] || exit 0 # Read configuration variable file if it is present [ -r /etc/default/$NAME ] && . /etc/default/$NAME # Load the VERBOSE setting and other rcS variables . /lib/init/vars.sh # Define LSB log_* functions. # Depend on lsb-base (>= 3.2-14) to ensure that this file is present # and status_of_proc is working. . /lib/lsb/init-functions do_start() { start-stop-daemon --start --exec $DAEMON --pidfile $PIDFILE -m \ -c www-data -d /var/lib/whiteboard -b } do_stop() { start-stop-daemon --stop --pidfile $PIDFILE } case "$1" in start) log_daemon_msg "Starting $DESC" "$NAME" do_start log_end_msg 0 ;; stop) log_daemon_msg "Stopping $DESC" "$NAME" do_stop log_end_msg 0 ;; status) ;; restart|force-reload) # # If the "reload" option is implemented then remove the # 'force-reload' alias # log_daemon_msg "Restarting $DESC" "$NAME" do_stop do_start log_end_msg 0 ;; *) echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2 exit 3 ;; esac : debian/control0000644000000000000000000000146012251437562010601 0ustar Source: whiteboard Section: net Priority: optional Maintainer: Roland Stigge Build-Depends: debhelper (>= 9), python, dh-python Standards-Version: 3.9.5 Homepage: http://whiteboard.debian.net/ Package: whiteboard Architecture: all Depends: python, libapache2-mod-python, apache2, ${shlibs:Depends}, ${misc:Depends} Recommends: python-docutils, python-textile, python-markdown Description: simple collaborative text editor for the web whiteboard provides a simple text editor for the web for working simultaneously and collaboratively on text documents. It's based on mobwrite. Several markup styles for rendering to static pages views are supported: Textile, reStructured and Markdown. whiteboard is based on mobwrite and contains the same system as known from http://whiteboard.debian.net/ debian/changelog0000644000000000000000000000023212251435412011034 0ustar whiteboard (0.1~1-1) unstable; urgency=low * Initial release. (Closes: #731801) -- Roland Stigge Sun, 08 Dec 2013 10:40:50 +0100 debian/links0000644000000000000000000000037012251044620010225 0ustar var/lib/whiteboard/mobwrite/compressed_form.js var/lib/whiteboard/compressed_form.js var/lib/whiteboard/htaccess var/lib/whiteboard/.htaccess var/lib/whiteboard/wb.py var/lib/whiteboard/wb.py.cgi var/lib/whiteboard/q.py var/lib/whiteboard/q.py.mpy debian/rules0000755000000000000000000000202312251437766010260 0ustar #!/usr/bin/make -f %: dh $@ --with python2 override_dh_install: dh_install rm -rf debian/whiteboard/var/lib/whiteboard/mobwrite/demos override_dh_fixperms: dh_fixperms chmod a+x debian/whiteboard/var/lib/whiteboard/wb.py \ debian/whiteboard/var/lib/whiteboard/q.py \ debian/whiteboard/var/lib/whiteboard/rundaemon.py \ debian/whiteboard/var/lib/whiteboard/mobwrite/daemon/*.py \ debian/whiteboard/var/lib/whiteboard/mobwrite/daemon/lib/*.py \ debian/whiteboard/var/lib/whiteboard/mobwrite/tools/*.py #chmod a+w debian/whiteboard/var/lib/whiteboard/data chown www-data.www-data debian/whiteboard/var/lib/whiteboard/data #python rundaemon.py TMP=get-orig-source-tmp get-orig-source: rm -rf $(TMP) mkdir $(TMP) cd $(TMP) && darcs get http://code.zgib.net/whiteboard/ cd $(TMP)/whiteboard && darcs get http://code.zgib.net/mobwrite/ rm -rf $(TMP)/whiteboard/_darcs $(TMP)/whiteboard/mobwrite/_darcs cd $(TMP) && \ VERSION=0.1~vcs`date +%Y%m%d` && \ tar cfj ../whiteboard-$$VERSION.tar.bz2 whiteboard rm -rf $(TMP) debian/patches/0000755000000000000000000000000012251057671010623 5ustar debian/patches/dont-show-index.patch0000644000000000000000000000223612251057671014676 0ustar --- whiteboard-0.1~1.orig/header.html +++ whiteboard-0.1~1/header.html @@ -44,21 +44,3 @@ URL is secret, it is safe from all but t -About This Service:

- -This service is run by Richard -Darst. It should be considered alpha/beta right now, but stable -enough and with a responsive person to help fix stuff.

- -I certainly didn't do all of this myself, I just trivially hooked it -together. See http://code.google.com/p/google-mobwrite/ -for the true source. Mobwrite is released under the Apache License, -and I hereby release all of my code under the same.

- -For help/questions, see Richard (nick darst) in #debian-nyc on -OFTC.

- -


-code and other stuff below this line (will be darcs-able sometime in -the future.) --- whiteboard-0.1~1.orig/htaccess +++ whiteboard-0.1~1/htaccess @@ -1,7 +1,8 @@ HeaderName header.html AddDefaultCharset utf-8 AddCharset utf-8 .txt .html .wb .md .textile .rst -IndexOptions Charset=utf-8 +IndexOptions Charset=utf-8 SuppressLastModified +IndexIgnore * AddHandler cgi-script cgi .cgi AddHandler mod_python .mpy debian/patches/fix-textile-api.patch0000644000000000000000000000067112251047751014657 0ustar --- whiteboard-0.1~1.orig/wb.py +++ whiteboard-0.1~1/wb.py @@ -108,7 +108,7 @@ class WhiteboardPage(object): import textile text = self.raw_text text = text.encode('utf-8') - text = textile.textile(text, sanitize=True, encoding='utf-8') + text = textile.textile(text, encoding='utf-8') return header + text def ext_rst(self): """Render the whiteboard using ReStructuredText""" debian/patches/series0000644000000000000000000000005412251057067012036 0ustar fix-textile-api.patch dont-show-index.patch debian/dirs0000644000000000000000000000003012251043676010051 0ustar var/lib/whiteboard/data debian/README.Debian0000644000000000000000000000103512251047447011234 0ustar whiteboard for Debian ===================== After installation, please edit /etc/apache2/sites-available/whiteboard-vhost to adjust your domain name, enable the site with: # a2ensite whiteboard-vhost then enable the required modules: # a2enmod rewrite # a2enmod python and restart apache: # /etc/init.d/apache2 restart Now, whiteboard should be available under the domain you configured in /etc/apache2/sites-available/whiteboard-vhost, e.g. whiteboard.domain.tld -- Roland Stigge , Sun, 08 Dec 2013 10:59:58 +0100 debian/whiteboard-vhost0000644000000000000000000000050312251046147012402 0ustar ServerName wb.zgib.net ServerAlias wb2.zgib.net whiteboard.debian.net whiteboard.antcom.de *.wb.zgib.net DocumentRoot /var/lib/whiteboard RewriteEngine Off #KeepAliveTimeout 1 #SetEnvIf Request_URI q\.py\.mpy nokeepalive debian/install0000644000000000000000000000031612251046454010562 0ustar cleanup.py header.html htaccess mobwrite options.html.template q.py rundaemon.py test_server.py wb.html.template wb.py whiteboard.html var/lib/whiteboard debian/whiteboard-vhost etc/apache2/sites-available debian/source/0000755000000000000000000000000012251047542010470 5ustar debian/source/format0000644000000000000000000000001412251047542011676 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000060412251436112011116 0ustar Format: http://dep.debian.net/deps/dep5 Upstream-Name: whiteboard Source: http://whiteboard.debian.net/ Files: * Copyright: Copyright 2011, 2012 Richard Darst Copyright 2008 Google Inc. License: Apache-2.0 /usr/share/common-licenses/Apache-2.0 Files: debian/* Copyright: 2013 Roland Stigge License: Apache-2.0 /usr/share/common-licenses/Apache-2.0 debian/compat0000644000000000000000000000000212251040147010360 0ustar 9