|
Lines 648-654
${_LICENSE_COOKIE}:
Link Here
|
| 648 |
. if !defined(NO_LICENSES_DIALOGS) |
648 |
. if !defined(NO_LICENSES_DIALOGS) |
| 649 |
# Dialog interface |
649 |
# Dialog interface |
| 650 |
. if ${_LICENSE_COMB} == "single" |
650 |
. if ${_LICENSE_COMB} == "single" |
| 651 |
@${SETENV} LC_ALL=C.UTF-8 ${DIALOG} --title "License for ${PKGNAME} (${_LICENSE})" \ |
651 |
@${DIALOG} --title "License for ${PKGNAME} (${_LICENSE})" \ |
| 652 |
--yes-label Accept --no-label Reject --yesno \ |
652 |
--yes-label Accept --no-label Reject --yesno \ |
| 653 |
"$$(${CAT} ${_LICENSE_FILE})" 21 76 |
653 |
"$$(${CAT} ${_LICENSE_FILE})" 21 76 |
| 654 |
|
654 |
|
|
Lines 665-677
${_LICENSE_COOKIE}:
Link Here
|
| 665 |
done; \ |
665 |
done; \ |
| 666 |
menu_cmd="$${menu_cmd} REJECT \"Reject the licenses (all)\""; \ |
666 |
menu_cmd="$${menu_cmd} REJECT \"Reject the licenses (all)\""; \ |
| 667 |
while true; do \ |
667 |
while true; do \ |
| 668 |
${SH} -c "${SETENV} LC_ALL=C.UTF-8 $${menu_cmd} 2>\"$${tmpfile}\""; \ |
668 |
${SH} -c "$${menu_cmd} 2>\"$${tmpfile}\""; \ |
| 669 |
result=$$(${CAT} "$${tmpfile}"); \ |
669 |
result=$$(${CAT} "$${tmpfile}"); \ |
| 670 |
case $${result} in \ |
670 |
case $${result} in \ |
| 671 |
REJECT) exit 1;; \ |
671 |
REJECT) exit 1;; \ |
| 672 |
VIEW_*) name=$$(${ECHO_CMD} $${result} | ${SED} -e 's/^VIEW_//'); \ |
672 |
VIEW_*) name=$$(${ECHO_CMD} $${result} | ${SED} -e 's/^VIEW_//'); \ |
| 673 |
file=$$(${GREP} "^$${name}:" ${_LICENSE_ASK_DATA} | ${CUT} -d : -f 2); \ |
673 |
file=$$(${GREP} "^$${name}:" ${_LICENSE_ASK_DATA} | ${CUT} -d : -f 2); \ |
| 674 |
${SETENV} LC_ALL=C.UTF-8 ${DIALOG} --textbox "$${file}" 21 75 ;; \ |
674 |
${DIALOG} --textbox "$${file}" 21 75 ;; \ |
| 675 |
USE_*) name=$$(${ECHO_CMD} $${result} | ${SED} -e 's/^USE_//'); \ |
675 |
USE_*) name=$$(${ECHO_CMD} $${result} | ${SED} -e 's/^USE_//'); \ |
| 676 |
${ECHO_CMD} $${name} > ${_LICENSE_COOKIE}; \ |
676 |
${ECHO_CMD} $${name} > ${_LICENSE_COOKIE}; \ |
| 677 |
break ;; \ |
677 |
break ;; \ |
|
Lines 683-689
${_LICENSE_COOKIE}:
Link Here
|
| 683 |
. for lic in ${_LICENSE_TO_ASK} |
683 |
. for lic in ${_LICENSE_TO_ASK} |
| 684 |
@${ECHO_CMD} "${lic}:${_LICENSE_FILE_${lic}}" >> ${_LICENSE_ASK_DATA} |
684 |
@${ECHO_CMD} "${lic}:${_LICENSE_FILE_${lic}}" >> ${_LICENSE_ASK_DATA} |
| 685 |
. endfor |
685 |
. endfor |
| 686 |
@menu_cmd="${SETENV} LC_ALL=C.UTF-8 ${DIALOG} --hline \"This port requires you to accept all mentioned licenses\" --menu \"License for ${PKGNAME} (multi)\" 21 70 15"; \ |
686 |
@menu_cmd="${DIALOG} --hline \"This port requires you to accept all mentioned licenses\" --menu \"License for ${PKGNAME} (multi)\" 21 70 15"; \ |
| 687 |
trap '${RM} $$tmpfile' EXIT INT TERM; \ |
687 |
trap '${RM} $$tmpfile' EXIT INT TERM; \ |
| 688 |
tmpfile=$$(mktemp -t portlicenses); \ |
688 |
tmpfile=$$(mktemp -t portlicenses); \ |
| 689 |
for lic in ${_LICENSE_TO_ASK}; do \ |
689 |
for lic in ${_LICENSE_TO_ASK}; do \ |
|
Lines 698-704
${_LICENSE_COOKIE}:
Link Here
|
| 698 |
REJECT) exit 1 ;; \ |
698 |
REJECT) exit 1 ;; \ |
| 699 |
VIEW_*) name=$$(${ECHO_CMD} $${result} | ${SED} -e 's/^VIEW_//'); \ |
699 |
VIEW_*) name=$$(${ECHO_CMD} $${result} | ${SED} -e 's/^VIEW_//'); \ |
| 700 |
file=$$(${GREP} "^$${name}:" ${_LICENSE_ASK_DATA} | ${CUT} -d : -f 2); \ |
700 |
file=$$(${GREP} "^$${name}:" ${_LICENSE_ASK_DATA} | ${CUT} -d : -f 2); \ |
| 701 |
${SETENV} LC_ALL=C.UTF-8 ${DIALOG} --textbox "$${file}" 21 75 ;; \ |
701 |
${DIALOG} --textbox "$${file}" 21 75 ;; \ |
| 702 |
esac; \ |
702 |
esac; \ |
| 703 |
done |
703 |
done |
| 704 |
. endif |
704 |
. endif |