global("root", system.file(package='cran2deb'))
global("cache_root", '/var/cache/cran2deb')
global("pbuilder_results", '/var/cache/cran2deb/results')
- global("pbuilder_config", file.path(root,'etc/pbuilderrc'))
- global("dput_config", file.path(root,'etc/dput.cf'))
- global("dinstall_config", file.path(root,'etc/mini-dinstall.conf'))
+ global("pbuilder_config", '/etc/cran2deb/pbuilderrc'))
+ global("dput_config", '/etc/cran2deb/dput.cf'))
+ global("dinstall_config", '/etc/cran2deb/mini-dinstall.conf'))
global("dinstall_archive", file.path(root,'var/archive'))
global("r_depend_fields", c('Depends','Imports')) # Suggests, Enhances
# git_revision {
umask 022
root=$1
shift
-for (x in `{find $root/etc -type f -name '*.in'}) {
+for (x in `{find /etc/cran2deb -type f -name '*.in'}) {
y=`{echo $x | sed -e 's,.in$,,'}
sed -e 's:@ROOT@:'^$root^':g' <$x >$y
}
# I symbolically link this into /var/www/
mkdir $root/var/archive || exit 1
}
-mini-dinstall --batch -c $root/etc/mini-dinstall.conf || exit 1
+mini-dinstall --batch -c /etc/cran2deb/mini-dinstall.conf || exit 1
update_period=10800
if (~ $1 full || ![ -e /var/cache/cran2deb/cache.rda ] ) {
delta=`{awk 'END{print '^$update_period^'+1}' </dev/null}
if ([ -e /var/cache/pbuilder/base-cran2deb.tgz ]) {
mode=update
}
- sudo pbuilder $mode --override-config --configfile $root/etc/pbuilderrc
+ sudo pbuilder $mode --override-config --configfile /etc/cran2deb/pbuilderrc
$root/exec/update_cache $root
}
if (![ -e /var/cache/cran2deb/cran2deb.db ] || [ $delta -gt $update_period ]) {
2. ROOT/var/archive should be a symlink pointing to /var/www/cran2deb/
$ rm ROOT/var/archive
$ ln -s /var/www/cran2deb/ ROOT/var/archive
-3. modify OTHERMIRROR of ROOT/etc/pbuilderrc.in to point to your webserver
+3. create /etc/cran2deb
+ a. copy ROOT/etc/* into /etc/cran2deb
+ b. modify OTHERMIRROR of /etc/cran2deb/pbuilderrc.in to point to your webserver
4. cran2deb needs a persistent cache outside of R's control. therefore, create
/var/cache/cran2deb, writable by whichever user(s) will run cran2deb.
5. run: cran2deb update
allow_non-us_software = 1
run_dinstall = 0
run_lintian = 1
-post_upload_command = /usr/bin/mini-dinstall --batch -c @ROOT@/etc/mini-dinstall.conf
+post_upload_command = /usr/bin/mini-dinstall --batch -c /etc/cran2deb/mini-dinstall.conf
allow_unsigned_uploads = 1
BASETGZ=/var/cache/pbuilder/base-cran2deb.tgz
-HOOKDIR=@ROOT@/etc/hook
+HOOKDIR=/etc/cran2deb/hook
BUILDRESULT=/var/cache/cran2deb/results
EXTRAPACKAGES='debhelper r-base-dev cdbs r-base-core lintian xvfb xauth xfonts-base'
REMOVEPACKAGES='lilo libldap-2.4-2 libopencdk10 libsasl2-2'