net-analyzer/ntop: Move user.eclass functions to pkg_postinst() (bug #563788 by Marti...
authorJeroen Roovers <jer@gentoo.org>
Mon, 14 Nov 2016 20:23:23 +0000 (21:23 +0100)
committerJeroen Roovers <jer@gentoo.org>
Mon, 14 Nov 2016 20:30:40 +0000 (21:30 +0100)
Package-Manager: portage-2.3.2

net-analyzer/ntop/ntop-5.0.1-r2.ebuild [moved from net-analyzer/ntop/ntop-5.0.1-r1.ebuild with 90% similarity]

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 49b8f207abafda0225d787e0a9a53be08fe11e14..0836b8f11ab632cfe749e739c49f5a00eb0969ec 100644 (file)
@@ -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
 }