summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD28
1 files changed, 18 insertions, 10 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 4f09235b595..2edb97a31ab 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,26 +1,33 @@
# Maintainer: Hexchain Tong <i at hexchain dot org>
pkgname=tinc-pre
-pkgver=1.1pre12
-pkgrel=2
+pkgver=1.1pre13
+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')
+depends=('lzo2' 'zlib' 'openssl' 'miniupnpc')
makedepends=('git' 'autoconf')
optdepends=('python2' 'wxpython: gui support')
provides=('tinc-pre' 'tinc-pre-systemd')
conflicts=('tinc' 'tinc-pre-systemd')
install="${pkgname}.install"
-source=("git+https://github.com/gsliepen/tinc.git#tag=release-$pkgver")
-sha256sums=('SKIP')
+source=("git+https://github.com/gsliepen/tinc.git#tag=release-$pkgver" "tinc.service")
+sha256sums=('SKIP'
+ 'f66139ba4770b1de9c172e33462087d3df60371f22191707c5ee98386323c5bb')
build() {
cd "$srcdir/tinc"
- autoreconf -i
- ./configure --prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc --localstatedir=/var
+ autoreconf -fsi
+ ./configure \
+ --prefix=/usr \
+ --sbindir=/usr/bin \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --with-systemd=/usr/lib/systemd/system \
+ --enable-miniupnpc
make
}
@@ -30,8 +37,9 @@ package() {
mkdir -p "$pkgdir/etc/tinc/"
mkdir -p "$pkgdir/usr/share/doc/tinc-pre/"
- cp -rv "$srcdir/tinc/doc/sample-config/" "$pkgdir/usr/share/doc/tinc-pre/"
+ cp -rv --no-preserve='ownership' "$srcdir/tinc/doc/sample-config/" "$pkgdir/usr/share/doc/tinc-pre/"
install -Dm644 "$srcdir/tinc/bash_completion.d/tinc" -t "$pkgdir/usr/share/bash-completion/completions/"
- install -Dm644 "$srcdir/tinc/systemd/tinc.service" -t "$pkgdir/usr/lib/systemd/system/"
- install -Dm644 "$srcdir/tinc/systemd/tinc@.service" -t "$pkgdir/usr/lib/systemd/system/"
+
+ install -Dm644 "$srcdir/tinc.service" -t "$pkgdir/usr/lib/systemd/system/"
+ # install -Dm644 "$srcdir/tinc/systemd/tinc@.service" -t "$pkgdir/usr/lib/systemd/system/"
}