--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>sbraz@gentoo.org</email>
+ <name>Louis Sautier</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">matteocorti/check_lm_sensors</remote-id>
+ <bugs-to>https://github.com/matteocorti/check_lm_sensors/issues</bugs-to>
+ </upstream>
+</pkgmetadata>
--- /dev/null
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit perl-module vcs-snapshot
+
+MY_PN="${PN/nagios-plugin-/}"
+MY_COMMIT="36e453f791f0c8e32c2ead204f68511fd2ad4529"
+
+DESCRIPTION="Nagios plugin to monitor the values of onboard sensors and disk temperatures"
+HOMEPAGE="https://github.com/matteocorti/check_lm_sensors"
+SRC_URI="https://github.com/matteocorti/${MY_PN}/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="dev-perl/Module-Install"
+RDEPEND="
+ dev-perl/Monitoring-Plugin
+ virtual/perl-Getopt-Long
+"
+
+src_compile() {
+ default
+ pod2man ${MY_PN}.pod > ${MY_PN}.1 || die
+}
+
+src_install() {
+ perl-module_src_install
+ doman ${MY_PN}.1
+ local plugindir="/usr/$(get_libdir)/nagios/plugins"
+ dodir "${plugindir}"
+ mv "${ED}/usr/bin/${MY_PN}" "${ED}/${plugindir}" || die
+}