diff options
Diffstat (limited to 'app-misc/lirc/lirc-0.8.4a.ebuild')
-rw-r--r-- | app-misc/lirc/lirc-0.8.4a.ebuild | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/app-misc/lirc/lirc-0.8.4a.ebuild b/app-misc/lirc/lirc-0.8.4a.ebuild index be10e20e785e..2237f1434bd3 100644 --- a/app-misc/lirc/lirc-0.8.4a.ebuild +++ b/app-misc/lirc/lirc-0.8.4a.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/lirc-0.8.4a.ebuild,v 1.4 2009/03/13 09:17:24 fauli Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/lirc-0.8.4a.ebuild,v 1.5 2009/06/18 15:23:03 zzam Exp $ inherit eutils linux-mod flag-o-matic autotools @@ -279,7 +279,7 @@ src_install() { newconfd "${FILESDIR}"/lircd.conf.2 lircd insinto /etc/modprobe.d/ - newins "${FILESDIR}"/modprobed.lirc lirc + newins "${FILESDIR}"/modprobed.lirc lirc.conf newinitd "${FILESDIR}"/irexec-initd irexec newconfd "${FILESDIR}"/irexec-confd irexec @@ -297,6 +297,12 @@ src_install() { pkg_preinst() { linux-mod_pkg_preinst + local dir="${ROOT}/etc/modprobe.d" + if [[ -a ${dir}/lirc && ! -a ${dir}/lirc.conf ]]; then + elog "Renaming ${dir}/lirc to lirc.conf" + mv -f "${dir}/lirc" "${dir}/lirc.conf" + fi + # stop portage from deleting this file if [[ -f ${ROOT}/etc/lircd.conf && ! -f ${D}/etc/lircd.conf ]]; then cp "${ROOT}"/etc/lircd.conf "${D}"/etc/lircd.conf |