Switch from svn to git
authorGreg Brockman <gdb@mit.edu>
Thu, 5 Aug 2010 03:20:35 +0000 (23:20 -0400)
committerGreg Brockman <gdb@mit.edu>
Mon, 23 Aug 2010 16:16:03 +0000 (12:16 -0400)
code/templates/unauth.mako
debian/changelog
debian/control
debian/invirt-web.init
debian/invirt-web.postinst
debian/invirt-web.preinst
debian/rules
files/etc/apache2/sites-available/svn.mako [deleted file]

index c9739d4..35e9bd5 100644 (file)
@@ -51,9 +51,9 @@ href="https://${config.web.hostname}:442/"><strong><font color="green">&rarr;</f
 
 <p>The XVM code base is a <strong>free software</strong> project under
 development, licensed under GPLv2+. If you're interested in using it,
-we'd be happy to help you set it up in your environment. Our Subversion
-repository is</p> <blockquote><a
-href="https://xvm.mit.edu:1111/">https://xvm.mit.edu:1111/</a></blockquote>
+we'd be happy to help you set it up in your environment. Our Git
+repositories are publicly viewable at</p> <blockquote><a
+href="http://xvm.mit.edu/gitweb">http://xvm.mit.edu/gitweb</a></blockquote>
 
 <p>xvm.mit.edu is provided by <a href="http://sipb.mit.edu/">SIPB</a>,
 the student computing group at MIT, with generous funding from <a
index f3b4f95..f196abb 100644 (file)
@@ -1,6 +1,7 @@
 invirt-web (0.1.6) unstable; urgency=low
 
   * Remove crufty invirt-web-iptables files
+  * Switch to git from svn
 
  -- Greg Brockman <gdb@mit.edu>  Sat, 14 Aug 2010 00:46:44 -0400
 
index f2a3f00..9942c8a 100644 (file)
@@ -2,7 +2,7 @@ Source: invirt-web
 Section: base
 Priority: extra
 Maintainer: Invirt project <invirt@mit.edu>
-Build-Depends: cdbs (>= 0.4.23-1.1), debhelper (>= 4.1.0), config-package-dev, subversion, invirt-base
+Build-Depends: cdbs (>= 0.4.23-1.1), debhelper (>= 4.1.0), config-package-dev, git-core, invirt-base
 Standards-Version: 3.7.2
 
 Package: invirt-web
index ad4c37c..f2031a0 100755 (executable)
@@ -11,7 +11,7 @@
 
 PACKAGE=invirt-web
 PARENTPACKAGE=apache2
-GEN_FILES=(/etc/apache2/sites-available/{default,ssl,svn} /etc/invirt-iptables/rules.d/50-invirt-web)
+GEN_FILES=(/etc/apache2/sites-available/{default,ssl} /etc/invirt-iptables/rules.d/50-invirt-web)
 
 . /lib/init/config-init.sh
 config_init "$1"
index 14f8469..3703667 100755 (executable)
@@ -20,7 +20,7 @@ set -e
 
 case "$1" in
     configure)
-       cd /var/www/invirt-web
+       cd /usr/share/invirt-web/package/code
        make all
 
        a2enmod rewrite
index 3245702..aaaeb0e 100644 (file)
@@ -19,6 +19,10 @@ case "$1" in
        if ! getent group invirt > /dev/null; then
            addgroup --system invirt
        fi
+
+       if dpkg --compare-versions "$2" lt 0.1.6~; then
+           mv /var/www/invirt-web /var/www/invirt-web.bak || :
+       fi
     ;;
 
     abort-upgrade)
index b890156..ec1e18d 100755 (executable)
@@ -10,4 +10,7 @@ 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
+       git clone $$(invirt-getconf git.uri)/invirt/packages/invirt-web $(DEB_DESTDIR)/usr/share/invirt-web/package
+       mkdir -p $(DEB_DESTDIR)/var/www/
+       ln -s /usr/share/invirt-web/package/code $(DEB_DESTDIR)/var/www/invirt-web
+       rm -rf $(DEB_DESTDIR)/var/www/invirt-web-repo
diff --git a/files/etc/apache2/sites-available/svn.mako b/files/etc/apache2/sites-available/svn.mako
deleted file mode 100644 (file)
index 03f6df3..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-<%
-from invirt.config import structs as cfg
-hostname = cfg.web.hostname
-errmail  = cfg.web.errormail
-svnpath  = cfg.svn.repopath
-%>
-Listen 1111
-<VirtualHost *:1111>
-       ServerAdmin ${errmail}
-       ServerName ${hostname}:1111
-       
-       <Directory />
-               Options FollowSymLinks
-               AllowOverride None
-       </Directory>
-       <Location />
-               DAV svn
-               SVNPath ${svnpath}
-               AuthType Basic
-               AuthName "xvm.mit.edu subversion repository"
-               AuthUserFile /etc/apache2/dav_svn.passwd
-               <LimitExcept GET PROPFIND OPTIONS REPORT>
-                       Require valid-user
-               </LimitExcept>
-       </Location>
-
-       ErrorLog /var/log/apache2/error.log
-
-       # Possible values include: debug, info, notice, warn, error, crit,
-       # alert, emerg.
-       LogLevel warn
-
-       CustomLog /var/log/apache2/svn_access.log combined
-       ServerSignature On
-
-       SSLEngine on
-
-       SSLCertificateFile ssl/server.crt
-       SSLCertificateKeyFile ssl/server.key
-</VirtualHost>