aboutsummaryrefslogtreecommitdiffstats
path: root/community/tinc-pre/APKBUILD
blob: 03653364ebe97b0e4bf4170a220513e5e62f212e (plain) (blame)
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: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=tinc-pre
_distver="1.1pre17"
pkgver=${_distver/pre/.}
pkgrel=2
pkgdesc="Virtual Private Network (VPN) daemon (pre-release)"
url="https://tinc-vpn.org/"
# s390x: tests hang
# armhf: tests fail
arch="all !s390x !armhf !armv7"
license="GPL-2.0-or-later"
makedepends="linux-headers ncurses-dev readline-dev
	zlib-dev lzo-dev openssl-dev texinfo
	automake autoconf libtool bash"
subpackages="$pkgname-doc"
# TODO remove prevent-large-amounts-of-UDP-probes.patch on next release
source="http://tinc-vpn.org/packages/tinc-$_distver.tar.gz
	tinc-1.1-fix-paths.patch
	prevent-large-amounts-of-UDP-probes.patch
	$pkgname.initd
	$pkgname.confd
	$pkgname.networks
	"
builddir="$srcdir/tinc-$_distver"

prepare() {
	default_prepare
	autoreconf -fsi
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--enable-legacy-protocol \
		--enable-curses \
		--enable-readline \
		--enable-zlib \
		--enable-lzo \
		--disable-miniupnpc \
		--enable-jumbograms \
		--without-systemd
	make
}

check() {
	# Disable test
	sed -i '/legacy-protocol.test/d' test/Makefile
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	install -Dm755 "$srcdir"/$pkgname.initd \
		"$pkgdir"/etc/init.d/tincd
	install -Dm644 "$srcdir"/$pkgname.confd \
		"$pkgdir"/etc/conf.d/tincd
	install -Dm644 "$srcdir"/$pkgname.networks \
		"$pkgdir"/etc/conf.d/tinc.networks
}

sha512sums="b966dbfa522e12ff6766c4deb54a9da29cddc15c3a1df0f0e084df27ee5f1421ffbebc0e29472b1bcd79ea8b41f8c0ef904172e333dcba0b85bafe4654a63b30  tinc-1.1pre17.tar.gz
bb6f9a1fedf6ffab21f6bfa65c8d977b24453a5d667229eec995b979bbe8dcdaa0617f076a3d9081c4580068b385f7595b80856d5abcf9c928b866eb9c6f4910  tinc-1.1-fix-paths.patch
ce2ff7c57798bfb85f6b382552e31cd1f79ddcc3a1ecc6b823b51103a480d7ccf43475d0e4511b0aa48f4f1515d0e544a1af65a170caf3b6aacc084b391a4855  prevent-large-amounts-of-UDP-probes.patch
59811c3e5241d08ebdfbd539556b7cee0dfaab89727ad503512c98f1a696fae143ecdf2682a652c5d71d077ed254ffe2e1c442b1c305c7e7ea94d9af9a1d385e  tinc-pre.initd
f8d9354af5ebc07420ced98059262751bffef434b61c6333964338f327e2ac01ae676e375954efa794a1bccf8b939c78387b9fb7261f675f1237b0d946b529c9  tinc-pre.confd
f7cb459c170898e51176bd92c642335386db90b7bca2abb3f6eb2514546efbd74e5fd2c8845060111dd48a0dd2cc1890717a03315c9b86185047c259cdc27135  tinc-pre.networks"