# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ EAPI=5 inherit eutils linux-mod readme.gentoo MY_P="martian-full-${PV}" DESCRIPTION="ltmodem alternative driver providing support for Agere Systems winmodems" HOMEPAGE="http://packages.debian.org/sid/martian-modem-source http://phep2.technion.ac.il/linmodems/packages/ltmodem/kernel-2.6/martian" #SRC_URI="mirror://debian/pool/non-free/m/martian-modem/${MY_P}.tar.gz" #SRC_URI="http://phep2.technion.ac.il/linmodems/packages/ltmodem/kernel-2.6/martian/${MY_P}.tar.gz" SRC_URI="http://linmodems.technion.ac.il/packages/ltmodem/kernel-2.6/martian/${MY_P}.tar.gz" LICENSE="GPL-2 AgereSystems-WinModem" KEYWORDS="~amd64 ~x86 -*" IUSE="" SLOT=0 DEPEND="!net-dialup/ltmodem" RDEPEND="!kernel-2.6.20! epatch "${FILESDIR}/${P}-makefile.patch" epatch "${FILESDIR}/${P}-grsecurity.patch" # fix compile on amd64 sed -i -e "/^HOST.*$/s:uname -i:uname -m:" modem/Makefile || die "sed failed" BUILD_TARGETS="all" BUILD_PARAMS="KERNEL_DIR='${KV_DIR}' SUBLEVEL='${KV_PATCH}'" if kernel_is ge 3 8 then epatch "${FILESDIR}/${PN}-kernel-3.8.patch" fi epatch_user } src_install() { linux-mod_src_install # userspace daemon and initscripts stuff dosbin modem/martian_modem newconfd "${FILESDIR}/${PN}.conf.d" ${PN} newinitd "${FILESDIR}/${PN}.init.d" ${PN} } pkg_postinst() { linux-mod_pkg_postinst if linux_chkconfig_present SMP ; then elog "You have SMP (symmetric multi processor) support enabled in kernel." elog "You should run martian-modem with --smp enabled in MARTIAN_OPTS." fi readme.gentoo_pkg_postinst }