blob: 4e8d25f90e6291838f0aa287252db58c14602079 (
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
|
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=tinc
pkgver=1.0.36
pkgrel=0
pkgdesc="Virtual Private Network (VPN) daemon"
url="https://www.tinc-vpn.org"
arch="all"
license="GPL-2.0-or-later"
makedepends="zlib-dev lzo-dev openssl-dev linux-headers"
subpackages="$pkgname-doc"
source="https://www.tinc-vpn.org/packages/tinc-$pkgver.tar.gz
tincd.initd
tincd.lo.initd
tinc.networks"
# secfixes:
# 1.0.35-r0:
# - CVE-2018-16737
# - CVE-2018-16738
# - CVE-2018-16758
check() {
cd "$builddir"
make check
}
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
--enable-jumbograms \
--enable-lzo \
--enable-zlib
make
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
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
}
sha512sums="23af9162f7ae700bad01e1f59f23f32d1b183b185ec35f4a69a987c52c53cfebfa9e852203b399f035988078e9131e5d59b018554a52a30044f34df6e64b5289 tinc-1.0.36.tar.gz
81397ee122517b1e33a4b561ed1878329605c0b2bf771097cd076a982a6b3dd690097c50c0cbd035ad2964c0a48fe03c727a2d9584af7301dfd244e2ff5e8609 tincd.initd
7f5fa69d6e5e500a012f036a7692d19560ea8b9c66de6ab8775f37c2edb55fb4fabd245758f7577d2e1540d2e0c0964ff1e98d761c86bba4fa3c35c0dc6b5413 tincd.lo.initd
f7cb459c170898e51176bd92c642335386db90b7bca2abb3f6eb2514546efbd74e5fd2c8845060111dd48a0dd2cc1890717a03315c9b86185047c259cdc27135 tinc.networks"
|