Skip to content

Commit

Permalink
net-analyzer/ntop: Move user.eclass functions to pkg_postinst() (bug …
Browse files Browse the repository at this point in the history
…#563788 by Martin Mokrejš).

Package-Manager: portage-2.3.2
  • Loading branch information
Jeroen Roovers committed Nov 14, 2016
1 parent 98f830b commit dd7ab6e
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -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$

Expand Down Expand Up @@ -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
Expand All @@ -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
}

0 comments on commit dd7ab6e

Please sign in to comment.