From df290b499af0948e18abf138b0aa365a05cfd72e Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 4 Apr 2007 22:30:05 -0400 Subject: Enable support for other download protocols in makepkg This patch fixes FS #4404 as well as adding support for future protocols by generalizing the concept of a download agent and allowing a downloader to be specified for each protocol. Original work done by Andrew Fyfe . Signed-off-by: Dan McGee --- etc/makepkg.conf.in | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'etc') diff --git a/etc/makepkg.conf.in b/etc/makepkg.conf.in index 6f9e9776..6d5a372f 100644 --- a/etc/makepkg.conf.in +++ b/etc/makepkg.conf.in @@ -6,10 +6,18 @@ # SOURCE ACQUISITION ######################################################################### # -#-- The FTP/HTTP download utility that makepkg should use to acquire sources -FTPAGENT="/usr/bin/wget --continue --passive-ftp --tries=3 --waitretry=3 --no-check-certificate" -#FTPAGENT="/usr/bin/snarf" -#FTPAGENT="/usr/bin/lftpget -c" +#-- The download utilities that makepkg should use to acquire sources +# Format: 'protocol::agent' +DLAGENTS=('ftp::/usr/bin/wget -c --passive-ftp -t 3 --waitretry=3' + 'http::/usr/bin/wget -c -t 3 --waitretry=3' + 'https::/usr/bin/wget -c -t 3 --waitretry=3 --no-check-certificate' + 'rsync::/usr/bin/rsync -z' + 'scp::/usr/bin/scp -C') + +# Other common tools: +# /usr/bin/snarf +# /usr/bin/lftpget -c +# /usr/bin/curl ######################################################################### # ARCHITECTURE, COMPILE FLAGS -- cgit v1.2.3-70-g09d2