summaryrefslogtreecommitdiffstats
path: root/main/tinc/APKBUILD
blob: 51757b79de95b39b2bbf7e5bc9d92f487822183b (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=tinc
pkgver=1.0.22
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 \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--enable-jumbograms \
		--enable-lzo \
		--enable-zlib \
		|| return 1
	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="cc1346150715bd56070695af85ab39f4  tinc-1.0.22.tar.gz
411a260ed9bb1fc441444c3efbeafd7b  tincd.initd
b95471eab010c0ed002cf3d16a009ced  tincd.lo.initd
475d64d9aa410ec7e91f5b079800abc9  tinc.networks"
sha256sums="4739dd1ec11070ea14aefa0e78e55957d343714a3c29815dd5487fc0a22c5c2c  tinc-1.0.22.tar.gz
0e8a18f9af03d967b30eac2c1de5d233449fae8a97342cdb88bf60e6b3867e73  tincd.initd
bd0909202c2f5b6fb0d97cac4f7f02a392393acd4b300a04db3a5416f4345035  tincd.lo.initd
7165721abd3706c95973118fbb503e18f9a008da6bdbf21a4ce35ecf7818d5ad  tinc.networks"
sha512sums="3d93f88a63b30783e25fa52ec0d6ff52fc090cbd7f1b1967ff51ec69d55038ffbf81891ab21081ca5a6710ff6ef979748b2e0bf0148434471a2b49acffee78e0  tinc-1.0.22.tar.gz
4a5da677d030dd24d347a86e7e892ea9aab57c2b4de8c9fa6ef576e239e4169f3ee6934162edc004a00678405f199606f05c173dd1ff94ee2f711536b1dfc072  tincd.initd
63df032f815b4a1e84c972e4cbfe115eda9fb80419b21d72811a947a8c9742f51442b5a06b0dbd220eb9a673b115fe62972019bdd4bac5855a36908c68bf5638  tincd.lo.initd
f7cb459c170898e51176bd92c642335386db90b7bca2abb3f6eb2514546efbd74e5fd2c8845060111dd48a0dd2cc1890717a03315c9b86185047c259cdc27135  tinc.networks"