ports/www/mod_spdy/files/patch-python_arch2.sh
Steve Wills 632a9f70e6 mod_spdy is an Apache 2.x filter module that provides SPDY support in the
Apache HTTPD web server. Because mod_spdy is an Apache module, it can be
loaded into currently deployed Apache HTTPD 2.x web servers using mod_so.
This module is still an early beta and is not yet suitable for production
environments.

WWW:	http://code.google.com/p/mod-spdy/

PR:		ports/166538
Submitted by:	Masaki TAGAWA
2012-05-04 13:37:52 +00:00

19 lines
534 B
Bash

--- third_party/chromium/src/build/linux/python_arch.sh.org 2012-03-31 16:29:02.968788000 +0900
+++ third_party/chromium/src/build/linux/python_arch.sh 2012-03-31 17:00:18.892838462 +0900
@@ -10,7 +10,15 @@
# python_arch.sh /path/to/sysroot/usr/lib/libpython2.4.so.1.0
#
-python=$(readlink -f "$1")
+UNAME=`uname`
+
+# FreeBSD readlink lacks -f support before 9.0
+if [ "${UNAME}" = "FreeBSD" ]; then
+ python=$(greadlink -f "$1")
+else
+ python=$(readlink -f "$1")
+fi
+
if [ ! -r "$python" ]; then
echo unknown
exit 0