# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 MY_P="${P/_alpha/a}" DESCRIPTION="Winmodems with Lucent Apollo (ISA) and Mars (PCI) chipsets" HOMEPAGE="http://www.heby.de/ltmodem/" SRC_URI="http://www.physcip.uni-stuttgart.de/heby/ltmodem/${MY_P}.tar.gz http://www.sfu.ca/~cth/ltmodem/${MY_P}.tar.gz" # Serial code is GPL-2, Binary modem module is Agere Sys Inc Proprietary LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" DEPEND="virtual/linux-sources" S="${WORKDIR}/${MY_P}" src_compile() { #change "make -e" -> "make" in order to compile #When FAST=1 user does not have to press enter many times #EXCEPT for single warning about using gcc ver 3 -so must still remove read -p #Should be able to remove one or both after build_module becomes gentoo aware cp build_module{,.orig} sed -e 's:make -e:make:' build_module.orig |\ sed -e 's:read -p:echo:' > build_module FAST="1" ./build_module >& ${T}/build_record-report\ || die "please include ${T}/build_record-report in any bug report" } src_install() { dohtml DOCs/*.html rm -rf DOCs/*.html DOCs/Installers dodoc 1ST-READ BLDrecord.txt Utility_version_tests.txt DOCs/* mv utils/fixscript utils/ltfixscript mv utils/noisefix utils/ltnoisefix mv utils/unloading utils/ltunloading dobin utils/lt* cd source make install ROOTDIR=${D} || die insinto /etc/devfs.d newins debian/etc_devfs_conf.d_ltmodem ltmodem insinto /etc/modules.d newins debian/modules ltmodem } pkg_postinst() { /bin/killall -HUP devfsd /sbin/update-modules einfo "Use /dev/modem to access modem" einfo "If you have problems, read this doc:" einfo "/usr/share/doc/${PF}/html/post-install.html" } pkg_postrm() { /bin/killall -HUP devfsd /sbin/update-modules }