diff options
author | Alin Năstac <mrness@gentoo.org> | 2007-03-13 09:08:17 +0000 |
---|---|---|
committer | Alin Năstac <mrness@gentoo.org> | 2007-03-13 09:08:17 +0000 |
commit | 80e170811ecf86784d771f5fca82a716072088c5 (patch) | |
tree | 33aafb142805e7f6be45dac16245f03dabf84190 /net-dialup/hcfpcimodem/hcfpcimodem-1.12.ebuild | |
parent | Version bump (#167939). (diff) | |
download | gentoo-2-80e170811ecf86784d771f5fca82a716072088c5.tar.gz gentoo-2-80e170811ecf86784d771f5fca82a716072088c5.tar.bz2 gentoo-2-80e170811ecf86784d771f5fca82a716072088c5.zip |
Version bump.
(Portage version: 2.1.2.2)
Diffstat (limited to 'net-dialup/hcfpcimodem/hcfpcimodem-1.12.ebuild')
-rw-r--r-- | net-dialup/hcfpcimodem/hcfpcimodem-1.12.ebuild | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/net-dialup/hcfpcimodem/hcfpcimodem-1.12.ebuild b/net-dialup/hcfpcimodem/hcfpcimodem-1.12.ebuild new file mode 100644 index 000000000000..bc790a54ef3f --- /dev/null +++ b/net-dialup/hcfpcimodem/hcfpcimodem-1.12.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/hcfpcimodem/hcfpcimodem-1.12.ebuild,v 1.1 2007/03/13 09:08:17 mrness Exp $ + +inherit eutils linux-info + +#The document is the same as in hsfmodem, even if it has a different URL +MY_DOC="100498D_RM_HxF_Released.pdf" + +DESCRIPTION="Linuxant's modem driver for Connexant HCF chipset" +HOMEPAGE="http://www.linuxant.com/drivers/hcf/index.php" +SRC_URI="http://www.linuxant.com/drivers/hcf/full/archive/${P}full/${P}full.tar.gz + doc? ( http://www.linuxant.com/drivers/hcf/full/archive/${P}full/${MY_DOC} )" + +LICENSE="Conexant" +SLOT="0" +KEYWORDS="-* ~x86" +IUSE="doc" + +DEPEND="dev-lang/perl + app-arch/cpio" + +S="${WORKDIR}/${P}full" + +QA_EXECSTACK="usr/lib/hcfpcimodem/modules/imported/hcfblam-i386.O usr/lib/hcfpcimodem/modules/imported/hcfengine-i386.O" + +pkg_setup() { + linux-info_pkg_setup + + MOD_N="hcfpci" + # Check to see if module is inserted into kernel, otherwise, build fails + if [ "`lsmod | sed '/^'$MOD_N'serial/!d'`" ]; then + eerror + eerror "Module is in use by the kernel!!!" + eerror "Attempting to unload..." + eerror + + # Unloading module... + ${MOD_N}stop + if [ "`lsmod | sed '/^'$MOD_N'serial/!d'`" ]; then + eerror "Failed to unload modules from kernel!!!" + eerror "Please manualy remove the module from the kernel and emerge again." + eerror + die + fi + einfo "Successfuly removed module from memory. Resuming emerge." + einfo + fi +} + +src_compile() { + emake all || die "make failed" +} + +pkg_preinst() { + local NVMDIR="${ROOT}/etc/${PN}/nvm" + if [ -d "${NVMDIR}" ]; then + einfo "Cleaning ${NVMDIR}..." + rm -rf "${NVMDIR}" + eend + fi +} + +src_install () { + make PREFIX="${D}/usr/" ROOT="${D}" install || die "make install failed" + + use doc && dodoc "${DISTDIR}/${MY_DOC}" +} + +pkg_postinst() { + einfo "To complete the installation and configuration of your HCF modem," + einfo "please run hcfpciconfig." +} + |