X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=branch%2Fdouble_build%2Finst%2Fdoc%2FINSTALL_NOTES;fp=branch%2Fdouble_build%2Finst%2Fdoc%2FINSTALL_NOTES;h=5acec950bd5c49bd9cad927709adb32082f85ff6;hb=bbe8a759637a74b5036c8c7345de55a96cb7bbd6;hp=0000000000000000000000000000000000000000;hpb=449efd24870d395eb1edfd4d3a59e239c8cc5547;p=cran2deb.git diff --git a/branch/double_build/inst/doc/INSTALL_NOTES b/branch/double_build/inst/doc/INSTALL_NOTES new file mode 100644 index 0000000..5acec95 --- /dev/null +++ b/branch/double_build/inst/doc/INSTALL_NOTES @@ -0,0 +1,62 @@ +*WARNING* This is not up to date! The major difference is that now we have +*WARNING* system-specific configurations, archives and results, so that several +*WARNING* of the paths have either a 'sys/FOO' part or a 'FOO' part where FOO +*WARNING* is something like debian-amd64, debian-i386.. + + +git clone git://github.com/blundellc/cran2deb.git + +apt-get system requirements from DESCRIPTION +apt-get install cdbs + +# install a web server +apt-get install thttpd + +# add a group for cran2deb people +addgroup cran2deb +usermod -a -G cran2deb cb +usermod -a -G cran2deb edd + +# set up web space +mkdir /var/www/cran2deb +chgrp cran2deb /var/www/cran2deb +chmod 3775 /var/www/cran2deb + +# install prereq R packages +r -e "install.packages(c('ctv','RSQLite','DBI','digest'))" +R CMD INSTALL cran2deb + +# set up cran2deb space, as per README +cp /usr/local/lib/R/site-library/cran2deb/exec/cran2deb /usr/local/bin +root=$(cran2deb root) +mkdir /etc/cran2deb +chgrp cran2deb /etc/cran2deb +chmod 3775 /etc/cran2deb +copy ROOT/etc/* to /etc/cran2deb +ln -s /var/www/cran2deb/ /etc/cran2deb/archive +edit /etc/cran2deb/pbuilder.in: +OTHERMIRROR='deb http://localhost/users/cb/cran2deb/ testing/$(ARCH)/ | deb http://localhost/users/cb/cran2deb/ testing/all/' +MIRRORSITE='http://ftp.debian.org/debian/' +to +OTHERMIRROR='deb http://localhost/cran2deb/ testing/$(ARCH)/ | deb http://localhost/cran2deb/ testing/all/' +MIRRORSITE='http://ftp.at.debian.org/debian/' + +# fix permissions for group usage. +mkdir /var/cache/cran2deb +chgrp cran2deb /var/cache/cran2deb +chmod 3775 /var/cache/cran2deb +chgrp -R cran2deb $root +chmod 3775 $root +chmod -R g+w $root + +(log out then log in to get gid cran2deb) + +# build pbuilder archive, initialise database +cran2deb update + +# check it works +cran2deb build zoo + +# is handy +apt-get install sqlite3 +