|
Line
Link Here
|
| 0 |
-- a/wireshark-1.6.2.ebuild |
0 |
++ b/wireshark-1.6.2.ebuild |
|
Lines 4-10
Link Here
|
| 4 |
|
4 |
|
| 5 |
EAPI="3" |
5 |
EAPI="3" |
| 6 |
PYTHON_DEPEND="python? 2" |
6 |
PYTHON_DEPEND="python? 2" |
| 7 |
inherit libtool flag-o-matic eutils toolchain-funcs python |
7 |
inherit libtool flag-o-matic eutils toolchain-funcs python versionator |
| 8 |
|
8 |
|
| 9 |
[[ -n ${PV#*_rc} && ${PV#*_rc} != ${PV} ]] && MY_P=${PN}-${PV/_} || MY_P=${P} |
9 |
[[ -n ${PV#*_rc} && ${PV#*_rc} != ${PV} ]] && MY_P=${PN}-${PV/_} || MY_P=${P} |
| 10 |
DESCRIPTION="A network protocol analyzer formerly known as ethereal" |
10 |
DESCRIPTION="A network protocol analyzer formerly known as ethereal" |
|
Lines 58-63
Link Here
|
| 58 |
# @DESCRIPTION: |
58 |
# @DESCRIPTION: |
| 59 |
# fcaps sets the specified capabilities in the effective and permitted set of |
59 |
# fcaps sets the specified capabilities in the effective and permitted set of |
| 60 |
# the given file. In case of failure fcaps sets the given file-mode. |
60 |
# the given file. In case of failure fcaps sets the given file-mode. |
|
|
61 |
# Requires versionator.eclass |
| 61 |
fcaps() { |
62 |
fcaps() { |
| 62 |
local uid_gid=$1 |
63 |
local uid_gid=$1 |
| 63 |
local perms=$2 |
64 |
local perms=$2 |
|
Lines 78-87
Link Here
|
| 78 |
res=$? |
79 |
res=$? |
| 79 |
|
80 |
|
| 80 |
if [ $res -ne 0 ]; then |
81 |
if [ $res -ne 0 ]; then |
| 81 |
ewarn "Failed to set capabilities. Probable reason is missed kernel support." |
82 |
ewarn "Failed to set capabilities. Probable reason is missing kernel support." |
| 82 |
ewarn "Kernel must have SECURITY_FILE_CAPABILITIES, and <FS>_FS_SECURITY" |
83 |
ewarn "Your kernel must have <FS>_FS_SECURITY enabled (e.g. EXT4_FS_SECURITY)" |
| 83 |
ewarn "enabled (e.g. EXT3_FS_SECURITY) where <FS> is the filesystem to store" |
84 |
ewarn "where <FS> is the filesystem to store ${path}" |
| 84 |
ewarn "${path}" |
85 |
if ! version_is_at_least 2.6.33 "$(uname -r)"; then |
|
|
86 |
ewarn "For kernel 2.6.32 or older, you will also need to enable" |
| 87 |
ewarn "SECURITY_FILE_CAPABILITIES." |
| 88 |
fi |
| 85 |
ewarn |
89 |
ewarn |
| 86 |
ewarn "Falling back to suid now..." |
90 |
ewarn "Falling back to suid now..." |
| 87 |
chmod u+s ${path} |
91 |
chmod u+s ${path} |