summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Farina <zerochaos@gentoo.org>2015-05-12 16:28:04 +0000
committerRichard Farina <zerochaos@gentoo.org>2015-05-12 16:28:04 +0000
commit6b5ab1a03889a4dffb739dfbd08379271a494b3a (patch)
tree3e2c98fd3a3e0c8eaebf52183df82a25d085a362 /net-analyzer/nmap
parentfix build for 9999, rename lua->nse (9999 only for now) bug #529688, fix ambi... (diff)
downloadhistorical-6b5ab1a03889a4dffb739dfbd08379271a494b3a.tar.gz
historical-6b5ab1a03889a4dffb739dfbd08379271a494b3a.tar.bz2
historical-6b5ab1a03889a4dffb739dfbd08379271a494b3a.zip
add fcaps, bug #492794
Package-Manager: portage-2.2.18/cvs/Linux x86_64 Manifest-Sign-Key: 0xDD11F94A
Diffstat (limited to 'net-analyzer/nmap')
-rw-r--r--net-analyzer/nmap/ChangeLog5
-rw-r--r--net-analyzer/nmap/Manifest30
-rw-r--r--net-analyzer/nmap/nmap-9999.ebuild18
3 files changed, 35 insertions, 18 deletions
diff --git a/net-analyzer/nmap/ChangeLog b/net-analyzer/nmap/ChangeLog
index 38a4beb4e63b..1e2141a9391a 100644
--- a/net-analyzer/nmap/ChangeLog
+++ b/net-analyzer/nmap/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for net-analyzer/nmap
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nmap/ChangeLog,v 1.335 2015/05/12 16:06:37 zerochaos Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nmap/ChangeLog,v 1.336 2015/05/12 16:27:59 zerochaos Exp $
+
+ 12 May 2015; Rick Farina <zerochaos@gentoo.org> nmap-9999.ebuild:
+ add fcaps, bug #492794
12 May 2015; Rick Farina <zerochaos@gentoo.org>
+files/nmap-9999-no-FORTIFY_SOURCE.patch, metadata.xml, nmap-6.47-r1.ebuild,
diff --git a/net-analyzer/nmap/Manifest b/net-analyzer/nmap/Manifest
index 3eeccfa4e729..cdf4663c583f 100644
--- a/net-analyzer/nmap/Manifest
+++ b/net-analyzer/nmap/Manifest
@@ -14,23 +14,23 @@ DIST nmap-6.47.tar.bz2 7878122 SHA256 8fa11e9e203ce2d81a207db5ca4f110a525f6c01c1
DIST nmap-logo-64.png 3289 SHA256 4c72ff1eeffeeaa1039b251d9f2d675936e65db686fe3b57a35c2183ce67a8aa SHA512 fb102d12aaeebc8a97543ecd653a3606e86996ad679bc26d6e6e274ad05ec3e9f92521289d1a24153c521b699e8c0cfa65d8856bb49af53ee4837268bbc6b5d3 WHIRLPOOL 6093aadcb9880587e17d39d45fcbe57bb62777f220655e6ed5b5f900ce49cb8c5a53e24d7db0de6f8909eb0f8981f7565e6ae9b9bf9283a4ccccb0526eab5313
EBUILD nmap-6.47-r1.ebuild 3816 SHA256 0414c7794fcb9d8c6d6c30b7d51b3418806cbddbd90a6472b07e9e8a658e050b SHA512 9b06ce439ba656b8f2b3cef0d03a2b8744e95fa4eacc47701fe97ba17b1a4c3879011b1bb4b7b3efff8fc78c6b8cbec497a2a95097ed0b0f2cd86ab0849e9b50 WHIRLPOOL 35a944028c2da4234257e30e21c3d3bf8b2843c8a2f6506963b88f60b74d23e97599cb10e67f2baedbbb41b7f7e2eeafab33fdfa2de3ed2a2606d2e98e5638bd
EBUILD nmap-6.47-r2.ebuild 3826 SHA256 f60ece99695d4172422595c96308d344edfbcdfc2cd31ceaff8aae6d1ae1e211 SHA512 d9ae78487a65863c06dcb3a2c63b6ba227685ecd6e2a0a5295dbe4ba4c0dea4c6545f3ae84b407fc06d674d795f7b7ce9bdfd58dfcb06823ec009eab912de878 WHIRLPOOL 682385e7e44e7a6740453d8a8cc743b03535cc6e910fc1f116b8001f04d752e57925911a6c461b4ba6a35596379a35f2e3887b67dea38c7b5fdcaf9d08d71631
-EBUILD nmap-9999.ebuild 3932 SHA256 68d5ff6e0f7099b3e5c4483bc6fa09e7c88c08732dfdb5d4a804ff0753945282 SHA512 e3606d60fde850dfc01f5cd41de275ffb2de180b23b41aac13af69787a76932316a5c4a78d4c21eaf3a2430822817dd63f05a1d44f6cd70b2f37b79187e51893 WHIRLPOOL 54d383c642f08c9050d04798b00f9b6d3d8b11907ad74fe64b830988ca646e8caddc8eefca1d1d4f1df4db2868bfe258f36864f01e55869340c9f033874d3556
-MISC ChangeLog 41966 SHA256 71e4bc53643026bf7c013b2c677a17066b2281b955d5b80211989e7fa5f18552 SHA512 bc617ca843e140d96ec54d0ba97e26f14e04ffa86b8cf9150d680f8cc2ef27af2441f32c572c44f98fb226da7b5776d73963a918a1b005943da95c330948b2e0 WHIRLPOOL 452cc9e973cef3d5f64159125fa49240acc20d8b1d6179bba66a36093f3dc7259245f62a3e7ceedad7a1dcf5264e487804348c5ff89081c3d8a153ca45dd1f52
+EBUILD nmap-9999.ebuild 4328 SHA256 1709a078137378c23e9cef91f13fb4d71d8c773433c5b00c999caec708497d64 SHA512 f8dcefcc3270f90a28ad3e5f0e2bb089571b003fa883b1486527291ad31b362e621091927cb2616610208d8c8eebba074bff691eaa249615ff66f6dd48df0fdc WHIRLPOOL f821bb7835bb313fba7a2fd5fa4fc52f5e7010b72bcc602d26bb3a9916312e7e0d8980f473d7c8fe8e37e84cbe93045b7e1743b87ec2021226e6b33af7f80089
+MISC ChangeLog 42060 SHA256 0d9c4d253f98f8f5eedcf4a9ed6cf1ce6a0d938cdd3bc358b75e2c968be8af4b SHA512 15c3eecd7aa86f713165d0559ad8f383b5b2244ee8b5989e41d112343b3f9b4fd96fa395fee4475a4447ad1242ee4e007ee0b56266e4116e159ba0093b1ace0a WHIRLPOOL 932809c211f3c1d5ccbcda807db2324e9fd6b8e8bbc23c37a480252395a0bc34f71923e110710ff11aa6e83942b2a6192bd28cc1dc301acdee1efe3c33b232d5
MISC metadata.xml 774 SHA256 761bbc48753242190632a8a9b0cb8cee34f3969d00f29f36a4a02154d63bfcec SHA512 6c4f041b3a22abd05e75280b762dbdb04ad47505495443fbd4594e176bd68c375e727f9326c761964cc2a41da3a7d54c1213893b529892d972ef83bbe962fa0f WHIRLPOOL f730883a5efb88e96fd7839d434a60ce6f4f5fb7ef2a6376bb65324d004682c1f4ea145eaa156efa36bcf402a2780a30372157a349966eafa82039509798535e
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
-iQIcBAEBCAAGBQJVUiUPAAoJEKXdFCfdEflK8D8P/jc5KoxJ5AgueCi8s2j7eupa
-GwXoeRE/9kFbfBwGK1K73A1gXazuXCILHApWmwhJBqVsf7KizY9gP76aLBeRbtXw
-m0t4X2z+Ojgn4Or3fBYfUssp7cnTzKxNm1+ji40RllSrvzQGtxkDIv4ujgW6ZKTG
-BvQ1fzp/G0AvlJlo4LzuCeyAfg7phpP23qmN0WtiWSKHxZSgJRxdbpYAG+mYnzZW
-Ey9CW98HqjXwDQD4v+kbRZdgwWSZrZxOLarqGhi5qYiJBs9eXSr6IGMCOz/iJYxj
-M2ltc5sYb7LP+vIIDJEIb1aVD/AX3j8kDpbr5IhMINeQfb8epwxIYPgWULevIs9C
-ztjuBN2/TsWQhXJbVQmyPH42l67FF1yVvEGhJu9vZc+G7syG8GtUC9XLxLYDlp2Z
-KT2T5beZReo5QZGKpz/0tbnpDjlFrYyA1Cxb+a7GLuS6nvhV+jP0xktMfdARXvEa
-Yu1soqLNw55E58SSeyWCljS14FqhzjC2EoKFHhn3uM68UGDPNiYGZuHus3zv7B/D
-aWq9UZsLzowctASJUEO0AYs3javmGRwNbAHY6vGJHi45fd51ELrpOqwhE4XAIICc
-W7tihwuMcN6OAh/DnzKNoSE8joAfj+sHOybxprN9Z4BP5wQCy5z+veWl966ReR89
-PhHCy/OksEC2JGYe4K21
-=YSfJ
+iQIcBAEBCAAGBQJVUioNAAoJEKXdFCfdEflK2MMP/022Yy+VK1hJm5MnBLhG7eN0
+cLll5XOQPpoqJS6CUO468ozFl2ogMy8z6s7LCwMh0x+sEiyQi7TA+6gEGq3uhE26
+YUIqqFekm5Tyo63SW8qdDs8MkKGU7iSJ5q0vAOXg+Q6A6FKDWGL6dJirZd/bQG1u
+L5lqL18Zr4Tf1kgY+GUyr+1qa6UNzLABZnS10az1Ruua+v/gZh6OW3wBMAI9NG+S
+5JPfvlKMjQ4IQdvW8+IvKEjYbqFHwiPm7R0c7BeF3cpS1DHUptrAZz+k1SmNTAP+
+otvkeXnD4JkTFKxLu9ieeqI/1fcG5XsfTC+3yx/Cj27ve6VSxqYIPuT+JD66rO2V
+CnQHU9kuzWb3BGNplXj+QqqDvIXQ2Ay//nEthnApOMOvA4FVtAXQimZDupLQ8hgI
+T1TZiiYgPV7VZD1Yk/t5Ry8HGIeWEUos/f5E2lWANzpCA2Z9+I0a0d0n802d40qD
+1zHuRbgduZZN5jbuFCcbtlDjJ6vvxn44fnMtcMmjzMb8XQwffbyRZQAASr5fGowz
+YXx6AD4TtfCwEbI7Xhx9g3N66Qxej7RgpqoNE5M1gnT4DD1cWQY79PCWQa28gzls
+agKajjO+Xjqod/aYVJZBwgBGQA7bQrHhb+uAv9WD5mpPeoKGxbxC94x9z31sZg0g
+vi+fPADqC2Vuvyyju2jZ
+=Vj91
-----END PGP SIGNATURE-----
diff --git a/net-analyzer/nmap/nmap-9999.ebuild b/net-analyzer/nmap/nmap-9999.ebuild
index 5b6fe5f24f5f..ef25202110d6 100644
--- a/net-analyzer/nmap/nmap-9999.ebuild
+++ b/net-analyzer/nmap/nmap-9999.ebuild
@@ -1,12 +1,12 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nmap/nmap-9999.ebuild,v 1.3 2015/05/12 16:06:37 zerochaos Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nmap/nmap-9999.ebuild,v 1.4 2015/05/12 16:27:59 zerochaos Exp $
EAPI=5
PYTHON_COMPAT=( python2_7 )
PYTHON_REQ_USE="sqlite,xml"
-inherit eutils flag-o-matic python-single-r1 toolchain-funcs
+inherit eutils fcaps flag-o-matic python-single-r1 toolchain-funcs user
MY_P=${P/_beta/BETA}
@@ -154,3 +154,17 @@ src_install() {
python_optimize
fi
}
+
+pkg_postinst() {
+ # Add group for users allowed to run nmap.
+ enewgroup nmap
+
+ fcaps -o 0 -g nmap -m 4755 -M 0755 \
+ cap_net_raw,cap_net_admin,cap_net_bind_service+eip \
+ "${EROOT}"/usr/bin/nmap
+
+ ewarn "NOTE: To run nmap as normal user you have to add yourself to the"
+ ewarn "nmap group. This security measure ensures that only trusted users"
+ ewarn "are allowed to run nmap"
+}
+