add lftp to install environment

This commit is contained in:
Tobias Powalowski 2011-08-30 15:19:35 +02:00
parent b9aecc1cec
commit c219f5ce2a
5 changed files with 130 additions and 2 deletions

View file

@ -0,0 +1,20 @@
# Created by Tobias Powalowski <tpowa@archlinux.org>
build ()
{
MODULES=""
BINARIES="/usr/sbin/dnsmasq"
FILES=""
SCRIPT=""
add_file "/usr/share/archboot/dnsmasq/etc/dnsmasq.conf" "/etc/dnsmasq.conf"
add_file "/etc/rc.d/dnsmasq"
add_dir "/var/db"
add_dir "/var/lib/misc"
}
help ()
{
cat<<HELPEOF
This hook includes dnsmasq on an arch boot image.
HELPEOF
}

View file

@ -0,0 +1,17 @@
# Created by Tobias Powalowski <tpowa@archlinux.org>
build ()
{
MODULES=""
BINARIES="/usr/bin/lftp /usr/bin/lftpget"
FILES=""
SCRIPT=""
add_file "/usr/share/archboot/dnsmasq/etc/lftp.conf" "/etc/lftp.conf"
}
help ()
{
cat<<HELPEOF
This hook includes lftp on an arch boot image.
HELPEOF
}

View file

@ -24,7 +24,7 @@ syslinux mtools perl gmp krb5 sqlite3 db dbus-core libcap fsarchiver xz librpcse
libtirpc wipe ddrescue testdisk ifplugd libdaemon wpa_actiond rfkill libgssglue icu gptfdisk \
btrfs-progs-unstable nilfs-utils linux-firmware ipw2100-fw ipw2200-fw iana-etc chntpw libusb \
grub2-bios grub2-common grub2-efi-i386 grub2-efi-x86_64 efibootmgr file eject keyutils yp-tools \
curl smartmontools dnsmasq"
curl smartmontools dnsmasq lftp"
for i in $DEPENDS; do

View file

@ -23,7 +23,8 @@ v86d iw crda wireless-regdb libnl iproute2 dhclient syslinux mtools perl gmp krb
dbus-core libcap fsarchiver xz librpcsecgss libtirpc wipe ddrescue testdisk ifplugd \
libdaemon nouveau-drm-lts nouveau-firmware wpa_actiond rfkill libgssglue icu gptfdisk btrfs-progs-unstable \
nilfs-utils linux-firmware ipw2100-fw ipw2200-fw iana-etc chntpw libusb grub2-bios grub2-common \
grub2-efi-i386 grub2-efi-x86_64 efibootmgr file eject keyutils yp-tools smartmontools curl dnsmasq"
grub2-efi-i386 grub2-efi-x86_64 efibootmgr file eject keyutils yp-tools smartmontools curl dnsmasq \
lftp"
for i in $DEPENDS; do
for k in $(echo /var/lib/pacman/local/$i-[0-9]*-[0-9]*); do

View file

@ -0,0 +1,90 @@
## some useful aliases
alias dir ls
alias less more
alias zless zmore
alias bzless bzmore
alias reconnect "close; cache flush; cd ."
alias edit "eval -f \"get $0 -o ~/.lftp/edit.tmp.$$ && shell \\\"cp -p ~/.lftp/edit.tmp.$$ ~/.lftp/edit.tmp.$$.orig && $EDITOR ~/.lftp/edit.tmp.$$ && test ~/.lftp/edit.tmp.$$ -nt ~/.lftp/edit.tmp.$$.orig\\\" && put ~/.lftp/edit.tmp.$$ -o $0; shell rm -f ~/.lftp/edit.tmp.$$*\""
## make prompt look better
set prompt "lftp \S\? \u\@\h:\w> "
## some may prefer colors (contributed by Matthew <mwormald@optusnet.com.au>)
#set prompt "\[\e[1;30m\][\[\e[0;34m\]f\[\e[1m\]t\[\e[37m\]p\[\e[30m\]] \[\e[34m\]\u\[\e[0;34m\]\@\[\e[1m\]\h\[\e[1;30m\]:\[\e[1;34m\]\w\[\e[1;30m\]>\[\e[0m\] "
## Uncomment the following two lines to make switch cls and ls, making
## cls the default.
#alias ls command cls
#alias hostls command ls
## default protocol selection
#set default-protocol/ftp.* ftp
#set default-protocol/www.* http
#set default-protocol/localhost file
## this makes lftp faster but doesn't work with some sites/routers
#set ftp:sync-mode off
## synchronous mode for broken servers and/or routers
set sync-mode/ftp.idsoftware.com on
set sync-mode/ftp.microsoft.com on
set sync-mode/sunsolve.sun.com on
## extended regex to match first server message for automatic sync-mode.
set auto-sync-mode "icrosoft FTP Service|MadGoat|MikroTik"
## if default ftp passive mode does not work, try this:
# set ftp:passive-mode off
## Set this to follow http redirections
set xfer:max-redirections 10
## Proxy can help to pass a firewall
## Environment variables ftp_proxy, http_proxy and no_proxy are used to
## initialize the below variables automatically. You can set them here too.
##
## ftp:proxy must communicate with client over ftp protocol, squid won't do.
## This can be e.g. TIS-FWTK or rftpd. User and password are optional.
# set ftp:proxy ftp://[user:pass@]your_ftp_proxy:port
## ...but squid still can be used to access ftp servers, using hftp protocol:
# set ftp:proxy http://your.squid.address:port
## ...if squid allows CONNECT to arbitrary ports, then you can use CONNECT
## instead of hftp:
# set ftp:use-hftp no
##
## no proxy for host
# set ftp:proxy/local_host ""
## or domain
# set ftp:proxy/*.domain.com ...
##
## http:proxy must communicate with client over http protocol, e.g. squid.
## Default port is 3128.
# set http:proxy your_http_proxy[:port]
## hftp:proxy must also be an http proxy. It is used for FTP over HTTP access.
# set hftp:proxy your_http_proxy[:port]
##
## net:no-proxy disables proxy usage for list of domains.
# set net:no-proxy .domain.com,.otherdom.net
## If you don't have direct ftp access, this setting can be useful to select
## hftp instead of ftp automatically.
# set ftp:proxy http://your.http.proxy:port
## This can be used for automatic saving of configuration
# set at-exit "set > ~/.lftp/settings"
# source ~/.lftp/settings
## and this is for remembring last site
## (combine with previous rule if you want)
# set at-exit "bo a last"
# open last
## Terminal strings to set titlebars for terminals that don't
## properly specify tsl and fsl capabilities.
## Use cmd:set-term-status to enable this.
set cmd:term-status/*screen* "\e_\T\e\\"
set cmd:term-status/*xterm* "\e[11;0]\e]2;\T\007\e[11]"
set cmd:term-status/*rxvt* "\e[11;0]\e]2;\T\007\e[11]"
# set cmd:set-term-status on
## If you don't like advertising lftp or servers hate it, set this:
# set ftp:anon-pass "mozilla@"
# set ftp:client ""
# set http:user-agent "Mozilla/4.7 [en] (WinNT; I)"