This is an old revision of the document!
PLD distfiles handles storing external sources in distfiles.
The files are stored under /distfiles/by-md5/X/Y/HASH/FILENAME
,
for example: /distfiles/by-md5/8/1/81348932d5da294953e15d4814c74dd1/bash-4.3.tar.gz
. files in distfiles itself are accessible by http
and ftp
protocols.
use make-request
-df
paramter:
$ ./make-request.sh -n bash:master -df Distfiles Request: bash:master via /usr/sbin/sendmail
scp
to either dropin@dropin.pld-linux.org or distfiles@dropin.pld-linux.org.authorized_keys
to the dropin@ authorized_keys
using a gitolite hook (~git/.gitolite/hooks/gitolite-admin/post-update.secondary
), therefore it has to be writable by git user./var/lib/dropin
and then run rssh
which is configured to only allow scp
transfers./var/lib/dropin
that contains rssh
and scp
./var/lib/dropin/dropin
.~dfadm/distfiles
.run-ff.sh
is run from dfadm's crontab every minute.chmodd.sh
is a simple inotifywait-based script that always runs in the background (started from rc.local
on system boot) and does a proper chmod on all uploaded files.