From 7b21eb894c1ed0244bbb88bd5211fddc6b04cae6 Mon Sep 17 00:00:00 2001 From: David Seifert Date: Sat, 3 Oct 2020 17:29:18 +0200 Subject: net-analyzer/flow-tools: [QA] Port to GLEP 81 Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: David Seifert --- .../flow-tools/flow-tools-0.68.5.1-r10.ebuild | 79 ------------------- .../flow-tools/flow-tools-0.68.5.1-r11.ebuild | 68 +++++++++++++++++ .../flow-tools/flow-tools-0.68.6-r1.ebuild | 79 +++++++++++++++++++ net-analyzer/flow-tools/flow-tools-0.68.6.ebuild | 89 ---------------------- 4 files changed, 147 insertions(+), 168 deletions(-) delete mode 100644 net-analyzer/flow-tools/flow-tools-0.68.5.1-r10.ebuild create mode 100644 net-analyzer/flow-tools/flow-tools-0.68.5.1-r11.ebuild create mode 100644 net-analyzer/flow-tools/flow-tools-0.68.6-r1.ebuild delete mode 100644 net-analyzer/flow-tools/flow-tools-0.68.6.ebuild diff --git a/net-analyzer/flow-tools/flow-tools-0.68.5.1-r10.ebuild b/net-analyzer/flow-tools/flow-tools-0.68.5.1-r10.ebuild deleted file mode 100644 index 8656ded05688..000000000000 --- a/net-analyzer/flow-tools/flow-tools-0.68.5.1-r10.ebuild +++ /dev/null @@ -1,79 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -inherit user - -DESCRIPTION="library and programs to process reports from NetFlow data" -HOMEPAGE="https://code.google.com/p/flow-tools/" -SRC_URI="https://${PN}.googlecode.com/files/${P}.tar.bz2" - -LICENSE="BSD GPL-2" -SLOT="0" -KEYWORDS="amd64 ppc x86" -IUSE="debug libressl mysql postgres ssl static-libs" - -RDEPEND="sys-apps/tcp-wrappers - sys-libs/zlib - mysql? ( dev-db/mysql-connector-c:0= ) - postgres? ( dev-db/postgresql:* ) - ssl? ( - !libressl? ( dev-libs/openssl:0= ) - libressl? ( dev-libs/libressl:0= ) - )" - -DEPEND="${RDEPEND} - sys-devel/flex - sys-devel/bison" - -DOCS=( ChangeLog README SECURITY TODO ) - -PATCHES=( - "${FILESDIR}"/${P}-run.patch - "${FILESDIR}"/${P}-syslog.patch - "${FILESDIR}"/${P}-openssl11.patch - "${FILESDIR}"/${P}-fno-common.patch -) - -pkg_setup() { - pkg_douser -} - -src_configure() { - econf \ - $(use_enable static-libs static) \ - $(usex mysql --with-mysql '') \ - $(usex postgres --with-postgresql=yes --with-postgresql=no) \ - $(usex ssl --with-openssl '') \ - --sysconfdir=/etc/flow-tools -} - -src_install() { - default - - find "${D}" -name '*.la' -delete || die - - exeinto /var/lib/flows/bin - doexe "${FILESDIR}"/linkme - - keepdir /var/lib/flows/ft - - newinitd "${FILESDIR}/flowcapture.initd" flowcapture - newconfd "${FILESDIR}/flowcapture.confd" flowcapture - - fowners flows:flows /var/lib/flows - fowners flows:flows /var/lib/flows/bin - fowners flows:flows /var/lib/flows/ft - - fperms 0755 /var/lib/flows - fperms 0755 /var/lib/flows/bin -} - -pkg_preinst() { - pkg_douser -} - -pkg_douser() { - enewgroup flows - enewuser flows -1 -1 /var/lib/flows flows -} diff --git a/net-analyzer/flow-tools/flow-tools-0.68.5.1-r11.ebuild b/net-analyzer/flow-tools/flow-tools-0.68.5.1-r11.ebuild new file mode 100644 index 000000000000..d1f4fc95e62a --- /dev/null +++ b/net-analyzer/flow-tools/flow-tools-0.68.5.1-r11.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="library and programs to process reports from NetFlow data" +HOMEPAGE="https://code.google.com/p/flow-tools/" +SRC_URI="https://${PN}.googlecode.com/files/${P}.tar.bz2" + +LICENSE="BSD GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="debug libressl mysql postgres ssl static-libs" + +RDEPEND=" + acct-group/flows + acct-user/flows + sys-apps/tcp-wrappers + sys-libs/zlib + mysql? ( dev-db/mysql-connector-c:0= ) + postgres? ( dev-db/postgresql:* ) + ssl? ( + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + )" +DEPEND="${RDEPEND}" +BDEPEND=" + sys-devel/flex + sys-devel/bison" + +DOCS=( ChangeLog README SECURITY TODO ) + +PATCHES=( + "${FILESDIR}"/${P}-run.patch + "${FILESDIR}"/${P}-syslog.patch + "${FILESDIR}"/${P}-openssl11.patch + "${FILESDIR}"/${P}-fno-common.patch +) + +src_configure() { + econf \ + $(use_enable static-libs static) \ + $(usex mysql --with-mysql '') \ + $(usex postgres --with-postgresql=yes --with-postgresql=no) \ + $(usex ssl --with-openssl '') \ + --sysconfdir=/etc/flow-tools +} + +src_install() { + default + + find "${D}" -name '*.la' -delete || die + + exeinto /var/lib/flows/bin + doexe "${FILESDIR}"/linkme + + keepdir /var/lib/flows/ft + + newinitd "${FILESDIR}/flowcapture.initd" flowcapture + newconfd "${FILESDIR}/flowcapture.confd" flowcapture + + fowners flows:flows /var/lib/flows + fowners flows:flows /var/lib/flows/bin + fowners flows:flows /var/lib/flows/ft + + fperms 0755 /var/lib/flows + fperms 0755 /var/lib/flows/bin +} diff --git a/net-analyzer/flow-tools/flow-tools-0.68.6-r1.ebuild b/net-analyzer/flow-tools/flow-tools-0.68.6-r1.ebuild new file mode 100644 index 000000000000..d8ee002d2ccf --- /dev/null +++ b/net-analyzer/flow-tools/flow-tools-0.68.6-r1.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools + +DESCRIPTION="library and programs to process reports from NetFlow data" +HOMEPAGE="https://github.com/5u623l20/flow-tools/" +SRC_URI="https://github.com/5u623l20/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="debug libressl mysql postgres ssl static-libs" + +RDEPEND=" + acct-group/flows + acct-user/flows + sys-apps/tcp-wrappers + sys-libs/zlib + mysql? ( dev-db/mysql-connector-c:0= ) + postgres? ( dev-db/postgresql:* ) + ssl? ( + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + ) +" +DEPEND=" + ${RDEPEND} +" +BDEPEND=" + app-text/docbook-sgml-utils + sys-devel/bison + sys-devel/flex +" +DOCS=( ChangeLog.old README README.fork SECURITY TODO TODO.old ) +PATCHES=( + "${FILESDIR}"/${PN}-0.68.5.1-run.patch + "${FILESDIR}"/${PN}-0.68.5.1-openssl11.patch + "${FILESDIR}"/${PN}-0.68.5.1-fno-common.patch + "${FILESDIR}"/${PN}-0.68.6-mysql.patch +) + +src_prepare() { + default + sed -i -e 's|docbook-to-man|docbook2man|g' docs/Makefile.am || die + eautoreconf +} + +src_configure() { + econf \ + $(use_enable static-libs static) \ + $(usex mysql --with-mysql '') \ + $(usex postgres --with-postgresql=yes --with-postgresql=no) \ + $(usex ssl --with-openssl '') \ + --sysconfdir=/etc/flow-tools +} + +src_install() { + default + + exeinto /var/lib/flows/bin + doexe "${FILESDIR}"/linkme + + keepdir /var/lib/flows/ft + + newinitd "${FILESDIR}/flowcapture.initd" flowcapture + newconfd "${FILESDIR}/flowcapture.confd" flowcapture + + fowners flows:flows /var/lib/flows + fowners flows:flows /var/lib/flows/bin + fowners flows:flows /var/lib/flows/ft + + fperms 0755 /var/lib/flows + fperms 0755 /var/lib/flows/bin + + find "${ED}" -name '*.la' -delete || die +} diff --git a/net-analyzer/flow-tools/flow-tools-0.68.6.ebuild b/net-analyzer/flow-tools/flow-tools-0.68.6.ebuild deleted file mode 100644 index b95e64990111..000000000000 --- a/net-analyzer/flow-tools/flow-tools-0.68.6.ebuild +++ /dev/null @@ -1,89 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -inherit autotools user - -DESCRIPTION="library and programs to process reports from NetFlow data" -HOMEPAGE="https://github.com/5u623l20/flow-tools/" -SRC_URI="https://github.com/5u623l20/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="BSD GPL-3" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~x86" -IUSE="debug libressl mysql postgres ssl static-libs" - -RDEPEND=" - sys-apps/tcp-wrappers - sys-libs/zlib - mysql? ( dev-db/mysql-connector-c:0= ) - postgres? ( dev-db/postgresql:* ) - ssl? ( - !libressl? ( dev-libs/openssl:0= ) - libressl? ( dev-libs/libressl:0= ) - ) -" -DEPEND=" - ${RDEPEND} -" -BDEPEND=" - app-text/docbook-sgml-utils - sys-devel/bison - sys-devel/flex -" -DOCS=( ChangeLog.old README README.fork SECURITY TODO TODO.old ) -PATCHES=( - "${FILESDIR}"/${PN}-0.68.5.1-run.patch - "${FILESDIR}"/${PN}-0.68.5.1-openssl11.patch - "${FILESDIR}"/${PN}-0.68.5.1-fno-common.patch - "${FILESDIR}"/${PN}-0.68.6-mysql.patch -) - -pkg_douser() { - enewgroup flows - enewuser flows -1 -1 /var/lib/flows flows -} - -pkg_setup() { - pkg_douser -} - -src_prepare() { - default - sed -i -e 's|docbook-to-man|docbook2man|g' docs/Makefile.am || die - eautoreconf -} - -src_configure() { - econf \ - $(use_enable static-libs static) \ - $(usex mysql --with-mysql '') \ - $(usex postgres --with-postgresql=yes --with-postgresql=no) \ - $(usex ssl --with-openssl '') \ - --sysconfdir=/etc/flow-tools -} - -src_install() { - default - - exeinto /var/lib/flows/bin - doexe "${FILESDIR}"/linkme - - keepdir /var/lib/flows/ft - - newinitd "${FILESDIR}/flowcapture.initd" flowcapture - newconfd "${FILESDIR}/flowcapture.confd" flowcapture - - fowners flows:flows /var/lib/flows - fowners flows:flows /var/lib/flows/bin - fowners flows:flows /var/lib/flows/ft - - fperms 0755 /var/lib/flows - fperms 0755 /var/lib/flows/bin - - find "${ED}" -name '*.la' -delete || die -} - -pkg_preinst() { - pkg_douser -} -- cgit v1.2.3-65-gdbad