diff options
author | wiz <wiz@pkgsrc.org> | 2014-05-09 18:10:16 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2014-05-09 18:10:16 +0000 |
commit | 5a7a56381dcfdd1acf2b953aaea4186fb98ce283 (patch) | |
tree | 855069496f11abfd959bf27472f77fa448cb0af7 /net/wimon | |
parent | 64d7b976d6b183e379ac57d2d40cb59f56e13d4f (diff) | |
download | pkgsrc-5a7a56381dcfdd1acf2b953aaea4186fb98ce283.tar.gz |
Fix build on NetBSD-current, patch from Anon.
While here: set LICENSE, add comments to patches.
Diffstat (limited to 'net/wimon')
-rw-r--r-- | net/wimon/Makefile | 4 | ||||
-rw-r--r-- | net/wimon/distinfo | 6 | ||||
-rw-r--r-- | net/wimon/patches/patch-aa | 4 | ||||
-rw-r--r-- | net/wimon/patches/patch-ab | 27 |
4 files changed, 32 insertions, 9 deletions
diff --git a/net/wimon/Makefile b/net/wimon/Makefile index f7c1a1efc2e..38450cc35c6 100644 --- a/net/wimon/Makefile +++ b/net/wimon/Makefile @@ -1,5 +1,4 @@ -# $NetBSD: Makefile,v 1.11 2012/10/23 17:19:19 asau Exp $ -# +# $NetBSD: Makefile,v 1.12 2014/05/09 18:10:16 wiz Exp $ DISTNAME= wimon-0.3 PKGREVISION= 1 @@ -9,6 +8,7 @@ MASTER_SITES= http://imil.net/wimon/ MAINTAINER= imil@gcu.info HOMEPAGE= http://imil.net/wimon/ COMMENT= Tool that shows a real-time graph of your wireless connection +LICENSE= original-bsd PKG_INSTALLATION_TYPES= overwrite pkgviews diff --git a/net/wimon/distinfo b/net/wimon/distinfo index 9b17ad9289b..ca819e73b38 100644 --- a/net/wimon/distinfo +++ b/net/wimon/distinfo @@ -1,7 +1,7 @@ -$NetBSD: distinfo,v 1.6 2011/01/03 07:38:58 obache Exp $ +$NetBSD: distinfo,v 1.7 2014/05/09 18:10:16 wiz Exp $ SHA1 (wimon-0.3.tar.gz) = 8be1bc6d4917adee5641310258fe77f8b265013f RMD160 (wimon-0.3.tar.gz) = d8670b1ceb1fde0c0001b2e6ca39a82909cd42d4 Size (wimon-0.3.tar.gz) = 8103 bytes -SHA1 (patch-aa) = 47713b06e1d5e4ca6e96af593edb41eedce8d42f -SHA1 (patch-ab) = 8bd60329cd0bb61ceff81e58774d1fabba65e9e7 +SHA1 (patch-aa) = 30dc6b67123b892b6e30ed1dc85ca76bc8de790c +SHA1 (patch-ab) = 6d51b89c24cdf1a410ddfe38ea78e72d40082785 diff --git a/net/wimon/patches/patch-aa b/net/wimon/patches/patch-aa index 2104c527e9b..e1ee6a4ac80 100644 --- a/net/wimon/patches/patch-aa +++ b/net/wimon/patches/patch-aa @@ -1,4 +1,6 @@ -$NetBSD: patch-aa,v 1.2 2011/01/03 07:38:58 obache Exp $ +$NetBSD: patch-aa,v 1.3 2014/05/09 18:10:16 wiz Exp $ + +DragonFly support. --- showi.c.orig 2006-01-08 21:26:47.000000000 +0000 +++ showi.c diff --git a/net/wimon/patches/patch-ab b/net/wimon/patches/patch-ab index 3d1ad3d35dd..5fa54b5428a 100644 --- a/net/wimon/patches/patch-ab +++ b/net/wimon/patches/patch-ab @@ -1,7 +1,10 @@ -$NetBSD: patch-ab,v 1.1 2006/09/24 13:53:17 joerg Exp $ +$NetBSD: patch-ab,v 1.2 2014/05/09 18:10:16 wiz Exp $ ---- wimon.c.orig 2006-09-24 15:51:09.000000000 +0000 -+++ wimon.c +Only define MAX if it's not defined yet. +Remove unused variable. + +--- wimon.c.orig 2004-07-13 03:38:18.000000000 -0400 ++++ wimon.c 2014-05-09 12:55:58.000000000 -0400 @@ -50,7 +50,9 @@ wattroff(a, b); \ } @@ -12,3 +15,21 @@ $NetBSD: patch-ab,v 1.1 2006/09/24 13:53:17 joerg Exp $ #define ABS(a) ((a)>0?(a):-(a)) #define INTERVAL (5) +@@ -165,7 +167,7 @@ print_str_items(WINDOW *cur_win, const c + static void + show_infos(struct wi_infos wi) + { +- int x, y, cur_w = COLS - (BORDER * 2) - 6; /* 6 == strlen("ssid: ") */ ++ int x, cur_w = COLS - (BORDER * 2) - 6; /* 6 == strlen("ssid: ") */ + + wmove(main_win, 1, 2); + +@@ -175,7 +177,7 @@ show_infos(struct wi_infos wi) + print_int_items(main_win, "tx rate (Mbps)", wi.curtxrate); + wprintw(main_win, " | "); + /* if stlen(ssid) > screen width, reduce ssid to window width - diff */ +- getyx(main_win, y, x); ++ x = getcurx(main_win); + x = cur_w - (x + wi.curssidlen); + if (x <= 0) { + wi.curssid[wi.curssidlen + x] = '\0'; |