mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
Fix opera plugin wrapper and bump PORTREVISION.
PR: ports/128080 Submitted by: KOIE Hidetaka Approved by: maintainer Committed from: EuroBSDCon2008 Dev Summit :)
This commit is contained in:
parent
b1909aa96c
commit
bc378b5050
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=221635
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= opera
|
||||
PORTVERSION= ${OPERA_VER}.${OPERA_DATE}
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= www ipv6
|
||||
MASTER_SITES= ftp://ftp.opera.com/pub/opera/unix/freebsd/${OPERA_VER:S/.//}${OPERA_MINVER}/en/${OPERA_ARCH}/${OPERA_LIB}/ \
|
||||
ftp://opera.inode.at/unix/freebsd/${OPERA_VER:S/.//}${OPERA_MINVER}/en/${OPERA_ARCH}/${OPERA_LIB}/ \
|
||||
|
@ -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 $@
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user