From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id DDFA6138CCF for ; Tue, 12 May 2015 17:27:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 85D53E07D4; Tue, 12 May 2015 17:27:43 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 19C69E07D4 for ; Tue, 12 May 2015 17:27:42 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B0D70340662 for ; Tue, 12 May 2015 17:27:41 +0000 (UTC) Received: by oystercatcher.gentoo.org (Postfix, from userid 2326) id 6CB089E5; Tue, 12 May 2015 17:27:40 +0000 (UTC) From: "Richard Farina (zerochaos)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, zerochaos@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/nmap: nmap-9999.ebuild ChangeLog X-VCS-Repository: gentoo-x86 X-VCS-Files: nmap-9999.ebuild ChangeLog X-VCS-Directories: net-analyzer/nmap X-VCS-Committer: zerochaos X-VCS-Committer-Name: Richard Farina Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Message-Id: <20150512172740.6CB089E5@oystercatcher.gentoo.org> Date: Tue, 12 May 2015 17:27:40 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 6aefc246-6bcd-4dcb-9a23-789fb4d73d0f X-Archives-Hash: c37a2e4e0373c21faa848a09a80e03d8 zerochaos 15/05/12 17:27:40 Modified: nmap-9999.ebuild ChangeLog Log: 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) Revision Changes Path 1.6 net-analyzer/nmap/nmap-9999.ebuild file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nmap/nmap-9999.ebuild?rev=1.6&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nmap/nmap-9999.ebuild?rev=1.6&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nmap/nmap-9999.ebuild?r1=1.5&r2=1.6 Index: nmap-9999.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/net-analyzer/nmap/nmap-9999.ebuild,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- nmap-9999.ebuild 12 May 2015 16:43:07 -0000 1.5 +++ nmap-9999.ebuild 12 May 2015 17:27:40 -0000 1.6 @@ -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 @@ 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 @@ 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 @@ doicon "${DISTDIR}/nmap-logo-64.png" python_optimize fi + + readme.gentoo_create_doc } pkg_postinst() { @@ -163,10 +173,16 @@ 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 } - 1.338 net-analyzer/nmap/ChangeLog file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nmap/ChangeLog?rev=1.338&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nmap/ChangeLog?rev=1.338&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nmap/ChangeLog?r1=1.337&r2=1.338 Index: ChangeLog =================================================================== RCS file: /var/cvsroot/gentoo-x86/net-analyzer/nmap/ChangeLog,v retrieving revision 1.337 retrieving revision 1.338 diff -u -r1.337 -r1.338 --- ChangeLog 12 May 2015 16:43:07 -0000 1.337 +++ ChangeLog 12 May 2015 17:27:40 -0000 1.338 @@ -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 nmap-9999.ebuild: + use readme.gentoo with some minor custom to support 9999 better 12 May 2015; Rick Farina nmap-9999.ebuild: improve postinst message for fcaps