blob: 589876dcc2f923c4c9dbabf87526f6701c54e003 (
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
|
# Maintainer: Erich Eckner <arch at eckner dot net>
# Contributor: Johannes Löthberg <johannes@kyriasis.com>
# Contributor: Timothy Redaelli <timothy.redaelli@gmail.com>
# Contributor: helios
# Contributor: Lothar Gesslein
# Contributor: Dominik George <nik@naturalnet.de>
pkgname=tinc
pkgver=1.0.36_1.1pre18
_pkgver=${pkgver#*_}
pkgrel=4
pkgdesc="VPN (Virtual Private Network) daemon"
url="https://www.tinc-vpn.org/"
arch=('armv6h' 'armv7h' 'aarch64' 'i486' 'i686' 'pentium4' 'x86_64')
license=('GPL')
_pinned_dependencies=(
'gcc-libs=11.2.0'
'glibc>=2.31'
'libncursesw.so=6'
'libreadline.so=8'
'lzo=2.10'
'openssl=1.1.1.n'
'zlib=1:1.2.11'
)
depends=(
"${_pinned_dependencies[@]}"
)
source=(https://www.tinc-vpn.org/packages/tinc-$_pkgver.tar.gz{,.sig})
sha512sums=('d8b03c78fd579df58d4c8a03f5d2241d2c95edb660ce9aa34441f6e75df09e3fff7524215c7c4b3622311e80f5bb452a6ac1205f3fd13424d56135f70b973183'
'SKIP')
validpgpkeys=('D62BDD168EFBE48BC60E8E234A6084B9C0D71F4A')
build() {
cd tinc-$_pkgver
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--sbindir=/usr/bin \
--with-systemd=/usr/lib/systemd/system
make
}
package() {
cd tinc-$_pkgver
make DESTDIR="$pkgdir/" install
install -dm755 "$pkgdir"/usr/share/tinc/examples
cp -a doc/sample-config/. "$pkgdir"/usr/share/tinc/examples/
find "$pkgdir"/usr/share/tinc/examples -type f -exec chmod 644 {} +
find "$pkgdir"/usr/share/tinc/examples -type d -exec chmod 755 {} +
}
|