blob: b978966c9bdcc55028921dd3aa9b7c9e1d4036e4 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=tinc
pkgver=1.0.13
pkgrel=0
pkgdesc="tinc is a Virtual Private Network (VPN) daemon"
url="http://www.tinc-vpn.org/"
arch="all"
license="GPL-2"
depends=
makedepends="zlib-dev lzo-dev openssl-dev"
install=
subpackages="$pkgname-doc"
source="http://www.tinc-vpn.org/packages/tinc-$pkgver.tar.gz
tincd.initd
tincd.lo.initd
tinc.networks"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
# apply patches here
}
build() {
cd "$_builddir"
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--enable-jumbograms \
--enable-lzo \
--enable-zlib
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install
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="86263994d38c750431efd17e9a91a248 tinc-1.0.13.tar.gz
89d104d38bab84d6f92d27464e48628d tincd.initd
96d8778284637fa7790a4c6239a72070 tincd.lo.initd
475d64d9aa410ec7e91f5b079800abc9 tinc.networks"
|