diff options
Diffstat (limited to 'net-dialup/ltmodem/ltmodem-2.6.9.ebuild')
-rw-r--r-- | net-dialup/ltmodem/ltmodem-2.6.9.ebuild | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/net-dialup/ltmodem/ltmodem-2.6.9.ebuild b/net-dialup/ltmodem/ltmodem-2.6.9.ebuild new file mode 100644 index 000000000000..e88cb7e80a35 --- /dev/null +++ b/net-dialup/ltmodem/ltmodem-2.6.9.ebuild @@ -0,0 +1,82 @@ +# 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-2.6.9.ebuild,v 1.1 2007/11/08 12:59:15 mrness Exp $ + +inherit linux-mod + +MY_ALK_VER="${PV%.*}-alk-${PV##*.}" + +DESCRIPTION="Winmodems with Lucent Apollo (ISA) and Mars (PCI) chipsets" +HOMEPAGE="http://linmodems.technion.ac.il/" +SRC_URI="http://linmodems.technion.ac.il/packages/ltmodem/kernel-2.6/ltmodem-${MY_ALK_VER}.tar.bz2" + +LICENSE="GPL-2" +KEYWORDS="~x86" +IUSE="" + +RESTRICT="userpriv" + +DEPEND="" +RDEPEND="" + +S="${WORKDIR}/${PN}-${MY_ALK_VER}" + +MODULE_NAMES="ltmodem(ltmodem:) ltserial(ltmodem:)" +MODULESD_LTMODEM_ALIASES=( + "char-major-62 ltserial" + "/dev/tts/LT0 ltserial" + "/dev/modem ltserial" +) +CONFIG_CHECK="SERIAL_8250" +SERIAL_8250_ERROR="This driver requires you to compile your kernel with serial core (CONFIG_SERIAL_8250) support." + +pkg_setup() { + linux-mod_pkg_setup + + if kernel_is 2 4; then + eerror "This driver works only with 2.6 kernels!" + die "unsupported kernel detected" + fi + + BUILD_TARGETS="module" + BUILD_PARAMS="KERNEL_DIR='${KV_DIR}'" +} + +src_install() { + # Add configuration for udev + insinto /etc/udev/rules.d/; newins "${FILESDIR}/ltmodem_udev" 55-ltmodem.rules + + # install kernel module + linux-mod_src_install +} + +pkg_postinst() { + linux-mod_pkg_postinst + + if [ "$ROOT" = "/" ]; then + /sbin/update-modules + fi + + # Make some devices if we aren't using udev + if [ -e "${ROOT}/dev/.udev" ]; then + ebegin "Restarting udev to reread udev rules" + udevstart + eend $? + else + mknod --mode=0660 /dev/ttyLTM0 c 62 64 && chgrp dialout /dev/ttyLTM0 + fi + elog "Use /dev/ttyLTM0 to access modem" + + echo + ewarn "Remember, in order to access the modem," + ewarn "you have to be in the 'dialout' group." + ewarn "Also, if your dialing application use locking mechanism (e.g wvdial)," + ewarn "you should have write access to /var/lock directory." + + if linux_chkconfig_present SMP ; then + ewarn + ewarn "Please note that Linux support for SMP (symmetric multi processor)" + ewarn "is reported to be incompatible with this driver!" + ewarn "In case it doesn't work, you should try first to disable CONFIG_SMP in your kernel." + fi +} |