aboutsummaryrefslogtreecommitdiffstats
path: root/main/tinc/APKBUILD
blob: 03e40579f4a2a2e38ebee639afb077366165a9b3 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=tinc
pkgver=1.0.21
pkgrel=0
pkgdesc="tinc is a Virtual Private Network (VPN) daemon"
url="http://www.tinc-vpn.org/"
arch="all"
license="GPL-2"
depends=
makedepends="zlib-dev lzo-dev openssl-dev"
install=
subpackages="$pkgname-doc"
source="http://www.tinc-vpn.org/packages/tinc-$pkgver.tar.gz
	tincd.initd
	tincd.lo.initd
	tinc.networks"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	# apply patches here
}

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

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

	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="001277e0ccd7ca29f7fa4039774ad611  tinc-1.0.20.tar.gz
411a260ed9bb1fc441444c3efbeafd7b  tincd.initd
b95471eab010c0ed002cf3d16a009ced  tincd.lo.initd
475d64d9aa410ec7e91f5b079800abc9  tinc.networks"
sha256sums="62230cdfcb9c3218df0be53b2e3a268a595d28b25dcb1ba190d25db91ae3d132  tinc-1.0.20.tar.gz
0e8a18f9af03d967b30eac2c1de5d233449fae8a97342cdb88bf60e6b3867e73  tincd.initd
bd0909202c2f5b6fb0d97cac4f7f02a392393acd4b300a04db3a5416f4345035  tincd.lo.initd
7165721abd3706c95973118fbb503e18f9a008da6bdbf21a4ce35ecf7818d5ad  tinc.networks"
sha512sums="54f974aa9afd66f76cb068f2b7ac4fe349f55f6233a3d129d44a9c9569ac9233e1610f8cf9e2161878bbfe4053beabe43591438f4cb3bd505b14bb6d61db6511  tinc-1.0.20.tar.gz
4a5da677d030dd24d347a86e7e892ea9aab57c2b4de8c9fa6ef576e239e4169f3ee6934162edc004a00678405f199606f05c173dd1ff94ee2f711536b1dfc072  tincd.initd
63df032f815b4a1e84c972e4cbfe115eda9fb80419b21d72811a947a8c9742f51442b5a06b0dbd220eb9a673b115fe62972019bdd4bac5855a36908c68bf5638  tincd.lo.initd
f7cb459c170898e51176bd92c642335386db90b7bca2abb3f6eb2514546efbd74e5fd2c8845060111dd48a0dd2cc1890717a03315c9b86185047c259cdc27135  tinc.networks"