summaryrefslogtreecommitdiff
path: root/tinc
diff options
context:
space:
mode:
authorErich Eckner <erich.eckner.ext@bestsecret.com>2024-05-24 08:25:11 +0200
committerErich Eckner <erich.eckner.ext@bestsecret.com>2024-05-24 08:41:41 +0200
commitce3d0f209a83c58c8f26cf8dc69a1c0549c06b3f (patch)
treed1454b335c69b7a1454ff555d94933823d3001c9 /tinc
parente9c3719d1da459b3765df65c075b5e413cb221d9 (diff)
downloadarchlinuxewe-ce3d0f209a83c58c8f26cf8dc69a1c0549c06b3f.tar.xz
tinc: reintroduce - we have a newer version
Diffstat (limited to 'tinc')
-rw-r--r--tinc/PKGBUILD62
1 files changed, 62 insertions, 0 deletions
diff --git a/tinc/PKGBUILD b/tinc/PKGBUILD
new file mode 100644
index 000000000..48e48346c
--- /dev/null
+++ b/tinc/PKGBUILD
@@ -0,0 +1,62 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Contributor: Johannes Löthberg <johannes@kyriasis.com>
+# Contributor: Timothy Redaelli <timothy.redaelli@gmail.com>
+# Contributor: helios
+# Contributor: Lothar Gesslein
+# Contributor: Dominik George <nik@naturalnet.de>
+
+pkgname=tinc
+pkgver=1.0.36_1.1pre18
+_pkgver=${pkgver#*_}
+pkgrel=21
+
+pkgdesc="VPN (Virtual Private Network) daemon"
+url="https://www.tinc-vpn.org/"
+arch=('armv6h' 'armv7h' 'aarch64' 'i486' 'i686' 'pentium4' 'x86_64')
+license=('GPL')
+
+_pinned_dependencies_i486=(
+ 'gcc-libs=14.1.1+r58+gfc9fb69ad62'
+)
+_pinned_dependencies=(
+ 'glibc>=2.31'
+ 'libcrypto.so=3'
+ 'liblzo2.so=2'
+ 'libncursesw.so=6'
+ 'libreadline.so=8'
+ 'libz.so=1'
+)
+depends_i486=(
+ "${_pinned_dependencies_i486[@]}")
+depends_i686=(
+ "${_pinned_dependencies_i686[@]}")
+depends=(
+ "${_pinned_dependencies[@]}")
+
+source=(https://www.tinc-vpn.org/packages/tinc-$_pkgver.tar.gz{,.sig})
+
+sha512sums=('d8b03c78fd579df58d4c8a03f5d2241d2c95edb660ce9aa34441f6e75df09e3fff7524215c7c4b3622311e80f5bb452a6ac1205f3fd13424d56135f70b973183'
+ 'SKIP')
+validpgpkeys=('D62BDD168EFBE48BC60E8E234A6084B9C0D71F4A')
+
+build() {
+ cd tinc-$_pkgver
+
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --sbindir=/usr/bin \
+ --with-systemd=/usr/lib/systemd/system
+ make
+}
+
+package() {
+ cd tinc-$_pkgver
+
+ make DESTDIR="$pkgdir/" install
+ install -dm755 "$pkgdir"/usr/share/tinc/examples
+ cp -a doc/sample-config/. "$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 {} +
+}