1#!/bin/sh
2#-
3# Copyright (c) 2011 Marc Fonvieille
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions
8# are met:
--- 10 unchanged lines hidden (view full) ---
19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25# SUCH DAMAGE.
26#
27# $FreeBSD: stable/10/usr.sbin/bsdinstall/scripts/docsinstall 256719 2013-10-18 07:42:50Z dteske $
28
29
30exec 3>&1
31DOCS=$(dialog --backtitle "FreeBSD Installer" \
32 --title "FreeBSD Documentation Installation" --separate-output \
33 --checklist "This menu will allow you to install the whole documentation set
34from the FreeBSD Documentation Project: Handbook, FAQ and articles.\n\n
35Please select the language versions you wish to install. At minimum,
--- 18 unchanged lines hidden (view full) ---
54 sr "Serbian Documentation" ${DIST_DOC_SR:-off} \
55 tr "Turkish Documentation" ${DIST_DOC_TR:-off} \
56 zh_cn "Simplified Chinese Documentation" ${DIST_DOC_ZH_CN:-off} \
57 zh_tw "Traditional Chinese Documentation" ${DIST_DOC_ZH_TW:-off} \
582>&1 1>&3)
59test $? -eq 0 || exit 0
60exec 3>&-
61
62# Let pkg_add be able to use name servers
63cp ${BSDINSTALL_TMPETC}/resolv.conf ${BSDINSTALL_CHROOT}/etc
64
65error() {
66 dialog --backtitle "FreeBSD Installer" --title "Error" --msgbox \
67 "Could not install package $1 (`tail -n 1 ${BSDINSTALL_LOG}`)" 0 0
68 exit 1
69}
70
71
72clear
73echo "FreeBSD Installer"
74echo "========================"
75echo
76
77for i in $DOCS; do
78 pkg_add -C ${BSDINSTALL_CHROOT} -r ${i}-freebsd-doc || error $i-freebsd-doc
79done
2#-
3# Copyright (c) 2011 Marc Fonvieille
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions
8# are met:
--- 10 unchanged lines hidden (view full) ---
19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25# SUCH DAMAGE.
26#
27# $FreeBSD: stable/10/usr.sbin/bsdinstall/scripts/docsinstall 256719 2013-10-18 07:42:50Z dteske $
28
29
30exec 3>&1
31DOCS=$(dialog --backtitle "FreeBSD Installer" \
32 --title "FreeBSD Documentation Installation" --separate-output \
33 --checklist "This menu will allow you to install the whole documentation set
34from the FreeBSD Documentation Project: Handbook, FAQ and articles.\n\n
35Please select the language versions you wish to install. At minimum,
--- 18 unchanged lines hidden (view full) ---
54 sr "Serbian Documentation" ${DIST_DOC_SR:-off} \
55 tr "Turkish Documentation" ${DIST_DOC_TR:-off} \
56 zh_cn "Simplified Chinese Documentation" ${DIST_DOC_ZH_CN:-off} \
57 zh_tw "Traditional Chinese Documentation" ${DIST_DOC_ZH_TW:-off} \
582>&1 1>&3)
59test $? -eq 0 || exit 0
60exec 3>&-
61
62# Let pkg_add be able to use name servers
63cp ${BSDINSTALL_TMPETC}/resolv.conf ${BSDINSTALL_CHROOT}/etc
64
65error() {
66 dialog --backtitle "FreeBSD Installer" --title "Error" --msgbox \
67 "Could not install package $1 (`tail -n 1 ${BSDINSTALL_LOG}`)" 0 0
68 exit 1
69}
70
71
72clear
73echo "FreeBSD Installer"
74echo "========================"
75echo
76
77for i in $DOCS; do
78 pkg_add -C ${BSDINSTALL_CHROOT} -r ${i}-freebsd-doc || error $i-freebsd-doc
79done