blob: e9f1d722db1367c6d7e166329fa37613906f482f (
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
|
pkgname='libretools-distcc'
pkgver=1.0
license=('GPL')
url='https://parabola.nu'
pkgrel=1
arch=(any)
build() (
cd "$srcdir"
set -x
# Check that the odaemon socket exists
[[ -S /socket ]]
# ... and that it works
printf 'GET / HTTP/1.1\r\nHost: parabola.nu\r\n\r\n' | distcc-tool client parabola.nu 80 > http.txt
[[ "$(sed 1q http.txt)" == HTTP/* ]]
# ... and that idaemon talks to it
socat TCP-CONNECT:"${DISTCC_HOSTS}" STDIO < /dev/null > hello.txt
[[ "$(cat hello.txt)" == 'Hello, I am a distcc server' ]]
)
package() {
cd "$srcdir"
install -Dm644 hello.txt "$pkgdir"/usr/share/hello.txt
install -Dm644 http.txt "$pkgdir"/usr/share/http.txt
}
|