diff options
author | Cédric Krier <cedk@gentoo.org> | 2008-09-28 13:26:02 +0000 |
---|---|---|
committer | Cédric Krier <cedk@gentoo.org> | 2008-09-28 13:26:02 +0000 |
commit | c18ee6b80a32130560aac750194d3cde25ae2203 (patch) | |
tree | 7dfae0dab656a6e637327e69c08960b20c2960d7 /net-analyzer/tcpdump | |
parent | amd64/x86 stable, bug #238437 (diff) | |
download | gentoo-2-c18ee6b80a32130560aac750194d3cde25ae2203.tar.gz gentoo-2-c18ee6b80a32130560aac750194d3cde25ae2203.tar.bz2 gentoo-2-c18ee6b80a32130560aac750194d3cde25ae2203.zip |
Call enewuser/enewgroup in both pkg_setup and pkg_preinst for bug #231917
(Portage version: 2.1.4.4)
Diffstat (limited to 'net-analyzer/tcpdump')
-rw-r--r-- | net-analyzer/tcpdump/ChangeLog | 5 | ||||
-rw-r--r-- | net-analyzer/tcpdump/tcpdump-3.9.8-r1.ebuild | 13 |
2 files changed, 14 insertions, 4 deletions
diff --git a/net-analyzer/tcpdump/ChangeLog b/net-analyzer/tcpdump/ChangeLog index dfc6a3a26c89..e6b04b585886 100644 --- a/net-analyzer/tcpdump/ChangeLog +++ b/net-analyzer/tcpdump/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for net-analyzer/tcpdump # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/tcpdump/ChangeLog,v 1.131 2008/09/10 10:47:13 pva Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/tcpdump/ChangeLog,v 1.132 2008/09/28 13:26:02 cedk Exp $ + + 28 Sep 2008; Cédric Krier <cedk@gentoo.org> tcpdump-3.9.8-r1.ebuild: + Call enewuser/enewgroup in both pkg_setup and pkg_preinst for bug #231917 10 Sep 2008; Peter Volkov <pva@gentoo.org> tcpdump-3.9.5-r3.ebuild, tcpdump-3.9.6-r1.ebuild, tcpdump-3.9.7-r1.ebuild, tcpdump-3.9.8.ebuild, diff --git a/net-analyzer/tcpdump/tcpdump-3.9.8-r1.ebuild b/net-analyzer/tcpdump/tcpdump-3.9.8-r1.ebuild index ea3f4bd1e422..6f246ab7940f 100644 --- a/net-analyzer/tcpdump/tcpdump-3.9.8-r1.ebuild +++ b/net-analyzer/tcpdump/tcpdump-3.9.8-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/tcpdump/tcpdump-3.9.8-r1.ebuild,v 1.4 2008/09/10 10:47:13 pva Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/tcpdump/tcpdump-3.9.8-r1.ebuild,v 1.5 2008/09/28 13:26:02 cedk Exp $ inherit flag-o-matic toolchain-funcs eutils @@ -17,6 +17,13 @@ IUSE="chroot ssl ipv6 samba" DEPEND="net-libs/libpcap ssl? ( >=dev-libs/openssl-0.9.6m )" +group_user_check() { + einfo "Checking for tcpdump group ..." + enewgroup tcpdump + einfo "Checking for tcpdump user ..." + enewuser tcpdump -1 -1 -1 tcpdump +} + pkg_setup() { if use samba ; then ewarn @@ -33,6 +40,7 @@ pkg_setup() { ebeep 5 epause 5 fi + group_user_check } src_compile() { @@ -68,8 +76,7 @@ src_compile() { } pkg_preinst() { - enewgroup tcpdump - enewuser tcpdump -1 -1 -1 tcpdump + group_user_check } src_install() { |