Line
Link Here
|
0 |
-- a/i3status-2.3.ebuild |
0 |
++ b/i3status-2.3.ebuild |
Lines 4-10
Link Here
|
4 |
|
4 |
|
5 |
EAPI=4 |
5 |
EAPI=4 |
6 |
|
6 |
|
7 |
inherit toolchain-funcs |
7 |
inherit toolchain-funcs versionator |
8 |
|
8 |
|
9 |
DESCRIPTION="generates a status bar for dzen2, xmobar or similar" |
9 |
DESCRIPTION="generates a status bar for dzen2, xmobar or similar" |
10 |
HOMEPAGE="http://i3wm.org/i3status/" |
10 |
HOMEPAGE="http://i3wm.org/i3status/" |
Lines 28-33
Link Here
|
28 |
# @DESCRIPTION: |
28 |
# @DESCRIPTION: |
29 |
# fcaps sets the specified capabilities in the effective and permitted set of |
29 |
# fcaps sets the specified capabilities in the effective and permitted set of |
30 |
# the given file. In case of failure fcaps sets the given file-mode. |
30 |
# the given file. In case of failure fcaps sets the given file-mode. |
|
|
31 |
# Requires versionator.eclass |
31 |
fcaps() { |
32 |
fcaps() { |
32 |
local uid_gid=$1 |
33 |
local uid_gid=$1 |
33 |
local perms=$2 |
34 |
local perms=$2 |
Lines 48-57
Link Here
|
48 |
res=$? |
49 |
res=$? |
49 |
|
50 |
|
50 |
if [ $res -ne 0 ]; then |
51 |
if [ $res -ne 0 ]; then |
51 |
ewarn "Failed to set capabilities. Probable reason is missed kernel support." |
52 |
ewarn "Failed to set capabilities. Probable reason is missing kernel support." |
52 |
ewarn "Kernel must have SECURITY_FILE_CAPABILITIES, and <FS>_FS_SECURITY" |
53 |
ewarn "Your kernel must have <FS>_FS_SECURITY enabled (e.g. EXT4_FS_SECURITY)" |
53 |
ewarn "enabled (e.g. EXT3_FS_SECURITY) where <FS> is the filesystem to store" |
54 |
ewarn "where <FS> is the filesystem to store ${path}" |
54 |
ewarn "${path}" |
55 |
if ! version_is_at_least 2.6.33 "$(uname -r)"; then |
|
|
56 |
ewarn "For kernel 2.6.32 or older, you will also need to enable" |
57 |
ewarn "SECURITY_FILE_CAPABILITIES." |
58 |
fi |
55 |
ewarn |
59 |
ewarn |
56 |
ewarn "Falling back to suid now..." |
60 |
ewarn "Falling back to suid now..." |
57 |
chmod u+s ${path} |
61 |
chmod u+s ${path} |