diff options
author | itetcu <itetcu@FreeBSD.org> | 2008-10-16 18:25:06 +0800 |
---|---|---|
committer | itetcu <itetcu@FreeBSD.org> | 2008-10-16 18:25:06 +0800 |
commit | 5f240383e01e8620512df7b6edbf4c0615548a48 (patch) | |
tree | c89e9c03a4ef081871957429d2428eb73d19fc89 /www/opera/files | |
parent | 5def44d1b95a8ed8f69ecf7058eca121da8a199c (diff) | |
download | freebsd-ports-gnome-5f240383e01e8620512df7b6edbf4c0615548a48.tar.gz freebsd-ports-gnome-5f240383e01e8620512df7b6edbf4c0615548a48.tar.zst freebsd-ports-gnome-5f240383e01e8620512df7b6edbf4c0615548a48.zip |
Fix opera plugin wrapper and bump PORTREVISION.
PR: ports/128080
Submitted by: KOIE Hidetaka
Approved by: maintainer
Committed from: EuroBSDCon2008 Dev Summit :)
Diffstat (limited to 'www/opera/files')
-rw-r--r-- | www/opera/files/operapluginwrapper | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/www/opera/files/operapluginwrapper b/www/opera/files/operapluginwrapper index 20fc5d1c16ea..bb5e450c2220 100644 --- a/www/opera/files/operapluginwrapper +++ b/www/opera/files/operapluginwrapper @@ -1,7 +1,19 @@ #!/bin/sh -if [ brandelf $3 | grep "FreeBSD" ]; then - exec $0.freebsd $@ -else - exec $0.linux $@ +if [ -n "$4" ]; then +ELFTYPE=`brandelf $4` +elif [ -n "$3" ]; then +ELFTYPE=`brandelf $3` fi + +WRAPPER="freebsd" +case "${ELFTYPE}" in +*SVR4*|*Linux*) +if [ -x "$0.linux" ]; then +WRAPPER="linux" +fi +;; +esac + +exec $0.$WRAPPER $@ + |