summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www/opera7/DESCR23
-rw-r--r--www/opera7/Makefile69
-rw-r--r--www/opera7/PLIST3
-rw-r--r--www/opera7/distinfo4
-rw-r--r--www/opera7/files/opera.sh25
5 files changed, 124 insertions, 0 deletions
diff --git a/www/opera7/DESCR b/www/opera7/DESCR
new file mode 100644
index 00000000000..fac6e219cd3
--- /dev/null
+++ b/www/opera7/DESCR
@@ -0,0 +1,23 @@
+Opera is powerful If you use the web for work or for entertainment. Features:
+* Renders HTML 3.2 and 4.0 Pages
+* Executes most EcmaScript 1.1 (Ecma-262 v.3) programs
+* Renders CSS 1 and 2 extensions
+* Browses FTP Sites
+* Handles cookies
+* Supports HTTP 1.0 and 1.1
+* Displays GIF, PNG and JPEG
+* Hot list, bookmarks and bookmark bar
+* Imports Netscape, Konqueror and IE bookmarks/favorites
+* Support for XML
+* Support for WML (WAP)
+* Proxy server support
+* Communication through SSL and TLS
+* HTTP Authorization
+* Asynchronous DNS with threading
+* Support for browsing local files
+* File transfer
+* File upload support
+* Restore window settings
+* Customizable toolbar icons
+* Keyboard link navigation
+* Printing (PostScript)
diff --git a/www/opera7/Makefile b/www/opera7/Makefile
new file mode 100644
index 00000000000..437a2744047
--- /dev/null
+++ b/www/opera7/Makefile
@@ -0,0 +1,69 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/04/28 23:20:10 jdolecek Exp $
+
+DISTNAME= opera-${OPERA_PKG_VERSION}
+CATEGORIES= www
+MASTER_SITES= http://www.panix.com/opera/files/linux/${OPERA_DIR}/ \
+ ftp://ftp.hu-berlin.de/pub/www/opera/linux/${OPERA_DIR}/ \
+ http://ftp.sunet.se/pub/www/clients/Opera/linux/${OPERA_DIR}/ \
+ http://ftp.opera.com/pub/opera/linux/${OPERA_DIR}/ \
+ http://opera.online.no/linux/${OPERA_DIR}/ \
+ ftp://ftp.tuwien.ac.at/infosys/browsers/opera/linux/${OPERA_DIR}/ \
+ ftp://ftp.opera.com/pub/opera/linux/
+EXTRACT_SUFX= .rpm
+DISTFILES= opera-${OPERA_DIST_VERSION}.${OPERA_ARCH}${EXTRACT_SUFX}
+
+MAINTAINER= tron@netbsd.org
+HOMEPAGE= http://www.opera.com/
+COMMENT= Small, fast and customizable WWW client
+
+ONLY_FOR_PLATFORM= NetBSD-*-i386
+
+LICENSE= opera-license
+
+# we need the DIST_SUBDIR=. because of the inclusion of suse's Makefile.common
+DIST_SUBDIR= .
+EXTRACT_ONLY= # empty
+PLIST_SRC= ${WRKDIR}/PLIST_DYNAMIC
+
+USE_BUILDLINK2= # defined
+
+.include "../../mk/bsd.prefs.mk"
+
+# A default so lintpkgsrc is happy
+OPERA_PKG_VERSION= 7.1.0beta1
+
+.if (${MACHINE_ARCH} == i386)
+DEPENDS+= suse_compat>=6.3:../../emulators/${SUSE_DIR_PREFIX}_compat
+DEPENDS+= suse_libjpeg>=6.4:../../emulators/${SUSE_DIR_PREFIX}_libjpeg
+DEPENDS+= suse_libpng>=6.4:../../emulators/${SUSE_DIR_PREFIX}_libpng
+DEPENDS+= suse_x11>=6.3:../../emulators/${SUSE_DIR_PREFIX}_x11
+
+OPERA_ARCH= i386
+OPERA_PKG_VERSION= 7.1.0beta1
+OPERA_DIR= ${OPERA_PKG_VERSION:S/.//g:C/beta.*//}/beta1/en/i386/static
+OPERA_DIST_VERSION= ${OPERA_PKG_VERSION:C/beta.*//}-20030410.1-static-qt
+.endif
+
+RPMFILES= ${DISTFILES}
+
+do-build:
+ ${SED} -e 's#@EMULDIR@#${EMULDIR}#g' ${FILESDIR}/opera.sh > \
+ ${WRKDIR}/opera
+
+post-install: post-install-manpage
+ ${INSTALL_SCRIPT} ${WRKDIR}/opera ${PREFIX}/bin
+
+.include "../../emulators/suse_linux/Makefile.application"
+
+post-install-manpage:
+# The SuSE common makefile defines "MANCOMPRESSED".
+.if defined(MANCOMPRESSED)
+ ${GZIP_CMD} ${EMULDIR}/usr/share/man/man1/opera.1
+ ${LN} -fs ../../${EMULSUBDIR}/usr/share/man/man1/opera.1.gz \
+ ${PREFIX}/man/man1
+.else
+ ${LN} -fs ../../${EMULSUBDIR}/usr/share/man/man1/opera \
+ ${PREFIX}/man/man1
+.endif
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/opera7/PLIST b/www/opera7/PLIST
new file mode 100644
index 00000000000..a5b08f9338b
--- /dev/null
+++ b/www/opera7/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/04/28 23:20:10 jdolecek Exp $
+bin/opera
+man/man1/opera.1
diff --git a/www/opera7/distinfo b/www/opera7/distinfo
new file mode 100644
index 00000000000..96f1f2c69d2
--- /dev/null
+++ b/www/opera7/distinfo
@@ -0,0 +1,4 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/04/28 23:20:10 jdolecek Exp $
+
+SHA1 (./opera-7.1.0-20030410.1-static-qt.i386.rpm) = ec40901bf742e3c25a74e96921a868a91edff71f
+Size (./opera-7.1.0-20030410.1-static-qt.i386.rpm) = 5430219 bytes
diff --git a/www/opera7/files/opera.sh b/www/opera7/files/opera.sh
new file mode 100644
index 00000000000..e804d1b5f7f
--- /dev/null
+++ b/www/opera7/files/opera.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+LINUX_KERN_OSREL=`/sbin/sysctl -n emul.linux.kern.osrelease 2>/dev/null`
+if [ -z "$LINUX_KERN_OSREL" -o "$LINUX_KERN_OSREL" = "2.0.38" ]
+then
+ OPERADIR=$HOME/.opera
+ mkdir -p $OPERADIR || exit 1
+ for FILE in $OPERADIR/opera6.ini $OPERADIR/opera.ini
+ do
+ if [ -e ${FILE} ]
+ then
+ if grep -q '^Synchronous DNS Lookup=0$' ${FILE}
+ then
+ cp -p ${FILE} ${FILE}.patch
+ sed -e 's#^\(Synchronous DNS Lookup\)=0$#\1=1#' ${FILE}.patch >${FILE}
+ rm -f ${FILE}.patch
+ fi
+ else
+ echo >${FILE} "[Performance]"
+ echo >>${FILE} "Synchronous DNS Lookup=1"
+ fi
+ done
+fi
+
+unset LD_LIBRARY_PATH
+exec @EMULDIR@/bin/bash /usr/bin/opera "$@"