summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRick Farina <zerochaos@gentoo.org>2015-05-12 17:27:40 +0000
committerRick Farina <zerochaos@gentoo.org>2015-05-12 17:27:40 +0000
commit122bd2ee5250bb827df1d3a2ba05d02991a7b620 (patch)
tree98fb468e501a22e2b4660d662b38a25429c8b877 /net-analyzer/nmap
parentNeeds apache 2.4 now (diff)
downloadgentoo-2-122bd2ee5250bb827df1d3a2ba05d02991a7b620.tar.gz
gentoo-2-122bd2ee5250bb827df1d3a2ba05d02991a7b620.tar.bz2
gentoo-2-122bd2ee5250bb827df1d3a2ba05d02991a7b620.zip
use readme.gentoo with some minor custom to support 9999 better
(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key DD11F94A)
Diffstat (limited to 'net-analyzer/nmap')
-rw-r--r--net-analyzer/nmap/ChangeLog5
-rw-r--r--net-analyzer/nmap/nmap-9999.ebuild32
2 files changed, 28 insertions, 9 deletions
diff --git a/net-analyzer/nmap/ChangeLog b/net-analyzer/nmap/ChangeLog
index 5a13e40869e1..62b8affa0d9d 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.337 2015/05/12 16:43:07 zerochaos Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nmap/ChangeLog,v 1.338 2015/05/12 17:27:40 zerochaos Exp $
+
+ 12 May 2015; Rick Farina <zerochaos@gentoo.org> nmap-9999.ebuild:
+ use readme.gentoo with some minor custom to support 9999 better
12 May 2015; Rick Farina <zerochaos@gentoo.org> nmap-9999.ebuild:
improve postinst message for fcaps
diff --git a/net-analyzer/nmap/nmap-9999.ebuild b/net-analyzer/nmap/nmap-9999.ebuild
index 36a7b832b30a..8a69fff9fdc3 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.5 2015/05/12 16:43:07 zerochaos Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nmap/nmap-9999.ebuild,v 1.6 2015/05/12 17:27:40 zerochaos Exp $
EAPI=5
PYTHON_COMPAT=( python2_7 )
PYTHON_REQ_USE="sqlite,xml"
-inherit eutils fcaps flag-o-matic python-single-r1 toolchain-funcs user
+inherit eutils fcaps flag-o-matic python-single-r1 readme.gentoo toolchain-funcs user
MY_P=${P/_beta/BETA}
@@ -18,6 +18,7 @@ if [[ ${PV} == "9999" ]] ; then
ESVN_REPO_URI="https://svn.nmap.org/nmap"
SRC_URI="http://dev.gentoo.org/~jer/nmap-logo-64.png"
KEYWORDS=""
+ #FORCE_PRINT_ELOG="true"
else
SRC_URI="
http://nmap.org/dist/${MY_P}.tar.bz2
@@ -60,6 +61,13 @@ DEPEND="
S="${WORKDIR}/${MY_P}"
+DOC_CONTENTS="To run nmap as normal user you have to add yourself to the \
+nmap group AND pass --privileged on the command line. This security \
+measure ensures that only trusted users are allowed to run nmap. \
+To avoid passing --privileged every time, add \
+'export NMAP_PRIVILEGED=\"\"' to your user environment (eg ~/.bashrc)."
+
+
pkg_setup() {
if use ndiff || use zenmap; then
python-single-r1_pkg_setup
@@ -153,6 +161,8 @@ src_install() {
doicon "${DISTDIR}/nmap-logo-64.png"
python_optimize
fi
+
+ readme.gentoo_create_doc
}
pkg_postinst() {
@@ -163,10 +173,16 @@ pkg_postinst() {
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 AND pass --privileged on the command line. This security"
- ewarn "measure ensures that only trusted users are allowed to run nmap."
- ewarn "To avoid passing --privileged every time, add"
- ewarn "'export NMAP_PRIVILEGED=\"\"' to your user environment (eg ~/.bashrc)."
+ if [[ ${PV} == "9999" ]] ; then
+ einfo "To run nmap as normal user you have to add yourself to the nmap group"
+ einfo "AND pass --privileged on the command line. This security measure"
+ einfo "ensures that only trusted users are allowed to run nmap. To avoid"
+ einfo "passing --privileged every time, add 'export NMAP_PRIVILEGED=\"\"' to"
+ einfo "your user environment (eg ~/.bashrc)."
+ else
+ if [[ ${REPLACING_VERSIONS} < 6.48 ]]; then
+ FORCE_PRINT_ELOG="true"
+ fi
+ readme.gentoo_print_elog
+ fi
}
-