aboutsummaryrefslogtreecommitdiffstats
path: root/www/linux-opera-devel
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2001-03-08 19:12:09 +0800
committerdes <des@FreeBSD.org>2001-03-08 19:12:09 +0800
commit33208c5f10940c286a9eb7f20fda14279871a11c (patch)
tree8a311806bcbe388cb641435a3046a7252d71af50 /www/linux-opera-devel
parent27007dd5bbc106b2c76544c34f7f471802d24f8b (diff)
downloadfreebsd-ports-gnome-33208c5f10940c286a9eb7f20fda14279871a11c.tar.gz
freebsd-ports-gnome-33208c5f10940c286a9eb7f20fda14279871a11c.tar.zst
freebsd-ports-gnome-33208c5f10940c286a9eb7f20fda14279871a11c.zip
Add a pre-install script that displays the license agreement and asks for
confirmation before installing.
Diffstat (limited to 'www/linux-opera-devel')
-rw-r--r--www/linux-opera-devel/Makefile1
-rw-r--r--www/linux-opera-devel/pkg-install27
2 files changed, 27 insertions, 1 deletions
diff --git a/www/linux-opera-devel/Makefile b/www/linux-opera-devel/Makefile
index c5faed373709..3f7dd54e43aa 100644
--- a/www/linux-opera-devel/Makefile
+++ b/www/linux-opera-devel/Makefile
@@ -14,7 +14,6 @@ DISTNAME= opera-5.0-b6-20010212.017-static.i386
MAINTAINER= des@FreeBSD.org
IS_INTERACTIVE= YES
-NO_PACKAGE= "User must agree to license prior to installation."
RUN_DEPENDS= ${LINUXBASE}/lib/ld.so:${PORTSDIR}/emulators/linux_base \
${LINUXBASE}/usr/lib/libpng.so.2:${PORTSDIR}/graphics/linux-png \
diff --git a/www/linux-opera-devel/pkg-install b/www/linux-opera-devel/pkg-install
new file mode 100644
index 000000000000..18e1ca019af2
--- /dev/null
+++ b/www/linux-opera-devel/pkg-install
@@ -0,0 +1,27 @@
+#!/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
+