aboutsummaryrefslogtreecommitdiffstats
path: root/main/distcc/APKBUILD
blob: e6a05f4cdffaa75cb22f0f7336eefdc513b999ab (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=distcc
pkgver=3.1
pkgrel=9
pkgdesc="A distributed C, C++, Obj C compiler"
url="http://distcc.org"
arch="all"
license="GPL-2"
depends=
makedepends="popt-dev python-dev"
source="http://$pkgname.googlecode.com/files/$pkgname-$pkgver.tar.bz2
	distcc-3.1-clone.patch
	distcc-hardened.patch
	distccd.initd distccd.confd"
subpackages="$pkgname-doc $pkgname-pump"

_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	update_config_sub || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--without-gtk \
		--sysconfdir=/etc \
		--disable-Werror \
		--mandir=/usr/share/man \
		|| return 1

	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install

	install -D -m644 ../distccd.confd "$pkgdir"/etc/conf.d/distccd
	install -D -m755 ../distccd.initd "$pkgdir"/etc/init.d/distccd

	local d="$pkgdir/usr/lib/$pkgname/bin"
	mkdir -p "$d"
	ln -sf /usr/bin/$pkgname "$d"/cc
	ln -sf /usr/bin/$pkgname "$d"/gcc
	ln -sf /usr/bin/$pkgname "$d"/g++
	ln -sf /usr/bin/$pkgname "$d"/cpp
}

pump() {
	pkgdesc="pump mode for distcc a distributed compiler client and server"
	mkdir -p "$subpkgdir"/usr/lib "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/pump "$subpkgdir"/usr/bin/
	mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/
}

md5sums="a1a9d3853df7133669fffec2a9aab9f3  distcc-3.1.tar.bz2
29fe296aa2985eea7af7402f421db187  distcc-3.1-clone.patch
351ca958ff4869f8a2795d8ca6647de1  distcc-hardened.patch
7d79c873943185b09ce6e7473fc85084  distccd.initd
e9e0ccc9f5813b9c3c88c8687b2ebc73  distccd.confd"
sha256sums="f55dbafd76bed3ce57e1bbcdab1329227808890d90f4c724fcd2d53f934ddd89  distcc-3.1.tar.bz2
473c21602cc7ea7f14c1d17d8dcf6f7d76ab0b665b58cd6d37a8b41f9233ce4b  distcc-3.1-clone.patch
dcf63f201cb7f4bf13eeb1485a5056c64370b9239d28e4acc77a47046dcda6cf  distcc-hardened.patch
381087326a35ddb46174d081d761f67a70a7e03b95455558c6b4fc7848392551  distccd.initd
692d1afe300f6a95910192c382a8d3f5d59fb9ed67f28f6b16ec06ac2df3c2f8  distccd.confd"
sha512sums="0ca7167309badf5d36d2783bab398295b52c43fde0355cf1902032c70b27fc40c21729c98af0ee4c0aeea0c48755e4626308e9385d938b7822de27cdb048e7bd  distcc-3.1.tar.bz2
ff0687b0034e542cde3884ef0f6a557148362999cdab2fbcd201467dea830f45cb1ed42dcf733c3861b52ca466a928514bccbd63fe4f3fa4716a0de50ed61691  distcc-3.1-clone.patch
d1150dc83bf89c332f8c0bd01e15f52f95d71868733bd2e5430a5377f1a4aaa2b5b6e0cd488d33d9b94ce18b0eeeadf4af719db536b001b50e4d482b35c7e057  distcc-hardened.patch
3c58be08242de09f76876b20a0c6643a3a76a088c356484cb091253b7e4dddb20008d071d8e5d1a66acbc5bfe4d8a59284a6d7f225ca2006e8a8b3c698e71026  distccd.initd
fbb12522e489243475c735e055a72a19b176f1ad736dc810e1f085d8d9d79460ac7590a92bb9563f8b316437f67f6ca729330253f007d06011144a66fede5465  distccd.confd"