aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tb-tun/APKBUILD
blob: 676e981929d41dd896df644e980db987919cecb6 (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
# Contributor: Dennis Przytarski <dennis@przytarski.com>
# Maintainer:
pkgname=tb-tun
pkgver=r18
pkgrel=0
pkgdesc="An userspace program using TUN/TAP to build 6to4/tunnelbroker/ISATAP tunnel on Linux"
url="https://code.google.com/p/tb-tun/"
arch="all"
license="GPL1+ PerlArtistic"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages=""
source="http://$pkgname.googlecode.com/files/${pkgname}_${pkgver}.tar.gz"

_builddir="$srcdir"
prepare() {
	local i
	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"
	gcc tb_userspace.c -l pthread -o tb_userspace || return 1
}

package() {
	cd "$_builddir"
	install -Dm755 tb_userspace "$pkgdir"/usr/sbin/tb_userspace || return 1
}

md5sums="7227ed964e9eaacb7fc7e08a86c3ffcc  tb-tun_r18.tar.gz"
sha256sums="3c4a18069a888a15b20da3a8ba12374bcae8257b59c0f2221513811df23dec12  tb-tun_r18.tar.gz"
sha512sums="476532ffaa0eb584af04bc226507445fbe6f5d50aff25cbee6f1d85c0fae19621923905be2a01c52bad5bb01156237b232eed485fd45ffee1da48f14534a92c0  tb-tun_r18.tar.gz"