ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/ozone/mgar/pkg/py311/gar/bin/gitproxy
Revision: 11
Committed: Sat Jun 20 21:40:57 2026 UTC (4 weeks, 2 days ago) by operz
File size: 633 byte(s)
Log Message:
Add Python 3.11.15 recipe (OZSWpy311); update readline to link against ncurses (for Python curses module)

File Contents

# Content
1 #!/bin/bash
2
3 if [ -n "${http_proxy}" ]; then
4
5 REMHOST=$1
6 REMPORT=$2
7
8 set - $(echo "${http_proxy}" | gsed 's/http//i' | tr -d '/' | tr ':' ' ')
9 PROXYHOST=$1
10 PROXYPORT=$2
11
12 # this bit is copied from http://lkml.org/lkml/2006/2/26/207 and then
13 # modified to use netcat and handle proxy settings from the env.
14 # (echo "CONNECT ${REMHOST}:${REMPORT} HTTP/1.0"; echo; cat ) |
15 # nc ${PROXYHOST} ${PROXYPORT} | (read a; read a; cat )
16 exec /opt/csw/bin/socat STDIO PROXY:${PROXYHOST}:${REMHOST}:${REMPORT},proxyport=${PROXYPORT}
17
18 else
19 echo Please set http_proxy in your environment. >&2
20 exit 1
21 fi

Properties

Name Value
svn:executable *