diff options
author | Alin Năstac <mrness@gentoo.org> | 2007-03-10 14:14:48 +0000 |
---|---|---|
committer | Alin Năstac <mrness@gentoo.org> | 2007-03-10 14:14:48 +0000 |
commit | 556d582b3892785820694b5ceee02f2b793f1b8e (patch) | |
tree | c2bbe20fd722255e94faeb1c613e801b411c89f9 /net-dialup/ltmodem | |
parent | Version bump. (diff) | |
download | gentoo-2-556d582b3892785820694b5ceee02f2b793f1b8e.tar.gz gentoo-2-556d582b3892785820694b5ceee02f2b793f1b8e.tar.bz2 gentoo-2-556d582b3892785820694b5ceee02f2b793f1b8e.zip |
Remove references to $ROOT from src_install (#168039).
(Portage version: 2.1.2.2)
Diffstat (limited to 'net-dialup/ltmodem')
-rw-r--r-- | net-dialup/ltmodem/ChangeLog | 6 | ||||
-rw-r--r-- | net-dialup/ltmodem/ltmodem-8.31_alpha10-r3.ebuild | 18 |
2 files changed, 17 insertions, 7 deletions
diff --git a/net-dialup/ltmodem/ChangeLog b/net-dialup/ltmodem/ChangeLog index 56b415375f69..94b380c33c01 100644 --- a/net-dialup/ltmodem/ChangeLog +++ b/net-dialup/ltmodem/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-dialup/ltmodem # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-dialup/ltmodem/ChangeLog,v 1.31 2007/02/25 09:15:59 genstef Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dialup/ltmodem/ChangeLog,v 1.32 2007/03/10 14:14:48 mrness Exp $ + + 10 Mar 2007; Alin Năstac <mrness@gentoo.org> + ltmodem-8.31_alpha10-r3.ebuild: + Remove references to $ROOT from src_install (#168039). 25 Feb 2007; <genstef@gentoo.org> ltmodem-8.31_alpha10-r3.ebuild: use KV_DIR only after linux-mod_pkg_setup, bug 168051 diff --git a/net-dialup/ltmodem/ltmodem-8.31_alpha10-r3.ebuild b/net-dialup/ltmodem/ltmodem-8.31_alpha10-r3.ebuild index 27589675d4c5..085d95c14502 100644 --- a/net-dialup/ltmodem/ltmodem-8.31_alpha10-r3.ebuild +++ b/net-dialup/ltmodem/ltmodem-8.31_alpha10-r3.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-dialup/ltmodem/ltmodem-8.31_alpha10-r3.ebuild,v 1.3 2007/02/25 09:15:59 genstef Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dialup/ltmodem/ltmodem-8.31_alpha10-r3.ebuild,v 1.4 2007/03/10 14:14:48 mrness Exp $ inherit linux-mod eutils @@ -82,11 +82,8 @@ src_install() { dosbin utils/lt_* # Add configuration for devfs, udev - if [ -e "${ROOT}/dev/.devfsd" ] ; then - insinto /etc/devfs.d/; newins "${FILESDIR}/ltmodem_devfs" ltmodem - elif [ -e "${ROOT}/dev/.udev" ] ; then - insinto /etc/udev/rules.d/; newins "${FILESDIR}/ltmodem_udev" 55-ltmodem.rules - fi + insinto /etc/devfs.d/; newins "${FILESDIR}/ltmodem_devfs" ltmodem + insinto /etc/udev/rules.d/; newins "${FILESDIR}/ltmodem_udev" 55-ltmodem.rules # install kernel module if kernel_is 2 4; then @@ -97,6 +94,15 @@ src_install() { fi } +pkg_preinst() { + linux-mod_pkg_preinst + + # Remove obsolete devfs configuration files if the box use udev + if [ -e "${ROOT}/dev/.udev" ]; then + rm -r "${D}/etc/devfs.d" + fi +} + pkg_postinst() { linux-mod_pkg_postinst |