From dd7ab6ed4d3fbede26fbf1bea26e02db4fc175f0 Mon Sep 17 00:00:00 2001 From: Jeroen Roovers Date: Mon, 14 Nov 2016 21:23:23 +0100 Subject: [PATCH] =?UTF-8?q?net-analyzer/ntop:=20Move=20user.eclass=20funct?= =?UTF-8?q?ions=20to=20pkg=5Fpostinst()=20(bug=20#563788=20by=20Martin=20M?= =?UTF-8?q?okrej=C5=A1).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Package-Manager: portage-2.3.2 --- .../{ntop-5.0.1-r1.ebuild => ntop-5.0.1-r2.ebuild} | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) rename net-analyzer/ntop/{ntop-5.0.1-r1.ebuild => ntop-5.0.1-r2.ebuild} (90%) diff --git a/net-analyzer/ntop/ntop-5.0.1-r1.ebuild b/net-analyzer/ntop/ntop-5.0.1-r2.ebuild similarity index 90% rename from net-analyzer/ntop/ntop-5.0.1-r1.ebuild rename to net-analyzer/ntop/ntop-5.0.1-r2.ebuild index 49b8f207abafd..0836b8f11ab63 100644 --- a/net-analyzer/ntop/ntop-5.0.1-r1.ebuild +++ b/net-analyzer/ntop/ntop-5.0.1-r2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -106,9 +106,8 @@ src_install() { emake DESTDIR="${D}" install - keepdir /var/lib/ntop && - fowners ntop:ntop /var/lib/ntop && - fperms 750 /var/lib/ntop + keepdir /var/lib/ntop + insinto /var/lib/ntop gunzip 3rd_party/GeoIPASNum.dat.gz gunzip 3rd_party/GeoLiteCity.dat.gz @@ -130,7 +129,6 @@ src_install() { } pkg_postinst() { - elog "If this is the first time you install ntop, you need to run" - elog "following command before starting ntop service:" - elog " ntop --set-admin-password" + fowners ntop:ntop /var/lib/ntop + fperms 750 /var/lib/ntop }