Last active
October 4, 2022 04:53
-
-
Save crazyboycjr/a4f04c1cc983026e53d3cd2879b1f6af to your computer and use it in GitHub Desktop.
tinc-latest-PKGBUILD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: hexchain <i at hexchain dot org> | |
# Maintainer: crazyboycjr <[email protected]> | |
pkgname=tinc-pre | |
pkgver=latest | |
pkgrel=1 | |
pkgdesc="VPN (Virtual Private Network) daemon (Pre-release)" | |
arch=(i686 x86_64 armv7h armv6h) | |
url="http://www.tinc-vpn.org/" | |
license=('GPL') | |
depends=('lzo' 'zlib' 'openssl' 'miniupnpc') | |
makedepends=('git' 'meson') | |
optdepends=('python2' 'wxpython: gui support') | |
provides=('tinc-pre' 'tinc-pre-systemd') | |
conflicts=('tinc' 'tinc-pre-systemd') | |
# on Jun 5 | |
source=("$pkgname-$pkgver.tar.gz::https://github.com/gsliepen/tinc/archive/refs/tags/latest.tar.gz") | |
sha256sums=('cbcceca54d6ffaac2fe37675ed5cf1d38a892630ad3ffb28c7eac27a2822d5be') | |
build() { | |
cd "$srcdir/tinc-$pkgver" | |
meson configure | |
meson setup builddir -Dprefix=/usr -Dbuildtype=release -Dsbindir=/usr/bin | |
meson compile -C builddir | |
} | |
package() { | |
cd "$srcdir/tinc-$pkgver" | |
DESTDIR="$pkgdir" meson install -C builddir | |
mkdir -p "$pkgdir/etc/tinc/" | |
mkdir -p "$pkgdir/usr/share/doc/tinc-pre/" | |
cp -rv --no-preserve='ownership' "doc/sample-config/" "$pkgdir/usr/share/doc/tinc-pre/" | |
install -Dm644 "bash_completion.d/tinc" -t "$pkgdir/usr/share/bash-completion/completions/" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ lib, stdenv, fetchurl, meson, ninja, pkg-config, texinfo, ncurses, lz4, vde2, cmocka, zlib, lzo, openssl }: | |
stdenv.mkDerivation rec { | |
pname = "tinc"; | |
version = "latest"; # June 5 | |
src = fetchurl { | |
url = "https://github.com/gsliepen/tinc/archive/refs/tags/latest.tar.gz"; | |
sha256 = "cbcceca54d6ffaac2fe37675ed5cf1d38a892630ad3ffb28c7eac27a2822d5be"; | |
}; | |
outputs = [ "out" "man" "info" ]; | |
nativeBuildInputs = [ meson ninja texinfo pkg-config ]; | |
buildInputs = [ ncurses zlib lzo openssl lz4 vde2 cmocka ]; | |
mesonBuildType = "release"; | |
mesonFlags = [ | |
"-Dtunemu=disabled" | |
"-Dreadline=disabled" | |
]; | |
meta = with lib; { | |
description = "VPN daemon with full mesh routing"; | |
longDescription = '' | |
tinc is a Virtual Private Network (VPN) daemon that uses tunnelling and | |
encryption to create a secure private network between hosts on the | |
Internet. It features full mesh routing, as well as encryption, | |
authentication, compression and ethernet bridging. | |
''; | |
homepage="http://www.tinc-vpn.org/"; | |
license = licenses.gpl2Plus; | |
platforms = platforms.unix; | |
maintainers = with maintainers; [ lassulus mic92 crazyboycjr ]; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment