Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Dec 2012 18:26:30 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r309626 - in head/x11/i3status: . files
Message-ID:  <201212291826.qBTIQUTv024984@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Sat Dec 29 18:26:29 2012
New Revision: 309626
URL: http://svnweb.freebsd.org/changeset/ports/309626

Log:
  - update to 2.6
  - add an experimental support for "mute"

Added:
  head/x11/i3status/files/
  head/x11/i3status/files/patch-src__print_volume.c   (contents, props changed)
Modified:
  head/x11/i3status/Makefile
  head/x11/i3status/distinfo

Modified: head/x11/i3status/Makefile
==============================================================================
--- head/x11/i3status/Makefile	Sat Dec 29 18:24:31 2012	(r309625)
+++ head/x11/i3status/Makefile	Sat Dec 29 18:26:29 2012	(r309626)
@@ -1,12 +1,7 @@
-# New ports collection makefile for:	i3status
-# Date created:		2011-12-08
-# Whom:			Baptiste Daroussin <bapt@FreeBSD.org>
-#
 # $FreeBSD$
-#
 
 PORTNAME=	i3status
-PORTVERSION=	2.5.1
+PORTVERSION=	2.6
 CATEGORIES=	x11
 MASTER_SITES=	http://i3wm.org/i3status/
 
@@ -15,8 +10,8 @@ COMMENT=	Small program for generating a 
 
 LICENSE=	BSD
 
-LIB_DEPENDS=	confuse.0:${PORTSDIR}/devel/libconfuse \
-		yajl.2:${PORTSDIR}/devel/yajl
+LIB_DEPENDS=	confuse:${PORTSDIR}/devel/libconfuse \
+		yajl:${PORTSDIR}/devel/yajl
 
 CPPFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib

Modified: head/x11/i3status/distinfo
==============================================================================
--- head/x11/i3status/distinfo	Sat Dec 29 18:24:31 2012	(r309625)
+++ head/x11/i3status/distinfo	Sat Dec 29 18:26:29 2012	(r309626)
@@ -1,2 +1,2 @@
-SHA256 (i3status-2.5.1.tar.bz2) = 7734efdf79a77617023f1e6d80080251eab3a05defb67313283568511d3e58f2
-SIZE (i3status-2.5.1.tar.bz2) = 30956
+SHA256 (i3status-2.6.tar.bz2) = e7e710cc271887bcd22757269e1b00a5618fb53abdb3455140116b3d38797bce
+SIZE (i3status-2.6.tar.bz2) = 34896

Added: head/x11/i3status/files/patch-src__print_volume.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11/i3status/files/patch-src__print_volume.c	Sat Dec 29 18:26:29 2012	(r309626)
@@ -0,0 +1,26 @@
+--- ./src/print_volume.c.orig	2012-10-03 13:44:44.000000000 +0200
++++ ./src/print_volume.c	2012-12-29 01:14:29.384748264 +0100
+@@ -175,8 +175,9 @@
+ 	}
+ #endif
+ #if defined(__FreeBSD__) || defined(__OpenBSD__)
+-        char mixerpath[] = "/dev/mixer";
++	char mixerpath[] = "/dev/mixer";
+         int mixfd, vol, devmask = 0;
++	int pbval = 1;
+ 
+         if ((mixfd = open(mixerpath, O_RDWR)) < 0)
+                 return;
+@@ -185,6 +186,12 @@
+         if (ioctl(mixfd, MIXER_READ(0),&vol) == -1)
+                 return;
+ 
++	if ((vol & 0x7f) == 0 && (vol >> 8) & 0x7f == 0)
++		pbval = 0;
++
++	if (!pbval)
++		START_COLOR("color_bad");
++
+         const char *walk = fmt;
+         for (; *walk != '\0'; walk++) {
+                 if (*walk != '%') {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212291826.qBTIQUTv024984>