all: kill chmod compile
chmod:
- chgrp -R sipb-xen . 2>/dev/null || true
+ chgrp -R invirt . 2>/dev/null || true
chmod -R g+w . 2>/dev/null || true
kill:
--- /dev/null
+# will differ dev/prod
+files/etc/apache2/sites-available/ssl: web hostname
+files/etc/apache2/sites-available/svn: web hostname
+code/Makefile: base URI
+
+# may differ dev/prod?
+files/etc/apache2/sites-available/default: assumes trac
+files/etc/init.d/apache2.invirt: afs cell (for svn?)
+code/templates/error.tmpl: xvm@mit.edu
+code/templates/help.tmpl: assumes trac
+code/templates/list.tmpl: SIPB Virtual Servers
+code/templates/skeleton.tmpl: SIPB Virtual Servers (twice)
+code/templates/skeleton.tmpl: xvm@mit.edu
+code/templates/unauth.tmpl: tons of text
+code/templates/unauth.tmpl: https://xvm.mit.edu
+code/static/about.html: tons of text
+code/static/about.html: SIPB Virtual Servers
+
+# will take real code to generalize
+code/getafsgroups.py: lockers, /mit
+code/getafsgroups.py: use of pts for authz
+code/main.py: lockers, pts, in help text
+invirt-web (0.0.1) unstable; urgency=low
+
+ * sipb-xen-www -> invirt-web
+
+ -- Greg Price <price@mit.edu> Sat, 25 Oct 2008 22:09:29 -0400
+
sipb-xen-www (3.18) unstable; urgency=low
* sipb-xen-database-common -> invirt-database
-Source: sipb-xen-www
+Source: invirt-web
Section: base
Priority: extra
-Maintainer: SIPB Xen Project <sipb-xen@mit.edu>
+Maintainer: Invirt Project <invirt@mit.edu>
Build-Depends: cdbs (>= 0.4.23-1.1), debhelper (>= 4.1.0), config-package-dev, subversion, sipb-xen-base
Standards-Version: 3.7.2
-Package: sipb-xen-www
+Package: invirt-web
Architecture: all
Depends: ${misc:Depends}, libapache2-mod-fcgid, python-flup,
python-cheetah, python-simplejson, invirt-database,
sipb-xen-vnc-client, kstart, debathena-afs-config, sipb-xen-base,
libapache2-svn, libapache2-mod-auth-kerb, postfix, subversion, zephyr-clients
-Description: Install the sipb-xen-dev website
+Description: the Invirt web interface
--- /dev/null
+#
+# cron-jobs for invirt-web
+# Refresh the ACL cache
+#
+
+MAILTO=root
+
+*/5 * * * * www-data python /var/www/invirt-web/cache_acls.py
#!/bin/bash
### BEGIN INIT INFO
-# Provides: sipb-xen-www
+# Provides: invirt-web
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
-# Short-Description: sipb-xen web server
+# Short-Description: Invirt web server
# Description:
### END INIT INFO
-PACKAGE=sipb-xen-www
+PACKAGE=invirt-web
PARENTPACKAGE=apache2
GEN_FILES=(/etc/apache2/sites-available/{ssl,svn})
case "$1" in
configure)
- cd /var/www/sipb-xen-www
+ cd /var/www/invirt-web
make clean && make all
- chgrp -R sipb-xen .
+ chgrp -R invirt .
chmod -R g+w .
# Our init script proxies all requests Apache's, so Apache's
case "$1" in
install|upgrade)
- if ! getent group sipb-xen > /dev/null; then
- addgroup --system sipb-xen
+ if ! getent group invirt > /dev/null; then
+ addgroup --system invirt
fi
;;
#!/bin/sh
-# prerm script for sipb-xen-www
+# prerm script for invirt-web
#
# see: dh_installdeb(1)
#!/usr/bin/make -f
+DEB_DIVERT_EXTENSION = .invirt
+DEB_DIVERT_FILES_invirt-web += \
+ /etc/init.d/apache2
+
include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/config-package.mk
+
+DEB_UPDATE_RCD_PARAMS_invirt-web += defaults 91 9
+
+binary-fixup/invirt-web::
+ svn co $$(invirt-getconf svn.uri)/trunk/packages/invirt-web/code/ $(DEB_DESTDIR)/var/www/invirt-web
+++ /dev/null
-#
-# cron-jobs for sipb-xen-www
-# Refresh the ACL cache
-#
-
-MAILTO=root
-
-*/5 * * * * www-data python /var/www/sipb-xen-www/cache_acls.py
<VirtualHost *:80>
ServerAdmin webmaster@localhost
- DocumentRoot /var/www/sipb-xen-www
- <Directory /var/www/sipb-xen-www>
+ DocumentRoot /var/www/invirt-web
+ <Directory /var/www/invirt-web>
Options Indexes FollowSymLinks MultiViews ExecCGI
AllowOverride None
Order allow,deny
RewriteRule ^/sipb-xen - [L]
RewriteRule ^/kill.cgi - [L]
RewriteRule ^/~ - [L]
- RewriteRule ^/(.*) /var/www/sipb-xen-www/main.fcgi/$1 [L]
+ RewriteRule ^/(.*) /var/www/invirt-web/main.fcgi/$1 [L]
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
Listen 446
<%def name="invirt_webinterface()">
- DocumentRoot /var/www/sipb-xen-www
- <Directory /var/www/sipb-xen-www>
+ DocumentRoot /var/www/invirt-web
+ <Directory /var/www/invirt-web>
Options Indexes FollowSymLinks MultiViews ExecCGI
AllowOverride None
Order allow,deny
RewriteRule ^/wiki(.*) - [L]
RewriteRule ^/kill.cgi - [L]
RewriteRule ^/~ - [L]
- RewriteRule ^/(.*) /var/www/sipb-xen-www/main.fcgi/$1 [L]
+ RewriteRule ^/(.*) /var/www/invirt-web/main.fcgi/$1 [L]
RewriteLog /var/log/apache2/rewrite.log
RewriteLogLevel 0
ServerAdmin ${errmail}
ServerName ${hostname}:446
- DocumentRoot /var/www/sipb-xen-www
+ DocumentRoot /var/www/invirt-web
<Directory />
Options Indexes FollowSymLinks MultiViews ExecCGI
AllowOverride None