View | Details | Raw Unified | Return to bug 208180 | Differences between
and this patch

Collapse All | Expand All

(-)Mk/bsd.licenses.mk (-11 / +3 lines)
Lines 611-627 ${_LICENSE_COOKIE}: Link Here
611
.	if !defined(NO_LICENSES_DIALOGS)
611
.	if !defined(NO_LICENSES_DIALOGS)
612
# Dialog interface
612
# Dialog interface
613
.		if ${_LICENSE_COMB} == "single"
613
.		if ${_LICENSE_COMB} == "single"
614
	@trap '${RM} -f $$tmpfile' EXIT INT TERM; \
614
	${DIALOG} --title "License for ${PKGNAME} (${_LICENSE})" \
615
	tmpfile=$$(mktemp -t portlicenses); \
615
		--yes-label Accept --no-label Reject --yesno \
616
	while true; do \
616
		"$$(${CAT} ${_LICENSE_FILE})" 21 76 || exit 1
617
		${DIALOG} --menu "License for ${PKGNAME} (${_LICENSE})" 21 70 15 accept "Accept license" reject "Reject license" view "View license" 2>"$${tmpfile}"; \
618
		result=`${CAT} $${tmpfile}`; \
619
		case $${result} in \
620
		accept) break ;; \
621
		reject) exit 1;; \
622
		view)   ${DIALOG} --textbox "${_LICENSE_FILE}" 21 75 ;; \
623
		esac; \
624
	done
625
617
626
.		elif ${_LICENSE_COMB} == "dual"
618
.		elif ${_LICENSE_COMB} == "dual"
627
	@${RM} -f ${_LICENSE_ASK_DATA}
619
	@${RM} -f ${_LICENSE_ASK_DATA}

Return to bug 208180