sys-apps/watchdog: Bump to version 5.16
authorLars Wendler <polynomial-c@gentoo.org>
Thu, 30 Apr 2020 10:34:02 +0000 (12:34 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Thu, 30 Apr 2020 10:34:14 +0000 (12:34 +0200)
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
sys-apps/watchdog/Manifest
sys-apps/watchdog/watchdog-5.16.ebuild [new file with mode: 0644]

index 5c65f5ee3ccb3a0f6344f302d266491ea69f3b8d..644169d7c3a1b451176c01b1c8bb7a2792bf4d5e 100644 (file)
@@ -1 +1,2 @@
 DIST watchdog-5.15.tar.gz 228132 BLAKE2B 040badcf66f048e2873c335a4dd1b5dad6716c61534322c0c92dad2238049555af40e92612a260507fddd4c284d7ccb5d362dc1660084fd0a7db2c522b1ea323 SHA512 a675cfadf3296d583b9163193297038fb19459daf7c6681289392d613e775e75b7afd42a3e01b136a955f25b2f45818033b56e10de9050075d7dc015535a6e75
+DIST watchdog-5.16.tar.gz 203910 BLAKE2B 517f2f8085829e5c5ff576f1dff920a2667d0e96a71dcbcebf381ccf349e95dfb0b7b598b565eda4cc8ec31f5f34e367dd719eeaf522cdee074c3bc23589dfb2 SHA512 1c9c921570ec7ddc3e4ff88b2029f1c3865277e547fb8970575df4b61fdf1f06f443f49ad09f11c29d913ca7d6ab05c5b19ec049ac218a8bcebd20b1bf5f0bbd
diff --git a/sys-apps/watchdog/watchdog-5.16.ebuild b/sys-apps/watchdog/watchdog-5.16.ebuild
new file mode 100644 (file)
index 0000000..a9e4280
--- /dev/null
@@ -0,0 +1,38 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit flag-o-matic systemd toolchain-funcs
+
+DESCRIPTION="A software watchdog and /dev/watchdog daemon"
+HOMEPAGE="https://sourceforge.net/projects/watchdog/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
+IUSE="nfs"
+
+RDEPEND="nfs? ( net-libs/libtirpc )"
+DEPEND="${RDEPEND}"
+BDEPEND="
+       virtual/pkgconfig
+"
+
+src_configure() {
+       if use nfs; then
+               append-cppflags "$($(tc-getPKG_CONFIG) libtirpc --cflags)"
+               append-libs "$($(tc-getPKG_CONFIG) libtirpc --libs)"
+       fi
+       econf $(use_enable nfs)
+}
+
+src_install() {
+       default
+       dodoc -r examples
+
+       newconfd "${FILESDIR}"/${PN}-conf.d ${PN}
+       newinitd "${FILESDIR}"/${PN}-init.d-r1 ${PN}
+       systemd_dounit "${FILESDIR}"/watchdog.service
+}