From e3ed759d9c21d69504c9743a0b8284b60779e600 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Reynolds?= Date: Wed, 10 Jul 2013 10:41:17 -0300 Subject: Tinc 1.1 --- pcr/tinc-pre/PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ pcr/tinc-pre/tincd@.service | 10 ++++++++++ 2 files changed, 52 insertions(+) create mode 100644 pcr/tinc-pre/PKGBUILD create mode 100644 pcr/tinc-pre/tincd@.service (limited to 'pcr') diff --git a/pcr/tinc-pre/PKGBUILD b/pcr/tinc-pre/PKGBUILD new file mode 100644 index 000000000..ebbd4cc3f --- /dev/null +++ b/pcr/tinc-pre/PKGBUILD @@ -0,0 +1,42 @@ +pkgname=tinc-pre +pkgver=1.1pre7 +pkgrel=2 +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) + +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 +} +sha1sums=('62a014356864c3a5204edd6e934f3ee575760cfc' + 'SKIP' + '6ab485732bb6c59e7e0e162f22251a0f554ec69c') +sha256sums=('ff330627ad0d6ce1233408bb75b11d7506be13eb0c802ff1657866d97545074b' + 'SKIP' + '43d086b76e2a6ff6d91a2ace2d6d048fc7109fefecd5047ab6c437ba0e9252ed') diff --git a/pcr/tinc-pre/tincd@.service b/pcr/tinc-pre/tincd@.service new file mode 100644 index 000000000..069bf4570 --- /dev/null +++ b/pcr/tinc-pre/tincd@.service @@ -0,0 +1,10 @@ +[Unit] +Description=Tinc daemon for net %i +After=network.target + +[Service] +Type=forking +ExecStart=/usr/bin/tincd -n %i + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3-2-g168b