# Distributed under the terms of the GNU General Public License v2 inherit eutils DESCRIPTION="Linux driver for PCTel-base linmodems" HOMEPAGE="http://linmodems.technion.ac.il/pctel-linux/" SRC_URI="http://www.medres.ch/~jstifter/pctel/${P}-6.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" S="${WORKDIR}/${PN}" DEPEND="" RDEPEND="" src_unpack() { unpack "${A}" cd "${S}" epatch "${FILESDIR}/${PF}-82801DB-gentoo.diff" epatch "${FILESDIR}/${PF}-sandbox-gentoo.diff" } src_compile() { cd "${S}/src" ./configure -auto } src_install() { dodir /dev dodir /lib/modules/`uname -r`/misc cd "${S}/src" einstall insinto /etc/modules.d newins "${FILESDIR}/pctel.modules" pctel fperms 660 "/dev/ttyS15" fowners root:dialout "/dev/ttyS15" insinto / } pkg_postinst() { einfo "The modem is accessible with /dev/ttyS15" einfo "" einfo "You need to edit /etc/modules.d/pctel and run modules-update." einfo "" einfo "You must be in the dialout group to use the modem." }