diff options
author | Matthias Schwarzott <zzam@gentoo.org> | 2008-05-05 10:02:31 +0000 |
---|---|---|
committer | Matthias Schwarzott <zzam@gentoo.org> | 2008-05-05 10:02:31 +0000 |
commit | 7168ab735b604faef821bc824fa7e6296216824a (patch) | |
tree | e603e3e2dd0d84ca12bbc865c4c60d4c6d4fecc3 /app-misc/lirc | |
parent | Version bumped. Init-script changes: Now provide lirc, Bug #190669. Use pidfi... (diff) | |
download | gentoo-2-7168ab735b604faef821bc824fa7e6296216824a.tar.gz gentoo-2-7168ab735b604faef821bc824fa7e6296216824a.tar.bz2 gentoo-2-7168ab735b604faef821bc824fa7e6296216824a.zip |
Adding hack to stop portage from deleting lircd.conf.
(Portage version: 2.1.5_rc6)
Diffstat (limited to 'app-misc/lirc')
-rw-r--r-- | app-misc/lirc/ChangeLog | 5 | ||||
-rw-r--r-- | app-misc/lirc/lirc-0.8.3.ebuild | 11 |
2 files changed, 14 insertions, 2 deletions
diff --git a/app-misc/lirc/ChangeLog b/app-misc/lirc/ChangeLog index 78107b7b6a02..892f55fab416 100644 --- a/app-misc/lirc/ChangeLog +++ b/app-misc/lirc/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for app-misc/lirc # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/ChangeLog,v 1.176 2008/05/05 09:53:18 zzam Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/ChangeLog,v 1.177 2008/05/05 10:02:31 zzam Exp $ + + 05 May 2008; Matthias Schwarzott <zzam@gentoo.org> lirc-0.8.3.ebuild: + Adding hack to stop portage from deleting lircd.conf. *lirc-0.8.3 (05 May 2008) diff --git a/app-misc/lirc/lirc-0.8.3.ebuild b/app-misc/lirc/lirc-0.8.3.ebuild index b36adb78df3b..aa4310a4b9e0 100644 --- a/app-misc/lirc/lirc-0.8.3.ebuild +++ b/app-misc/lirc/lirc-0.8.3.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/lirc-0.8.3.ebuild,v 1.1 2008/05/05 09:53:18 zzam Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/lirc-0.8.3.ebuild,v 1.2 2008/05/05 10:02:31 zzam Exp $ inherit eutils linux-mod flag-o-matic autotools @@ -285,6 +285,15 @@ src_install() { doins -r remotes/* } +pkg_preinst() { + linux-mod_pkg_preinst + + # 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 + fi +} + pkg_postinst() { linux-mod_pkg_postinst echo |