public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Seifert" <soap@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/ndoutils/
Date: Tue,  6 Dec 2022 21:25:51 +0000 (UTC)	[thread overview]
Message-ID: <1670361933.5fe6d7a57c71ca4098559207fb78f589e966a708.soap@gentoo> (raw)

commit:     5fe6d7a57c71ca4098559207fb78f589e966a708
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Tue Dec  6 21:25:33 2022 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Tue Dec  6 21:25:33 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5fe6d7a5

net-analyzer/ndoutils: update EAPI 6 -> 8

Signed-off-by: David Seifert <soap <AT> gentoo.org>

 ...ls-2.1.3-r2.ebuild => ndoutils-2.1.3-r3.ebuild} | 59 ++++++++++------------
 1 file changed, 27 insertions(+), 32 deletions(-)

diff --git a/net-analyzer/ndoutils/ndoutils-2.1.3-r2.ebuild b/net-analyzer/ndoutils/ndoutils-2.1.3-r3.ebuild
similarity index 70%
rename from net-analyzer/ndoutils/ndoutils-2.1.3-r2.ebuild
rename to net-analyzer/ndoutils/ndoutils-2.1.3-r3.ebuild
index 784309fee43a..044cb36975f4 100644
--- a/net-analyzer/ndoutils/ndoutils-2.1.3-r2.ebuild
+++ b/net-analyzer/ndoutils/ndoutils-2.1.3-r3.ebuild
@@ -1,12 +1,14 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=8
+
 inherit systemd
 
 DESCRIPTION="Nagios addon to store Nagios data in a MySQL database"
 HOMEPAGE="https://www.nagios.org/"
 SRC_URI="https://github.com/NagiosEnterprises/${PN}/archive/${P}.tar.gz"
+S="${WORKDIR}/${PN}-${P}"
 
 LICENSE="GPL-2"
 SLOT="0"
@@ -14,30 +16,19 @@ KEYWORDS="~amd64 ~ppc ~x86"
 
 # We require the "nagios" user from net-analyzer/nagios-core at build
 # time.
-DEPEND="dev-db/mysql-connector-c
+DEPEND="
+	dev-db/mysql-connector-c
 	dev-perl/DBD-mysql
 	dev-perl/DBI
 	>=net-analyzer/nagios-core-4.4.5"
 RDEPEND="${DEPEND}
 	virtual/mysql"
 
-S="${WORKDIR}/${PN}-${P}"
-
-DOCS=(
-	Changelog
-	README
-	THANKS
-	TODO
-	UPGRADING
-	"docs/NDOUTILS DB Model.pdf"
-	"docs/NDOUtils Documentation.pdf"
-)
-
 PATCHES=(
-	"${FILESDIR}/format-security.patch"
-	"${FILESDIR}/ndoutils-2.0.0-asprintf.patch"
-	"${FILESDIR}/sample-config-piddir.patch"
-	"${FILESDIR}/openrc-init.patch"
+	"${FILESDIR}"/format-security.patch
+	"${FILESDIR}"/ndoutils-2.0.0-asprintf.patch
+	"${FILESDIR}"/sample-config-piddir.patch
+	"${FILESDIR}"/openrc-init.patch
 )
 
 src_configure() {
@@ -58,34 +49,38 @@ src_compile() {
 	# Avoid "emake all" so that we don't build the stuff for nagios-2.x
 	# and nagios-3.x, some of which throws QA warnings. We don't use it
 	# anyway.
-	pushd src
-	emake file2sock log2ndo ndo2db-4x ndomod-4x.o sockdebug
-	popd
+	emake -C src file2sock log2ndo ndo2db-4x ndomod-4x.o sockdebug
 }
 
 src_install() {
+	# The documentation isn't installed by the build system
+	HTML_DOCS=( docs/html/. )
 	default
+
+	dodoc Changelog UPGRADING \
+		"docs/NDOUTILS DB Model.pdf" "docs/NDOUtils Documentation.pdf"
+
+	systemd_newunit startup/default-service ndoutils.service
+
 	insinto /etc/nagios
 	newins config/ndo2db.cfg-sample ndo2db.cfg
 	newins config/ndomod.cfg-sample ndomod.cfg
-	newinitd "startup/openrc-init" ndo2db
-	newconfd "startup/openrc-conf" ndo2db
-	systemd_newunit "startup/default-service" "${PN}.service"
+	newinitd startup/openrc-init ndo2db
+	newconfd startup/openrc-conf ndo2db
 
-	# The documentation isn't installed by the build system
-	dodoc -r docs/html
-
-	insinto "/usr/share/${PN}"
+	insinto /usr/share/ndoutils
 	doins -r db
 
 	# These need to be executable...
-	exeinto "/usr/share/${PN}/db"
+	exeinto /usr/share/ndoutils/db
 	doexe db/{installdb,prepsql,upgradedb}
 
 	# Use symlinks because the installdb/upgradedb scripts use relative
 	# paths to the SQL queries.
-	dosym "../share/${PN}/db/installdb" /usr/bin/ndoutils-installdb
-	dosym "../share/${PN}/db/upgradedb" /usr/bin/ndoutils-upgradedb
+	dosym ../share/ndoutils/db/installdb /usr/bin/ndoutils-installdb
+	dosym ../share/ndoutils/db/upgradedb /usr/bin/ndoutils-upgradedb
+
+	keepdir /var/lib/nagios
 }
 
 pkg_postinst() {


             reply	other threads:[~2022-12-06 21:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-06 21:25 David Seifert [this message]
  -- strict thread matches above, loose matches on Subject: below --
2019-08-31 21:35 [gentoo-commits] repo/gentoo:master commit in: net-analyzer/ndoutils/ Michael Orlitzky
2019-03-11  4:48 Aaron Bauman
2018-09-23  1:27 Michael Orlitzky
2017-11-07 12:35 Michael Orlitzky
2015-11-18  5:06 Jeroen Roovers
2015-11-18  5:06 Jeroen Roovers
2015-11-17 13:54 Patrice Clement
2015-11-17 13:54 Patrice Clement
2015-08-12  4:36 Jeroen Roovers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1670361933.5fe6d7a57c71ca4098559207fb78f589e966a708.soap@gentoo \
    --to=soap@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox