#! /bin/bash SCRIPTDIR=`dirname $0` # Check oe-git-proxy-socks exists PROXYSOCKS=`which oe-git-proxy-socks 2> /dev/null` if [ -z "$PROXYSOCKS" -a -e "$SCRIPTDIR/oe-git-proxy-socks.c" ]; then # If not try and build it gcc $SCRIPTDIR/oe-git-proxy-socks.c -o $SCRIPTDIR/oe-git-proxy-socks fi PROXYSOCKS=`which oe-git-proxy-socks 2> /dev/null` if [ ! -x "$PROXYSOCKS" ]; then # If that fails, we can see if netcat (nc) is available NETCAT=`which nc 2> /dev/null` if [ ! -x "$NETCAT" ]; then # If that fails, explain to the user echo "Unable to find oe-git-proxy-socks. This is usually created with the command" echo "'gcc scripts/oe-git-proxy-socks.c -o scripts/oe-git-proxy-socks' which we tried" echo "but it doesn't seem to have worked. Please compile the binary manually." echo "Alternativly, install nc (netcat) on this machine." exit 1 fi exec $NETCAT -x $GIT_PROXY_HOST:$GIT_PROXY_PORT "$@" fi oe-git-proxy-socks -S $GIT_PROXY_HOST:$GIT_PROXY_PORT $@ cgit logo index : openembedded-core.git
Trygve Laugstøl
summaryrefslogtreecommitdiff
path: root/meta/classes/sourcepkg.bbclass
blob: f73855303977f79893e1406f69f52749a6719570 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107