blob: e087be50bb03c7ce83055757bba2c395654be41e (
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
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=tinc
pkgver=1.0.24
pkgrel=2
pkgdesc="tinc is a Virtual Private Network (VPN) daemon"
url="http://www.tinc-vpn.org/"
arch="all"
license="GPL2+"
depends=""
makedepends="zlib-dev lzo-dev openssl-dev"
install=""
subpackages="$pkgname-doc"
source="http://www.tinc-vpn.org/packages/tinc-$pkgver.tar.gz
musl.patch
tincd.initd
tincd.lo.initd
tinc.networks"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
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"
./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 \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
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="14a91eb2e85bdc0451a815612521b708 tinc-1.0.24.tar.gz
f2c913659191a0c81ed13dde305ca8bc musl.patch
06d8405b10a5e7eeb09037a0e6040ec3 tincd.initd
2a6dcec884a40ac6e6c5a0ea4e70d247 tincd.lo.initd
475d64d9aa410ec7e91f5b079800abc9 tinc.networks"
sha256sums="498e58f9f39e3922030a63cf62baf4b46a40fbda8d90b23ec0f084f4a9f9b687 tinc-1.0.24.tar.gz
a394327605fa38e1b7bbbb49eda6461c96553d31370107e337482934ea8b042c musl.patch
2d0e64a87b6e9b0826c43dc9975346d152c222ba4ac4cc0c58eb0669b6de748a tincd.initd
b83753910c6d92c6d39f6fe6ab114a71a9bdfb1debc47c14912c50b8e7c19685 tincd.lo.initd
7165721abd3706c95973118fbb503e18f9a008da6bdbf21a4ce35ecf7818d5ad tinc.networks"
sha512sums="a59d4f996892b9aa4ce6adaf3f40c06dfb37c2546edb6b3858af15df7f4e6f7738dc186969df1676ad1dab7fcc081bec262bd9df4efc7620e00ca9be9121bc7d tinc-1.0.24.tar.gz
2a631b82e2d24139e8bf07057578d3f8e7f566829492cbbb82d030505ba00fe63943c57778156bca6985ab216e7b0d5ad8aeb25f7d7affa3189b7b3a005d0312 musl.patch
159e426b6061a34500041b0efd858cfeb2d020341677985b40061dd032b2c6a343417441cb8087b61f1b1d9dbc69fd97f0fec8e264c12bd607b6077a3b784f2d tincd.initd
5c142917f44ffb94370a0212ec6ed2392d0da104db89d89302ce243df6ff26103c1a4b8162d57f9fafc205e41723fc443260e87c2c2eff3d73bffd6f4b521d97 tincd.lo.initd
f7cb459c170898e51176bd92c642335386db90b7bca2abb3f6eb2514546efbd74e5fd2c8845060111dd48a0dd2cc1890717a03315c9b86185047c259cdc27135 tinc.networks"
|