freebsd-ports/www/opera/files/operapluginwrapper
Ion-Mihai Tetcu f2d121ae1f Update to 10.00.
Changelog (includes security advisories):
http://www.opera.com/docs/changelogs/freebsd/1000/

Fix operapluginwrapper's usage of LD_LIBRARY_PATH [1]

PR:		138449, 1375151 [1]
Submitted by:	maintainer, Lucius Windschuh [1]
Security:	http://www.vuxml.org/freebsd/80aa98e0-97b4-11de-b946-0030843d3802.html
2009-09-04 06:03:36 +00:00

24 lines
338 B
Bash

#!/bin/sh
if [ -n "$5" ]; then
ELFTYPE=`brandelf $5`
elif [ -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
LD_LIBRARY_PATH=
export LD_LIBRARY_PATH
WRAPPER="linux"
fi
;;
esac
exec $0.$WRAPPER $@