diff options
author | Pacho Ramos <pacho@gentoo.org> | 2013-07-13 11:25:30 +0000 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2013-07-13 11:25:30 +0000 |
commit | a15220930c8b58e1b7fa8f122e6ed8a349481325 (patch) | |
tree | 22a0853da69d169e04f84065929b018d749aca38 /sys-apps/lm_sensors | |
parent | New ebuild for dev-java/metainf-services, generates META-INF/services files a... (diff) | |
download | gentoo-2-a15220930c8b58e1b7fa8f122e6ed8a349481325.tar.gz gentoo-2-a15220930c8b58e1b7fa8f122e6ed8a349481325.tar.bz2 gentoo-2-a15220930c8b58e1b7fa8f122e6ed8a349481325.zip |
Install unit file (#455632)
(Portage version: 2.1.12.11/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
Diffstat (limited to 'sys-apps/lm_sensors')
-rw-r--r-- | sys-apps/lm_sensors/ChangeLog | 6 | ||||
-rw-r--r-- | sys-apps/lm_sensors/files/fancontrol.service | 9 | ||||
-rw-r--r-- | sys-apps/lm_sensors/files/sensord.service | 9 | ||||
-rw-r--r-- | sys-apps/lm_sensors/lm_sensors-3.3.3-r2.ebuild | 12 |
4 files changed, 33 insertions, 3 deletions
diff --git a/sys-apps/lm_sensors/ChangeLog b/sys-apps/lm_sensors/ChangeLog index 3924856db3ab..8c841e1eaa98 100644 --- a/sys-apps/lm_sensors/ChangeLog +++ b/sys-apps/lm_sensors/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-apps/lm_sensors # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/ChangeLog,v 1.135 2013/02/19 05:01:56 zmedico Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/ChangeLog,v 1.136 2013/07/13 11:25:30 pacho Exp $ + + 13 Jul 2013; Pacho Ramos <pacho@gentoo.org> +files/fancontrol.service, + +files/sensord.service, lm_sensors-3.3.3-r2.ebuild: + Install unit file (#455632) 19 Feb 2013; Zac Medico <zmedico@gentoo.org> lm_sensors-3.3.3-r2.ebuild: Add ~arm-linux keyword. diff --git a/sys-apps/lm_sensors/files/fancontrol.service b/sys-apps/lm_sensors/files/fancontrol.service new file mode 100644 index 000000000000..c86b498f830c --- /dev/null +++ b/sys-apps/lm_sensors/files/fancontrol.service @@ -0,0 +1,9 @@ +[Unit] +Description=Fan control daemon + +[Service] +PIDFile=/var/run/fancontrol.pid +ExecStart=/usr/sbin/fancontrol + +[Install] +WantedBy=multi-user.target diff --git a/sys-apps/lm_sensors/files/sensord.service b/sys-apps/lm_sensors/files/sensord.service new file mode 100644 index 000000000000..6d272f1efd15 --- /dev/null +++ b/sys-apps/lm_sensors/files/sensord.service @@ -0,0 +1,9 @@ +[Unit] +Description=Sensor information logging daemon + +[Service] +PIDFile=/var/run/sensord.pid +ExecStart=/usr/sbin/sensord + +[Install] +WantedBy=multi-user.target diff --git a/sys-apps/lm_sensors/lm_sensors-3.3.3-r2.ebuild b/sys-apps/lm_sensors/lm_sensors-3.3.3-r2.ebuild index a1f72671f61b..9212b2b01d13 100644 --- a/sys-apps/lm_sensors/lm_sensors-3.3.3-r2.ebuild +++ b/sys-apps/lm_sensors/lm_sensors-3.3.3-r2.ebuild @@ -1,10 +1,10 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/lm_sensors-3.3.3-r2.ebuild,v 1.2 2013/02/19 05:01:56 zmedico Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/lm_sensors-3.3.3-r2.ebuild,v 1.3 2013/07/13 11:25:30 pacho Exp $ EAPI=5 -inherit eutils linux-info toolchain-funcs multilib +inherit eutils linux-info toolchain-funcs multilib systemd DESCRIPTION="Hardware Monitoring user-space utilities" HOMEPAGE="http://www.lm-sensors.org/" @@ -37,6 +37,10 @@ src_prepare() { # Respect LDFLAGS sed -i -e 's/\$(LIBDIR)$/\$(LIBDIR) \$(LDFLAGS)/g' Makefile || die + # Fix shipped unit file paths + sed -i -e 's:\(^EnvironmentFile=\).*:\1/etc/conf.d/lm_sensors:' \ + prog/init/lm_sensors.service || die + use static-libs || { sed -i -e '/^BUILD_STATIC_LIB/d' Makefile || die; } } @@ -59,11 +63,15 @@ src_install() { install newinitd "${FILESDIR}"/${PN}-3-init.d ${PN} + systemd_dounit prog/init/lm_sensors.service + newinitd "${FILESDIR}"/fancontrol-init.d-2 fancontrol + systemd_dounit "${FILESDIR}"/fancontrol.service if use sensord; then newconfd "${FILESDIR}"/sensord-conf.d sensord newinitd "${FILESDIR}"/sensord-4-init.d sensord + systemd_dounit "${FILESDIR}"/sensord.service fi dodoc CHANGES CONTRIBUTORS INSTALL README \ |