diff options
author | Alin Năstac <mrness@gentoo.org> | 2008-04-13 10:20:57 +0000 |
---|---|---|
committer | Alin Năstac <mrness@gentoo.org> | 2008-04-13 10:20:57 +0000 |
commit | e43bcab57f75861e4b382f4e7bedd0c4bcd2d2e8 (patch) | |
tree | 4fbc90285aaa13154f4739ae73bca5d97873ebbe /net-dialup/hsfmodem/hsfmodem-7.68.00.09.ebuild | |
parent | add missing boost dependancy, bug 216586 (diff) | |
download | gentoo-2-e43bcab57f75861e4b382f4e7bedd0c4bcd2d2e8.tar.gz gentoo-2-e43bcab57f75861e4b382f4e7bedd0c4bcd2d2e8.tar.bz2 gentoo-2-e43bcab57f75861e4b382f4e7bedd0c4bcd2d2e8.zip |
Version bump that improves compatibility with newer kernels (#208569).
(Portage version: 2.1.4.4)
Diffstat (limited to 'net-dialup/hsfmodem/hsfmodem-7.68.00.09.ebuild')
-rw-r--r-- | net-dialup/hsfmodem/hsfmodem-7.68.00.09.ebuild | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/net-dialup/hsfmodem/hsfmodem-7.68.00.09.ebuild b/net-dialup/hsfmodem/hsfmodem-7.68.00.09.ebuild new file mode 100644 index 000000000000..0df06ef2dba0 --- /dev/null +++ b/net-dialup/hsfmodem/hsfmodem-7.68.00.09.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/hsfmodem/hsfmodem-7.68.00.09.ebuild,v 1.1 2008/04/13 10:20:56 mrness Exp $ + +inherit eutils linux-info + +#The document is the same as in hcfpcimodem, even if it has a different URL +MY_DOC="100498D_RM_HxF_Released.pdf" + +DESCRIPTION="Linuxant's modem driver for Conexant HSF chipset" +HOMEPAGE="http://www.linuxant.com/drivers/hsf/index.php" +SRC_URI="x86? ( http://www.linuxant.com/drivers/hsf/full/archive/${P}full/${P}full.tar.gz ) + amd64? ( http://www.linuxant.com/drivers/hsf/full/archive/${P}x86_64full/${P}x86_64full.tar.gz ) + doc? ( http://www.linuxant.com/drivers/hsf/full/archive/${P}full/${MY_DOC} )" + +LICENSE="Conexant" +KEYWORDS="-* ~amd64 ~x86" +IUSE="doc" +SLOT="0" + +DEPEND="dev-lang/perl + app-arch/cpio" + +S="${WORKDIR}" + +pkg_setup() { + linux-info_pkg_setup + if useq x86; then + MY_ARCH_S="${S}/${P}full" + elif useq amd64; then + MY_ARCH_S="${S}/${P}x86_64full" + fi + + local f + QA_EXECSTACK="" + for f in pcibasic2 mc97ich mc97via mc97ali mc97ati mc97sis usbcd2 soar hda engine ; do + QA_EXECSTACK="${QA_EXECSTACK} usr/lib/hsfmodem/modules/imported/hsf${f}-i386.O" + done +} + +src_unpack() { + unpack ${A} + cd "${MY_ARCH_S}" + epatch "${FILESDIR}/${P}-gentoo.patch" +} + +src_compile() { + cd "${MY_ARCH_S}" + emake all || die "make failed" +} + +src_install () { + cd "${MY_ARCH_S}" + make ROOT="${D}" install || die "make install failed" + + # on testing arches, kernelcompiler.sh permissions are 0600 (#158736) + fperms a+rx /usr/lib/hsfmodem/modules/kernelcompiler.sh + + use doc && dodoc "${DISTDIR}/${MY_DOC}" +} + +pkg_preinst() { + local NVMDIR="${ROOT}/etc/${PN}/nvm" + if [ -d "${NVMDIR}" ]; then + einfo "Cleaning ${NVMDIR}..." + rm -rf "${NVMDIR}" + eend + fi +} + +pkg_postinst() { + if [ "${ROOT}" = / ]; then + elog "To complete the installation and configuration of your HSF modem," + elog "please run hsfconfig." + fi +} + +pkg_prerm() { + if [ "${ROOT}" = / -a -f /etc/init.d/hsf ] ; then + hsfconfig --remove || die "hsfconfig --remove failed" + fi +} |