From ee2528151fd207bb56c8af4a04025b3514c0ca47 Mon Sep 17 00:00:00 2001 From: Fincer Date: Fri, 3 Mar 2017 17:46:15 +0200 Subject: [PATCH] Haguichi 1.0.26: Remove unneeded deps + fix hamachi detection --- haguichi/PKGBUILD | 15 ++++++++++++--- haguichi/fix-hamachi-not-detected.patch | 23 +++++++++++++++++++++++ 2 files changed, 35 insertions(+), 3 deletions(-) create mode 100644 haguichi/fix-hamachi-not-detected.patch diff --git a/haguichi/PKGBUILD b/haguichi/PKGBUILD index eac7baf..0946d92 100644 --- a/haguichi/PKGBUILD +++ b/haguichi/PKGBUILD @@ -1,5 +1,6 @@ # Maintainer: Andreas B. Wagner pointfree on irc.freenode.net # Contributor: scrawl +# Contributor: Fincer pkgname=haguichi pkgver=1.0.26 @@ -9,10 +10,18 @@ pkgdesc="Hamachi GUI" arch=('any') url="http://www.haguichi.net" license=('GPL2') -depends=('logmein-hamachi' 'mono' 'gconf-sharp' 'notify-sharp' 'ndesk-dbus-glib') +depends=('logmein-hamachi' 'gconf-sharp' 'notify-sharp' 'gtk2') +makedepends=('make') #source=("http://launchpad.net/$pkgname/$_series/$pkgver/+download/$pkgname-$pkgver-clr4.0.tar.gz") -source=("haguichi-1.0.26-clr4.0.tar.gz") -sha256sums=('SKIP') +source=("haguichi-1.0.26-clr4.0.tar.gz" +fix-hamachi-not-detected.patch) +sha256sums=('e65fad7961cd8152ca8a47477c55ba9d1f4a12fdc602c04d32fed1b29c2266b4' + '2015c65d7081fd1fc06357c8b58603b78a063e3d38bea3dfd4b06d8fb35f49e2') + +prepare() { + cd $srcdir/$pkgname-$pkgver + patch -Np1 -i "$srcdir/fix-hamachi-not-detected.patch" +} build() { cd $srcdir/$pkgname-$pkgver diff --git a/haguichi/fix-hamachi-not-detected.patch b/haguichi/fix-hamachi-not-detected.patch new file mode 100644 index 0000000..8689817 --- /dev/null +++ b/haguichi/fix-hamachi-not-detected.patch @@ -0,0 +1,23 @@ +--- a/src/Hamachi.cs ++++ b/src/Hamachi.cs +@@ -54,7 +54,7 @@ + + if ( Config.Settings.DemoMode ) + { +- Version = "2.1.0.136"; ++ Version = "2.1.0.174"; + VpnAliasCapable = true; + IpModeCapable = true; + return 2; + +--- a/src/Controller.cs ++++ b/src/Controller.cs +@@ -33,7 +33,7 @@ + public static bool manualUpdate; + public static bool restoreConnection; + public static int restoreCountdown; +- public static int lastStatus = -3; ++ public static int lastStatus; + public static int numUpdateCycles; + private static int numWaitForInternetCycles; + private static string startOutput;