]> git.donarmstrong.com Git - cran2deb.git/blob - branch/double_build/inst/doc/INSTALL_NOTES
5acec950bd5c49bd9cad927709adb32082f85ff6
[cran2deb.git] / branch / double_build / inst / doc / INSTALL_NOTES
1 *WARNING* This is not up to date! The major difference is that now we have
2 *WARNING* system-specific configurations, archives and results, so that several
3 *WARNING* of the paths have either a 'sys/FOO' part or a 'FOO' part where FOO
4 *WARNING* is something like debian-amd64, debian-i386..
5
6
7 git clone git://github.com/blundellc/cran2deb.git
8
9 apt-get system requirements from DESCRIPTION
10 apt-get install cdbs
11
12 # install a web server
13 apt-get install thttpd
14
15 # add a group for cran2deb people
16 addgroup cran2deb
17 usermod -a -G cran2deb cb
18 usermod -a -G cran2deb edd
19
20 # set up web space
21 mkdir /var/www/cran2deb
22 chgrp cran2deb /var/www/cran2deb
23 chmod 3775 /var/www/cran2deb
24
25 # install prereq R packages
26 r -e "install.packages(c('ctv','RSQLite','DBI','digest'))"
27 R CMD INSTALL cran2deb
28
29 # set up cran2deb space, as per README
30 cp /usr/local/lib/R/site-library/cran2deb/exec/cran2deb  /usr/local/bin
31 root=$(cran2deb root)
32 mkdir /etc/cran2deb
33 chgrp cran2deb /etc/cran2deb
34 chmod 3775 /etc/cran2deb
35 copy ROOT/etc/* to /etc/cran2deb
36 ln -s /var/www/cran2deb/ /etc/cran2deb/archive
37 edit /etc/cran2deb/pbuilder.in:
38 OTHERMIRROR='deb http://localhost/users/cb/cran2deb/ testing/$(ARCH)/ | deb http://localhost/users/cb/cran2deb/ testing/all/'
39 MIRRORSITE='http://ftp.debian.org/debian/'
40 to
41 OTHERMIRROR='deb http://localhost/cran2deb/ testing/$(ARCH)/ | deb http://localhost/cran2deb/ testing/all/'
42 MIRRORSITE='http://ftp.at.debian.org/debian/'
43
44 # fix permissions for group usage.
45 mkdir /var/cache/cran2deb
46 chgrp cran2deb /var/cache/cran2deb
47 chmod 3775 /var/cache/cran2deb
48 chgrp -R cran2deb $root
49 chmod 3775 $root
50 chmod -R g+w $root
51
52 (log out then log in to get gid cran2deb)
53
54 # build pbuilder archive, initialise database
55 cran2deb update
56
57 # check it works
58 cran2deb build zoo
59
60 # is handy
61 apt-get install sqlite3
62