aboutsummaryrefslogtreecommitdiffstats
path: root/main/tinc/APKBUILD
blob: 06ea162701d1c25e4221cd04b00873347767cb8a (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
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=tinc
pkgver=1.0.25
pkgrel=1
pkgdesc="tinc is a Virtual Private Network (VPN) daemon"
url="http://www.tinc-vpn.org/"
arch="all"
license="GPL2+"
depends=""
makedepends="zlib-dev lzo-dev openssl-dev linux-headers"
install=""
subpackages="$pkgname-doc"
source="http://www.tinc-vpn.org/packages/tinc-$pkgver.tar.gz
	musl.patch
	tincd.initd
	tincd.lo.initd
	tinc.networks"

_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
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--enable-jumbograms \
		--enable-lzo \
		--enable-zlib \
		|| return 1
	make || return 1
}

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

	mkdir "$pkgdir"/etc/tinc
	install -m755 -D "$srcdir"/tincd.initd "$pkgdir"/etc/init.d/tincd
	install -m755 -D "$srcdir"/tincd.lo.initd \
		"$pkgdir"/etc/init.d/tincd.lo
	install -m644 -D "$srcdir"/tinc.networks \
		"$pkgdir"/etc/conf.d/tinc.networks
}

md5sums="0b91b693f7cf76f481b547d0c86f9578  tinc-1.0.25.tar.gz
f2c913659191a0c81ed13dde305ca8bc  musl.patch
7d6622912f53f322cf324a464979ec6d  tincd.initd
5d2530c4129de43b4be2b374b00327ba  tincd.lo.initd
475d64d9aa410ec7e91f5b079800abc9  tinc.networks"
sha256sums="c5c1c554e594d77365b63222ef15f4460c0c202f9163a89a087333a779f4f133  tinc-1.0.25.tar.gz
a394327605fa38e1b7bbbb49eda6461c96553d31370107e337482934ea8b042c  musl.patch
60962e6b5fad1d97549ad21fb85ff8611254436661ceaa18ca878a5985dbe004  tincd.initd
4ed57b8f12d171adc7f4f384b6d38caa4b906b82de7f602813dda845ec8554aa  tincd.lo.initd
7165721abd3706c95973118fbb503e18f9a008da6bdbf21a4ce35ecf7818d5ad  tinc.networks"
sha512sums="0d3cdfa3c7bad131f6b8b9c350afd6818b2cdb44066e322df7a2314d43c532472f372c689a793ec40f3981a55b21a1e0b37bb51b8e6c6a4a569bba0d6c3a7fa1  tinc-1.0.25.tar.gz
2a631b82e2d24139e8bf07057578d3f8e7f566829492cbbb82d030505ba00fe63943c57778156bca6985ab216e7b0d5ad8aeb25f7d7affa3189b7b3a005d0312  musl.patch
81397ee122517b1e33a4b561ed1878329605c0b2bf771097cd076a982a6b3dd690097c50c0cbd035ad2964c0a48fe03c727a2d9584af7301dfd244e2ff5e8609  tincd.initd
7f5fa69d6e5e500a012f036a7692d19560ea8b9c66de6ab8775f37c2edb55fb4fabd245758f7577d2e1540d2e0c0964ff1e98d761c86bba4fa3c35c0dc6b5413  tincd.lo.initd
f7cb459c170898e51176bd92c642335386db90b7bca2abb3f6eb2514546efbd74e5fd2c8845060111dd48a0dd2cc1890717a03315c9b86185047c259cdc27135  tinc.networks"