--- flow-tools-0.68.5.1-r9.ebuild 2018-12-29 15:20:04.079746392 -0800 +++ flow-tools-0.68.5.1-r10.ebuild 2018-12-29 15:23:09.451660935 -0800 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=5 -inherit eutils user +inherit eutils user ltprune DESCRIPTION="library and programs to process reports from NetFlow data" HOMEPAGE="https://code.google.com/p/flow-tools/" @@ -10,7 +10,7 @@ LICENSE="BSD GPL-2" SLOT="0" -KEYWORDS="amd64 ppc x86" +KEYWORDS="~amd64 ~ppc ~x86" IUSE="debug libressl mysql postgres ssl static-libs" RDEPEND="sys-apps/tcp-wrappers @@ -28,14 +28,14 @@ DOCS=( ChangeLog README SECURITY TODO ) -pkg_setup() { - enewgroup flows - enewuser flows -1 -1 /var/lib/flows flows -} +PATCHES=( + "${FILESDIR}"/${P}-run.patch + "${FILESDIR}"/${P}-syslog.patch + "${FILESDIR}"/${P}-openssl11.patch +) -src_prepare() { - epatch "${FILESDIR}"/${P}-run.patch - epatch "${FILESDIR}"/${P}-syslog.patch +pkg_setup() { + pkg_douser } src_configure() { @@ -50,7 +50,7 @@ src_install() { default - prune_libtool_files + find "${D}" -name '*.la' -delete || die exeinto /var/lib/flows/bin doexe "${FILESDIR}"/linkme @@ -69,6 +69,10 @@ } pkg_preinst() { + pkg_douser +} + +pkg_douser() { enewgroup flows enewuser flows -1 -1 /var/lib/flows flows }