summaryrefslogtreecommitdiffstats
path: root/main/tinc/APKBUILD
blob: 0b231985936e56f7d770247d030f2b12bd40a451 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=tinc
pkgver=1.0.18
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="9352d53e892df4127e839f54a0e8af2a  tinc-1.0.18.tar.gz
411a260ed9bb1fc441444c3efbeafd7b  tincd.initd
b95471eab010c0ed002cf3d16a009ced  tincd.lo.initd
475d64d9aa410ec7e91f5b079800abc9  tinc.networks"