public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in x11-misc/i3status: metadata.xml i3status-2.6.ebuild ChangeLog i3status-2.5.1.ebuild
@ 2013-01-27 18:31 Kacper Kowalik (xarthisius)
  0 siblings, 0 replies; only message in thread
From: Kacper Kowalik (xarthisius) @ 2013-01-27 18:31 UTC (permalink / raw
  To: gentoo-commits

xarthisius    13/01/27 18:31:04

  Modified:             metadata.xml i3status-2.6.ebuild ChangeLog
  Removed:              i3status-2.5.1.ebuild
  Log:
  Drop old. Use new fcaps.eclass
  
  (Portage version: 2.2.0_alpha149/cvs/Linux x86_64, signed Manifest commit with key 895192F9)

Revision  Changes    Path
1.2                  x11-misc/i3status/metadata.xml

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/i3status/metadata.xml?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/i3status/metadata.xml?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/i3status/metadata.xml?r1=1.1&r2=1.2

Index: metadata.xml
===================================================================
RCS file: /var/cvsroot/gentoo-x86/x11-misc/i3status/metadata.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- metadata.xml	22 Jul 2011 08:14:00 -0000	1.1
+++ metadata.xml	27 Jan 2013 18:31:04 -0000	1.2
@@ -14,4 +14,7 @@
 		status bar is updated correctly. Also, it saves a bit of energy by not hogging
 		your CPU as much as spawning the corresponding amount of shell commands would.
 	</longdescription>
+	<use>
+		<flag name="filecaps">Linux capabilities library is required for i3status to be able to read net bandwith</flag>
+	</use>
 </pkgmetadata>



1.4                  x11-misc/i3status/i3status-2.6.ebuild

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/i3status/i3status-2.6.ebuild?rev=1.4&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/i3status/i3status-2.6.ebuild?rev=1.4&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/i3status/i3status-2.6.ebuild?r1=1.3&r2=1.4

Index: i3status-2.6.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/x11-misc/i3status/i3status-2.6.ebuild,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- i3status-2.6.ebuild	16 Dec 2012 16:33:16 -0000	1.3
+++ i3status-2.6.ebuild	27 Jan 2013 18:31:04 -0000	1.4
@@ -1,10 +1,10 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2013 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-misc/i3status/i3status-2.6.ebuild,v 1.3 2012/12/16 16:33:16 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/i3status/i3status-2.6.ebuild,v 1.4 2013/01/27 18:31:04 xarthisius Exp $
 
 EAPI=4
 
-inherit toolchain-funcs versionator
+inherit toolchain-funcs versionator fcaps
 
 DESCRIPTION="generates a status bar for dzen2, xmobar or similar"
 HOMEPAGE="http://i3wm.org/i3status/"
@@ -13,56 +13,13 @@
 LICENSE="BSD"
 SLOT="0"
 KEYWORDS="amd64 x86"
-IUSE="+caps"
+IUSE=""
 
 RDEPEND="dev-libs/confuse
 	>=dev-libs/yajl-2.0.2
 	media-libs/alsa-lib
 	net-wireless/wireless-tools"
-DEPEND="${RDEPEND}
-	caps? ( sys-libs/libcap )"
-
-# borrowed from GSoC2010_Gentoo_Capabilities by constanze and flameyeys
-# @FUNCTION: fcaps
-# @USAGE: fcaps {uid:gid} {file-mode} {cap1[,cap2,...]} {file}
-# @RETURN: 0 if all okay; non-zero if failure and fallback
-# @DESCRIPTION:
-# fcaps sets the specified capabilities in the effective and permitted set of
-# the given file. In case of failure fcaps sets the given file-mode.
-# Requires versionator.eclass
-fcaps() {
-	local uid_gid=$1
-	local perms=$2
-	local capset=$3
-	local path=$4
-	local res
-
-	chmod $perms $path && \
-	chown $uid_gid $path
-	res=$?
-
-	use caps || return $res
-
-	#set the capability
-	setcap "$capset=ep" "$path" &> /dev/null
-	#check if the capabilitiy got set correctly
-	setcap -v "$capset=ep" "$path" &> /dev/null
-	res=$?
-
-	if [ $res -ne 0 ]; then
-		ewarn "Failed to set capabilities. Probable reason is missing kernel support."
-		ewarn "Your kernel must have <FS>_FS_SECURITY enabled (e.g. EXT4_FS_SECURITY)"
-		ewarn "where <FS> is the filesystem to store ${path}"
-		if ! version_is_at_least 2.6.33 "$(uname -r)"; then
-			ewarn "For kernel 2.6.32 or older, you will also need to enable"
-			ewarn "SECURITY_FILE_CAPABILITIES."
-		fi
-		ewarn
-		ewarn "Falling back to suid now..."
-		chmod u+s ${path}
-	fi
-	return $res
-}
+DEPEND="${RDEPEND}"
 
 pkg_setup() {
 	tc-export CC
@@ -74,7 +31,7 @@
 }
 
 pkg_postinst() {
-	fcaps 0:users 550 cap_net_admin "${ROOT}"/usr/bin/${PN}
+	fcaps cap_net_admin usr/bin/${PN}
 	elog "You need to install x11-misc/xmobar or x11-misc/dzen to use ${PN}."
 	elog "Please refer to manual: man ${PN}"
 }



1.15                 x11-misc/i3status/ChangeLog

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/i3status/ChangeLog?rev=1.15&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/i3status/ChangeLog?rev=1.15&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/i3status/ChangeLog?r1=1.14&r2=1.15

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/x11-misc/i3status/ChangeLog,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- ChangeLog	16 Dec 2012 16:33:16 -0000	1.14
+++ ChangeLog	27 Jan 2013 18:31:04 -0000	1.15
@@ -1,6 +1,10 @@
 # ChangeLog for x11-misc/i3status
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-misc/i3status/ChangeLog,v 1.14 2012/12/16 16:33:16 ago Exp $
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/i3status/ChangeLog,v 1.15 2013/01/27 18:31:04 xarthisius Exp $
+
+  27 Jan 2013; Kacper Kowalik <xarthisius@gentoo.org> -i3status-2.5.1.ebuild,
+  i3status-2.6.ebuild, metadata.xml:
+  Drop old. Use new fcaps.eclass
 
   16 Dec 2012; Agostino Sarubbo <ago@gentoo.org> i3status-2.6.ebuild:
   Stable for x86, wrt bug #446950





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-01-27 18:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-27 18:31 [gentoo-commits] gentoo-x86 commit in x11-misc/i3status: metadata.xml i3status-2.6.ebuild ChangeLog i3status-2.5.1.ebuild Kacper Kowalik (xarthisius)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox