cduce mailing lists

Date Tags cduce

Today I finished to migrate all cduce mailing list to pps. Once I got the archive, it was fairly easy to recreate the html pages (with the arch script in the mailman directory) and to subscribe everybody to the new lists. The old sympa server and email address is definitely gone.

I moved all mailing lists from @cduce.org to @mailman.cduce.org. All information are here : http://www.cduce.org/contacts.html

Today I’ve also configured spamassassin + amavis-new + clamavd on our mail server. Hopefully this will keep our lists clean.

I didn’t test it properly, but if you are a spammer feel free to help me :)


new release (cduce 0.5.1)

Date Tags cduce

It has been a busy month for cduce. We added the windows package, cleaned up the distribution and the svn repository, updated the website and added a couple of minor features to cduce itself.

Today we released a minor update: version 0.5.1 I also spent the day updating the debian package.

We had some minor problem with the web server. From time to time the dom0 reboots leaving the website dead. I’m still working to solve this problem.


setacl

Date

I’ve just learned how to manage shared group directories with the linux access control lists. The package in debian is called acl and we have two command line tools: setfacl, getfacl. To give read/write access to the group web in public_html, this is quite simple.

sudo setfacl -R -d -m group:web:rw- public_html

ah… and it works with nfs as well. This should also solve various problems with svn.

chgrp cvs db db/transactions db/write-lock db/revs db/revprops hooks locks
chmod 2770 db db/transactions db/revs db/revprops
chmod 660 db/write-lock
chmod 750 hooks
chmod 770 locks
setfacl -m "group:svn-ro:r-x" db db/revs db/revprops locks

SVN Snapshots script

Date Tags bash / svn

This is a small script to generate code snapshots from the svn repository.

#!/bin/bash
#
# MakeSvnSnapshot.sh
# Purpose: To make easily downloadable (clean) versions of a snapshot of code.
# Intended Use: Called as a daily/weekly/etc cron job
#
# Author: Colin Ross <cross@php.net>
# Modified Pietro Abate <pietro.abate@pps.jussieu.fr>
#
# License:
# This work is licensed under the
# Creative Commons Attribution-Share Alike 2.5 License.
# To view a copy of this license,
# visit http://creativecommons.org/licenses/by-sa/2.5/
# or send a letter to
# Creative Commons
# 543 Howard Street
# 5th Floor
# San Francisco, California, 94105, USA.
#
#

# Ex: MakeSnapshot.sh /tmp http://svn.cduce.org/cduce/trunk
: ${1?"Usage: $0 snapshot-dir svn-url"}

# Creates an up-to-date tgz of the latest svn snapshot
SNAP_DIR=$1
SVN_URI=$2
CUR_DATE=`date +%Y%m%d`

cd $SNAP_DIR

if [ -f .svn-snapshot-log ]; then
  rm .svn-snapshot-log
fi

#if this isn't a working copy
if [ ! -d .src/.svn ]; then
  svn co $SVN_URI .src >> .svn-snapshot-log # check it out
fi
svn cleanup .src

# just update the working copy
svn up .src >> .svn-snapshot-log
# and get the current revision
REV=`svn info .src | grep Revision | cut -f2 -d " "`

# if the REV has changed...
if [ ! -d cduce-svn-$REV ]; then
  #export it to get rid of .svn files
  svn export .src cduce-svn-$REV >> .svn-snapshot-log
  # tgz it up
  tar cvf - cduce-svn-$REV  | gzip > cduce-svn-$REV-$CUR_DATE.tar.gz

  #keep only the latest 10 snapshots
  n=`ls cduce-svn-*.tar.gz| wc -l`
  if [ $n -gt 10 ]; then
      find -ctime +10 -name "*.tgz" -exec mv {} /tmp \;
  fi

  # update the current symlink
  if [ -f cduce-svn-current.tar.gz ]
   then
     rm -f cduce-svn-current.tar.gz
  fi
  ln -s cduce-svn-$REV-$CUR_DATE.tar.gz cduce-svn-current.tar.gz
fi

cd -

A small update about the transition

Date

Host

Recentely I’ve rebuilt the machine from the ground up as it was installed as a 32 bit system while the processor was a 64 bits. Now it seems much more stable (no random reboots) . The dev machine (brome.pps.jussieu.fr soon to be dev.cduce.org) is running debian unstable with the latest ocaml compiler and dev tools.

Mailing list

I’ve added two new mailing lists: devel@mailman.cduce.org  commit@mailman.cduce.org

The first one is for development discussion, the second one is linked to a svn hook to send a message to the mailing list each time somebody commits a change to the svn repository. I’ve disabled it at the moment…

users@mailman.cduce.org : This is the old users@cduce.org . I’m still waiting for the tarball of the archives from the ens to move everybody across.

SVN repo

I’ve clean up the repository. I’m moving the webpages outside the cduce distribution so to make it easy to update the website just using the debian cduce package. I’ve also removed a bit of legacy file from the repository like the debian directory as the debian package is now handled on alioth.debian.org

I’ve imported xml2cd (from Till Varoquaux) in the svn repository.

I’ve also written a small script to create nightly snapshot of the code from the svn repo. I plan to change it so to generate a release package each time we tag the repo with a release tag.

Webiste

I’ll be updating the website this week with new info about the svn repo, mailing list, etc.

I’ve created trac.cduce.org . I’m thinking of writing a bit of info reg the cduce development and maybe start using it as a bug tracking system for cduce. This is still work in progress and at the moment is just an empty shell.

Windows port

Last week she manage to install micgw and the ocaml compiler and Karoline is working to compile cduce. An other possibility to compile cduce on windows is godi + cygwin

Few links: http://www.cocan.org/ocaml_mingw_port http://www.cocan.org/ocaml_on_windows * http://godi.ocaml-programming.de/