freebsd-ports/www/linux-opera/pkg-install
Dag-Erling Smørgrav a8d6e8bb14 Add a pre-install script that displays the license agreement and asks for
confirmation before installing.
2001-03-08 11:12:09 +00:00

28 lines
328 B
Bash

#!/bin/sh
case $2 in
PRE-INSTALL)
${PAGER:-more} share/doc/opera/LICENSE
echo
echo
echo -n 'Do you agree to the terms of the license? '
read answer
case ${answer} in
[Yy]|[Yy][Ee][Ss])
exit 0
;;
*)
exit 1
;;
esac
;;
POST-INSTALL)
exit 0
;;
*)
echo "Unexpected Argument $2!!!"
exit 1
;;
esac