Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 41852 Details for
Bug 67639
slmodem (kmod -> kernel-mod)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
slmodem-2.9.10.ebuild
slmodem-2.9.10.ebuild (text/plain), 3.72 KB, created by
Stefan Schweizer (RETIRED)
on 2004-10-15 04:22:14 UTC
(
hide
)
Description:
slmodem-2.9.10.ebuild
Filename:
MIME Type:
Creator:
Stefan Schweizer (RETIRED)
Created:
2004-10-15 04:22:14 UTC
Size:
3.72 KB
patch
obsolete
># Copyright 1999-2004 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >inherit kernel-mod eutils > >DESCRIPTION="Driver for Smart Link modem" >HOMEPAGE="http://www.smlink.com/" >SRC_URI="http://www.smlink.com/main/down/${P}.tar.gz" >LICENSE="Smart-Link" >SLOT="0" >KEYWORDS="~x86 -*" >IUSE="alsa usb" > >DEPEND="virtual/libc > alsa? ( media-libs/alsa-lib ) > virtual/os-headers" > >RDEPEND="virtual/libc > alsa? ( media-libs/alsa-lib )" > >pkg_setup() { > kernel-mod_check_modules_supported >} > >src_compile() { > if use alsa > then > export SUPPORT_ALSA=1 > else > export SUPPORT_ALSA=0 > fi > > # http://marc.theaimsgroup.com/?l=gentoo-dev&m=109672618708314&w=2 > kernel-mod_getversion > if [ ${KV_MINOR} -gt 5 ] && [ ${KV_PATCH} -gt 5 ] > then > sed -i 's:SUBDIRS=:M=:g' drivers/Makefile > fi > > unset ARCH > > emake \ > KERNEL_DIR="${ROOT}/usr/src/linux" \ > modem drivers || die "Failed to compile driver" >} > >src_install() { > if kernel-mod_is_2_6_kernel > then > KV_OBJ="ko" > else > KV_OBJ="o" > fi > > insinto /lib/modules/${KV}/extra > doins drivers/slamr.${KV_OBJ} > doins drivers/slusb.${KV_OBJ} > > newsbin modem/modem_test slmodem_test > dosbin modem/slmodemd > dodir /var/lib/slmodem > fowners root:dialout /var/lib/slmodem > > dodoc COPYING Changes README > > # Install /etc/{devfs,modules,init,conf}.d/slmodem files > insinto /etc/conf.d/; newins ${FILESDIR}/${PN}-2.9.conf ${PN} > insopts -m0755; insinto /etc/init.d/; newins ${FILESDIR}/${PN}-2.9.init ${PN} > > if use alsa > then > sed -i -e "s/# ALSACONF //g" ${D}/etc/conf.d/slmodem > else > sed -i -e "s/# NONALSACONF //g" ${D}/etc/conf.d/slmodem > if use usb > then > sed -i -e "s/# USBCONF //g" ${D}/etc/conf.d/slmodem > else > sed -i -e "s/# PCICONF //g" ${D}/etc/conf.d/slmodem > fi > fi > sed -i -e "s/ALSACONF//g" -e "s/PCICONF//g" -e "s/USBCONF//g" ${D}/etc/conf.d/slmodem > > > # Make some devices if we aren't using devfs > # If we are using devfs, restart it > if [ -e ${ROOT}/dev/.devfsd ] ; then > # devfs > insinto /etc/devfs.d/; newins ${FILESDIR}/${PN}-2.9.devfs ${PN} > insinto /etc/modules.d/; newins ${FILESDIR}/${PN}-2.9.modules ${PN} > elif [ -e ${ROOT}/dev/.udev ] ; then > # udev > # check Symlink > dodir /etc/udev/rules.d/ > echo 'KERNEL="slamr", NAME="slamr0"' > \ > ${D}/etc/udev/rules.d/55-${PN}.rules > echo 'KERNEL="slusb", NAME="slusb0"' >> \ > ${D}/etc/udev/rules.d/55-${PN}.rules > dodir /etc/udev/permissions.d > echo 'slamr*:root:dialout:0660' > \ > ${D}/etc/udev/permissions.d/55-${PN}.permissions > else > make -C drivers DESTDIR=${D} KERNEL_DIR="${ROOT}/usr/src/linux" install-devices > fi > > dodir /etc/hotplug/blacklist.d > echo -e "slusb\nslamr\nsnd-intel8x0m" >> ${D}/etc/hotplug/blacklist.d/55-${PN} >} > >pkg_postinst() { > # Make some devices if we aren't using devfs > # If we are using devfs, restart it > if [ -e ${ROOT}/dev/.devfsd ] > then > ebegin "Restarting devfsd to reread devfs rules" > killall -HUP devfsd > eend 0 > einfo "modules-update to complete configuration." > > elif [ -e ${ROOT}/dev/.udev ] > then > ebegin "Restarting udev to reread udev rules" > udevstart > eend 0 > fi > > echo > > einfo "You must edit /etc/conf.d/${PN} for your configuration" > > ewarn "To avoid problems add slusb/slamr to /etc/hotplug/blacklist" > > einfo "To add slmodem to your startup - type : rc-update add slmodem default" > > if use alsa; > then > einfo "I hope you have already added alsa to your startup: " > einfo "otherwise type: rc-update add alsasound boot" > einfo > einfo "If you need to use snd-intel8x0m from the kernel" > einfo "compile it as a module and edit /etc/module.d/alsa" > einfo 'to: "alias snd-card-(number) snd-intel8x0m"' > fi > > einfo "Checking kernel module dependencies" > test -r "${ROOT}/usr/src/linux/System.map" && \ > depmod -ae -F "${ROOT}/usr/src/linux/System.map" -b "${ROOT}" -r ${KV} >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 67639
: 41852