blob: 5c9c306e95c21438db3b38e271c019ceb9572540 (
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
|
pkgname=tinc-pre
pkgver=1.1pre10
pkgrel=1
pkgdesc="VPN (Virtual Private Network) daemon (Pre-release)"
arch=(i686 x86_64)
url="http://www.tinc-vpn.org/"
license=('GPL')
depends=('lzo2' 'zlib' 'openssl')
optdepends=('wxpython: gui support')
provides=('tinc-pre')
conflicts=('tinc')
source=(http://www.tinc-vpn.org/packages/tinc-$pkgver.tar.gz{,.sig}
tincd@.service)
sha256sums=('3a6a47d70c5e890b45ec570e9a6b1ad69a18ff33d401e2d38ecbb892ac468e7a'
'SKIP'
'43d086b76e2a6ff6d91a2ace2d6d048fc7109fefecd5047ab6c437ba0e9252ed')
build() {
cd "$srcdir/tinc-$pkgver"
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --sbindir=/usr/bin
make
}
package() {
cd "$srcdir/tinc-$pkgver"
make DESTDIR="$pkgdir" install
install -dm755 "$pkgdir"/usr/share/tinc/examples
tar xozvf doc/sample-config.tar.gz -C $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 {} +
install -Dm644 "$srcdir/tincd@.service" \
"$pkgdir/usr/lib/systemd/system/tincd@.service"
sed -e 's,#!/usr/bin/python,#!/usr/bin/python2,' \
-i $pkgdir/usr/bin/tinc-gui
}
|