1 git clone git://github.com/blundellc/cran2deb.git
3 apt-get system requirements from DESCRIPTION
9 # add a group for cran2deb people
11 usermod -a -G cran2deb cb
12 usermod -a -G cran2deb edd
15 mkdir /var/www/cran2deb
16 chgrp cran2deb /var/www/cran2deb
17 chmod 3775 /var/www/cran2deb
19 # install prereq R packages
20 r -e "install.packages(c('ctv','RSQLite','DBI','digest'))"
21 R CMD INSTALL cran2deb
23 # set up cran2deb space, as per README
24 cp /usr/local/lib/R/site-library/cran2deb/exec/cran2deb /usr/local/bin
27 chgrp cran2deb /etc/cran2deb
28 chmod 3775 /etc/cran2deb
29 copy ROOT/etc/* to /etc/cran2deb
30 ln -s /var/www/cran2deb/ /etc/cran2deb/archive
31 edit /etc/cran2deb/pbuilder.in:
32 OTHERMIRROR='deb http://localhost/users/cb/cran2deb/ unstable/$(ARCH)/ | deb http://localhost/users/cb/cran2deb/ unstable/all/'
33 MIRRORSITE='http://ftp.debian.org/debian/'
35 OTHERMIRROR='deb http://localhost/cran2deb/ unstable/$(ARCH)/ | deb http://localhost/cran2deb/ unstable/all/'
36 MIRRORSITE='http://ftp.at.debian.org/debian/'
38 # fix permissions for group usage.
39 mkdir /var/cache/cran2deb
40 chgrp cran2deb /var/cache/cran2deb
41 chmod 3775 /var/cache/cran2deb
42 chgrp -R cran2deb $root
46 (log out then log in to get gid cran2deb)
48 # build pbuilder archive, initialise database
55 apt-get install sqlite3