diff options
author | Alin Năstac <mrness@gentoo.org> | 2007-05-16 10:44:58 +0000 |
---|---|---|
committer | Alin Năstac <mrness@gentoo.org> | 2007-05-16 10:44:58 +0000 |
commit | 7c397bd8ac5ea70508af75ab80ee8e4311b6c337 (patch) | |
tree | 3e0ed3ed9648961917c329ab46a219f7c6d8b3b6 /net-dialup | |
parent | Stable on alpha wrt bug #171669 (diff) | |
download | historical-7c397bd8ac5ea70508af75ab80ee8e4311b6c337.tar.gz historical-7c397bd8ac5ea70508af75ab80ee8e4311b6c337.tar.bz2 historical-7c397bd8ac5ea70508af75ab80ee8e4311b6c337.zip |
Version bump based on the current sunrise ebuild, thanks to Jakub Moc <jakub@gentoo.org> (see bugs #178030 and #178173).
Package-Manager: portage-2.1.2.3
Diffstat (limited to 'net-dialup')
-rw-r--r-- | net-dialup/slmodem/ChangeLog | 18 | ||||
-rw-r--r-- | net-dialup/slmodem/Manifest | 51 | ||||
-rw-r--r-- | net-dialup/slmodem/files/digest-slmodem-2.9.11_pre20070505 | 6 | ||||
-rw-r--r-- | net-dialup/slmodem/files/slmodem-modules | 9 | ||||
-rw-r--r-- | net-dialup/slmodem/files/slmodem-ungrab-winmodem-hp500.patch | 27 | ||||
-rw-r--r-- | net-dialup/slmodem/files/slusb-udev.script | 17 | ||||
-rw-r--r-- | net-dialup/slmodem/slmodem-2.9.11_pre20061021-r2.ebuild | 4 | ||||
-rw-r--r-- | net-dialup/slmodem/slmodem-2.9.11_pre20070505.ebuild | 152 |
8 files changed, 269 insertions, 15 deletions
diff --git a/net-dialup/slmodem/ChangeLog b/net-dialup/slmodem/ChangeLog index 98e890bed0a3..acc1fe1b2916 100644 --- a/net-dialup/slmodem/ChangeLog +++ b/net-dialup/slmodem/ChangeLog @@ -1,11 +1,27 @@ # ChangeLog for net-dialup/slmodem # Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-dialup/slmodem/ChangeLog,v 1.82 2007/05/06 08:12:57 genone Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dialup/slmodem/ChangeLog,v 1.83 2007/05/16 10:44:58 mrness Exp $ + +*slmodem-2.9.11_pre20070505 (16 May 2007) + + 16 May 2007; Alin Năstac <mrness@gentoo.org> files/slmodem-modules, + +files/slmodem-ungrab-winmodem-hp500.patch, +files/slusb-udev.script, + +slmodem-2.9.11_pre20070505.ebuild: + Version bump based on the current sunrise ebuild, thanks to Jakub Moc + <jakub@gentoo.org> (see bugs #178030 and #178173). 06 May 2007; Marius Mauch <genone@gentoo.org> slmodem-2.9.11_pre20061021-r2.ebuild: Replacing einfo with elog +*slmodem-2.9.11_pre20070505 (16 May 2007) + + 16 May 2007; Alin Năstac <mrness@gentoo.org> files/slmodem-modules, + +files/slmodem-ungrab-winmodem-hp500.patch, +files/slusb-udev.script, + +slmodem-2.9.11_pre20070505.ebuild: + Version bump based on the current sunrise ebuild, thanks to Jakub Moc + <jakub@gentoo.org> (see bugs #178030 and #178173). + *slmodem-2.9.11_pre20061021-r2 (14 Mar 2007) 14 Mar 2007; Alin Năstac <mrness@gentoo.org> files/slmodem-initd, diff --git a/net-dialup/slmodem/Manifest b/net-dialup/slmodem/Manifest index b7dd1e6219ea..d95b69d50aed 100644 --- a/net-dialup/slmodem/Manifest +++ b/net-dialup/slmodem/Manifest @@ -1,3 +1,6 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + AUX slmodem-2.9.11-kernel-2.6.19.patch 1232 RMD160 44b02574314ec5da34f1a6d5aa064246d33520cc SHA1 cc050ae29f4282dd6f1984184c20f11de6b5f63e SHA256 4deec71a6381a3983493e4d3d8b1b955a8e230545765e49d7c6d203ac3e12aee MD5 8e8c7d5d64825f7b452818a4d072649c files/slmodem-2.9.11-kernel-2.6.19.patch 1232 RMD160 44b02574314ec5da34f1a6d5aa064246d33520cc files/slmodem-2.9.11-kernel-2.6.19.patch 1232 @@ -14,24 +17,38 @@ AUX slmodem-initd 2150 RMD160 555400137ea686b7aabe8094f7df1d95fb47ad75 SHA1 aeef MD5 c60748e5a33c4cbc953a124267a78b90 files/slmodem-initd 2150 RMD160 555400137ea686b7aabe8094f7df1d95fb47ad75 files/slmodem-initd 2150 SHA256 f3bd184b5e6d500040bb6e437538ea38bf8207fd2d2808d0af2af0c5a2c270bd files/slmodem-initd 2150 -AUX slmodem-modules 106 RMD160 41b949de0d6a2c47d0227c97b065336cc54ed50e SHA1 933fbb37e99e26b838d508c177cf69097903c36b SHA256 0ae1432fbae6e517190a841a6ae09806f24c16614e845d2e814a568285d96a7f -MD5 e91d1df68be76c531a8514dba77c1886 files/slmodem-modules 106 -RMD160 41b949de0d6a2c47d0227c97b065336cc54ed50e files/slmodem-modules 106 -SHA256 0ae1432fbae6e517190a841a6ae09806f24c16614e845d2e814a568285d96a7f files/slmodem-modules 106 +AUX slmodem-modules 640 RMD160 a25293786993d2d31e9c28654707d888754fda96 SHA1 b0392e449e7ef7a2bb305a5ee485c33a55b78011 SHA256 4294828807f82e0451e9f7fdf178f29eb58406d275a0fb5ec9977eb2cc5f72f8 +MD5 63c13cfeb821084cdabb6334b1265b5b files/slmodem-modules 640 +RMD160 a25293786993d2d31e9c28654707d888754fda96 files/slmodem-modules 640 +SHA256 4294828807f82e0451e9f7fdf178f29eb58406d275a0fb5ec9977eb2cc5f72f8 files/slmodem-modules 640 +AUX slmodem-ungrab-winmodem-hp500.patch 1096 RMD160 8f1f16841e02b1473748452a3fd28544e2a41ac7 SHA1 3cb29893ba6507de2c5933fe1f3191ffdacf3bdb SHA256 6e95b2c8c47002016f491d02edd348d8883a2ffc522d90f37b14739158d24cf7 +MD5 cc2cd6909e5d51dcc4fcd4094ce931a8 files/slmodem-ungrab-winmodem-hp500.patch 1096 +RMD160 8f1f16841e02b1473748452a3fd28544e2a41ac7 files/slmodem-ungrab-winmodem-hp500.patch 1096 +SHA256 6e95b2c8c47002016f491d02edd348d8883a2ffc522d90f37b14739158d24cf7 files/slmodem-ungrab-winmodem-hp500.patch 1096 +AUX slusb-udev.script 257 RMD160 62a2d7d4ec28622e89b0dfb045b570a2687e1c9a SHA1 8f3e63fc953d036fcc47755ec399a6510cf22ce3 SHA256 e93d7a46309898cb6e578f5e56e8b25753b4c371260466b10875034cca96480a +MD5 543b775e9eaf20cc5a6c9a23a27744bb files/slusb-udev.script 257 +RMD160 62a2d7d4ec28622e89b0dfb045b570a2687e1c9a files/slusb-udev.script 257 +SHA256 e93d7a46309898cb6e578f5e56e8b25753b4c371260466b10875034cca96480a files/slusb-udev.script 257 AUX slusb.hotplug 262 RMD160 6ccb14b19191da17b0352525399ec8560eb89c04 SHA1 79d922f24852a17385ff4ac82f586ca0ad477f3f SHA256 1806e732086915be8ca3c43d0abaf73bdde945eb1e11bd24a12c7309be4cdfed MD5 a5c2c40e3a6c4665033c97bb9088f03d files/slusb.hotplug 262 RMD160 6ccb14b19191da17b0352525399ec8560eb89c04 files/slusb.hotplug 262 SHA256 1806e732086915be8ca3c43d0abaf73bdde945eb1e11bd24a12c7309be4cdfed files/slusb.hotplug 262 DIST slmodem-2.9.11-20061021.tar.gz 839050 RMD160 7f307d5267e2c9ecb165b34ccb0432032122eb6d SHA1 f8fc8a88399a2332cdeb2f319b58aa1d058a1487 SHA256 7516ee6fbf897a1fad5689f4cb6ec03b1b459fc53e72cebd1f641d1a25916c98 +DIST slmodem-2.9.11-20070505.tar.gz 840019 RMD160 9b052bd749a96771060a63f2f27289287bf06f38 SHA1 3eee8eab39ba567f74c950edaa95993ddfefabf8 SHA256 616a5d8cefb2fadec085c19a17a8e38a8c51d836fe4c813e874636f915249adc +DIST ungrab-winmodem-20070505.tar.gz 2254 RMD160 51b71b203688004718826f23dc2485223d8b4a17 SHA1 a89f3bcb2519b4d8413eac45aa984be19f2f49b4 SHA256 9fd9287638f89c17733bb4a6c981b00446f0be18589a71f10f69fca5006a7781 DIST ungrab-winmodem.tar.gz 1872 RMD160 c7058f884ddf6345ddcd15c984364f4741464fbf SHA1 d8c48969fd840b4f7b15f9d6b269470a44e4eed0 SHA256 b9d966fa13b05876c2921f4bd030dfb151e6810958202010fab661d1689e4e11 -EBUILD slmodem-2.9.11_pre20061021-r2.ebuild 4740 RMD160 e56b3aa4d9b4045519ff4f3c8197c5875fd81172 SHA1 8ebd6c32d431c2b9d7a2ee176eb02563939aae0a SHA256 1fd8f2968c26c9f0db5b2c4685589569dc6d1482baec5c234b9759f565acdc15 -MD5 dfa43af49f9cc8b499ae65c04fa17bf9 slmodem-2.9.11_pre20061021-r2.ebuild 4740 -RMD160 e56b3aa4d9b4045519ff4f3c8197c5875fd81172 slmodem-2.9.11_pre20061021-r2.ebuild 4740 -SHA256 1fd8f2968c26c9f0db5b2c4685589569dc6d1482baec5c234b9759f565acdc15 slmodem-2.9.11_pre20061021-r2.ebuild 4740 -MISC ChangeLog 17873 RMD160 cb57687657ad1de75ee178786099b2b8ee592633 SHA1 5c6dc582931355f18e2327a10ab3158ca38bbb82 SHA256 19a9ee88897c7b61797456513626ce36628a54d0ce63c03df6c7134c7f56857d -MD5 e75221581cb3a5090843c1c5abdc5b75 ChangeLog 17873 -RMD160 cb57687657ad1de75ee178786099b2b8ee592633 ChangeLog 17873 -SHA256 19a9ee88897c7b61797456513626ce36628a54d0ce63c03df6c7134c7f56857d ChangeLog 17873 +EBUILD slmodem-2.9.11_pre20061021-r2.ebuild 4739 RMD160 99576e78f173c803e0c1750c0535d4cf98098cb2 SHA1 a30ff3623ae33e51872be7e9f2d108bde1fb99c4 SHA256 638bc58352877b64d5c9f62874b6236fd711a2b62fdbf27fbb9c02bc8b8fdb62 +MD5 c222026ee4488bf7c5e772883971fdd1 slmodem-2.9.11_pre20061021-r2.ebuild 4739 +RMD160 99576e78f173c803e0c1750c0535d4cf98098cb2 slmodem-2.9.11_pre20061021-r2.ebuild 4739 +SHA256 638bc58352877b64d5c9f62874b6236fd711a2b62fdbf27fbb9c02bc8b8fdb62 slmodem-2.9.11_pre20061021-r2.ebuild 4739 +EBUILD slmodem-2.9.11_pre20070505.ebuild 4510 RMD160 65c29b80916981b14412f427c4d0de90e1bbac03 SHA1 16dba72d5fab047826791e892fd5404b59ec49ce SHA256 437c81bddc219e251224832421864d8654a962754ef8ccf8a219216182146679 +MD5 adbf2e76b4b4a8bc79efd34058ead1a2 slmodem-2.9.11_pre20070505.ebuild 4510 +RMD160 65c29b80916981b14412f427c4d0de90e1bbac03 slmodem-2.9.11_pre20070505.ebuild 4510 +SHA256 437c81bddc219e251224832421864d8654a962754ef8ccf8a219216182146679 slmodem-2.9.11_pre20070505.ebuild 4510 +MISC ChangeLog 18573 RMD160 83026d8e6d7c93f76caab6c05fd10e4d13b45e24 SHA1 5daa7f5fce3bc594dad4017a9bf8fb8d6f9703ba SHA256 26691d744d7079c088019ba0435dd1742b98f9939be3b3bfe0d91bedc212927c +MD5 9fb3ed7f660bdcec5bf3fe277db93ffe ChangeLog 18573 +RMD160 83026d8e6d7c93f76caab6c05fd10e4d13b45e24 ChangeLog 18573 +SHA256 26691d744d7079c088019ba0435dd1742b98f9939be3b3bfe0d91bedc212927c ChangeLog 18573 MISC metadata.xml 163 RMD160 df94c60cc0bb7abe5913b464a33966b142b2fe1e SHA1 d8332605fd22c32f15438bbdf24aa622c3d2738a SHA256 1137a0fd866641cf719b0c2e9e77ca9fa4541a42f2cc851fe4659cf2677acca3 MD5 ec2f84816306825d125d0c01bd86758d metadata.xml 163 RMD160 df94c60cc0bb7abe5913b464a33966b142b2fe1e metadata.xml 163 @@ -39,3 +56,13 @@ SHA256 1137a0fd866641cf719b0c2e9e77ca9fa4541a42f2cc851fe4659cf2677acca3 metadata MD5 1e86c27a40bdda7df7e235d0495dbc5d files/digest-slmodem-2.9.11_pre20061021-r2 512 RMD160 e1732463bba377a01a9845a6705e32ea4816655d files/digest-slmodem-2.9.11_pre20061021-r2 512 SHA256 55e9c497a14ce5058ab1b24c2540bded458b7bcb88bece092aebc0d6f1a301f3 files/digest-slmodem-2.9.11_pre20061021-r2 512 +MD5 222b3ae611685ac69d6db7665a8efb0f files/digest-slmodem-2.9.11_pre20070505 539 +RMD160 b7c19dad4b797f3541d4e789c5cd49739fba0b89 files/digest-slmodem-2.9.11_pre20070505 539 +SHA256 2c097e4e5141c283e1d23b5ff7401152b86c95db57177e6de0cd62f6f26c0887 files/digest-slmodem-2.9.11_pre20070505 539 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.3 (GNU/Linux) + +iD8DBQFGSuDQJnxX6mF440QRAucYAJ9zdvsBB97EWlC7FoquK1YiiCLFxQCgn2Gy ++xtrfb83OcEF1a5NDcxdxHs= +=0fgZ +-----END PGP SIGNATURE----- diff --git a/net-dialup/slmodem/files/digest-slmodem-2.9.11_pre20070505 b/net-dialup/slmodem/files/digest-slmodem-2.9.11_pre20070505 new file mode 100644 index 000000000000..18cce0d9d83c --- /dev/null +++ b/net-dialup/slmodem/files/digest-slmodem-2.9.11_pre20070505 @@ -0,0 +1,6 @@ +MD5 150c089024501e93e640c898aba2debf slmodem-2.9.11-20070505.tar.gz 840019 +RMD160 9b052bd749a96771060a63f2f27289287bf06f38 slmodem-2.9.11-20070505.tar.gz 840019 +SHA256 616a5d8cefb2fadec085c19a17a8e38a8c51d836fe4c813e874636f915249adc slmodem-2.9.11-20070505.tar.gz 840019 +MD5 748bfc7387006293f9eddde119fa9d6f ungrab-winmodem-20070505.tar.gz 2254 +RMD160 51b71b203688004718826f23dc2485223d8b4a17 ungrab-winmodem-20070505.tar.gz 2254 +SHA256 9fd9287638f89c17733bb4a6c981b00446f0be18589a71f10f69fca5006a7781 ungrab-winmodem-20070505.tar.gz 2254 diff --git a/net-dialup/slmodem/files/slmodem-modules b/net-dialup/slmodem/files/slmodem-modules index 3a49fedcaee6..c751b6ccb47a 100644 --- a/net-dialup/slmodem/files/slmodem-modules +++ b/net-dialup/slmodem/files/slmodem-modules @@ -2,3 +2,12 @@ alias char-major-242 slamr alias char-major-243 slusb + +# If you see message like this in dmesg output: +# device 10b9:5457 is grabbed by driver serial +# then try uncommenting the two lines at the bottom, run update-modules and reboot. +# After reboot, check dmesg output again, you should see a message like this instead: +# device 10b9:5457 is grabbed by driver serial: try to release + +# install slamr modprobe --ignore-install ungrab-winmodem ; sleep 5 ; modprobe --ignore-install slamr +# install slusb modprobe --ignore-install ungrab-winmodem ; sleep 5 ; modprobe --ignore-install slusb diff --git a/net-dialup/slmodem/files/slmodem-ungrab-winmodem-hp500.patch b/net-dialup/slmodem/files/slmodem-ungrab-winmodem-hp500.patch new file mode 100644 index 000000000000..3d4461a69539 --- /dev/null +++ b/net-dialup/slmodem/files/slmodem-ungrab-winmodem-hp500.patch @@ -0,0 +1,27 @@ +--- ungrab-winmodem-20070505/ungrab-winmodem.c 2007-05-11 13:15:25.000000000 +0200 ++++ ungrab-winmodem-20070505/ungrab-winmodem.c 2007-05-11 13:14:40.000000000 +0200 +@@ -20,6 +20,7 @@ + #include <linux/pci.h> + #include <linux/kernel.h> + ++#define PCI_DEVICE_ID_HP5457 0x266d + #define PCI_DEVICE_ID_ALI5457 0x5457 + #define PCI_DEVICE_ID_ALI5459 0x5459 + #define PCI_DEVICE_ID_ALI545A 0x545A +@@ -28,6 +29,7 @@ + #define PCI_VENDOR_ID_SMARTLINK_1 0x163c + #define PCI_VENDOR_ID_SMARTLINK_2 0x10a5 + #define PCI_VENDOR_ID_SMARTLINK_3 0x2003 ++#define PCI_VENDOR_ID_SMARTLINK_4 0x8086 + #define PCI_DEVICE_ID_SL2800 0x2800 + #define PCI_DEVICE_ID_SL1900 0x3052 + #define PCI_DEVICE_ID_ND92XPA 0x8800 /* ND92XPA */ +@@ -48,6 +50,8 @@ + {PCI_VENDOR_ID_SMARTLINK, PCI_DEVICE_ID_SL2800, PCI_ANY_ID, PCI_ANY_ID }, + /* 2003:8800 */ + {PCI_VENDOR_ID_SMARTLINK_3, PCI_DEVICE_ID_ND92XPA, PCI_ANY_ID, PCI_ANY_ID }, ++ /* 266d:8086 */ ++ {PCI_VENDOR_ID_SMARTLINK_4, PCI_DEVICE_ID_HP5457, PCI_ANY_ID, PCI_ANY_ID }, + /* pctel HSP1688 */ + { 0x134d, 0x2189, PCI_ANY_ID, PCI_ANY_ID }, + {0,} diff --git a/net-dialup/slmodem/files/slusb-udev.script b/net-dialup/slmodem/files/slusb-udev.script new file mode 100644 index 000000000000..240dab2c9876 --- /dev/null +++ b/net-dialup/slmodem/files/slusb-udev.script @@ -0,0 +1,17 @@ +#!/bin/sh + +script /etc/init.d/slmodem +source /etc/conf.d/slmodem + +if [ -z "${USBMOD}" ] ; then + MODULE="slusb" +else + MODULE=${USBMOD} +fi + +if $script --quiet status; then + $script stop +elif + ! $script --quiet status; then + $script start +fi diff --git a/net-dialup/slmodem/slmodem-2.9.11_pre20061021-r2.ebuild b/net-dialup/slmodem/slmodem-2.9.11_pre20061021-r2.ebuild index 65a7b5557eb1..d886cf17bcc3 100644 --- a/net-dialup/slmodem/slmodem-2.9.11_pre20061021-r2.ebuild +++ b/net-dialup/slmodem/slmodem-2.9.11_pre20061021-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-dialup/slmodem/slmodem-2.9.11_pre20061021-r2.ebuild,v 1.2 2007/05/06 08:12:57 genone Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dialup/slmodem/slmodem-2.9.11_pre20061021-r2.ebuild,v 1.3 2007/05/16 10:44:58 mrness Exp $ inherit eutils linux-mod multilib @@ -146,7 +146,7 @@ pkg_postinst() { elog "You must edit /etc/conf.d/${PN} for your configuration" elog "To add slmodem to your startup - type : rc-update add slmodem default" elog - + if use alsa; then elog "I hope you have already added alsa to your startup: " elog "otherwise type: rc-update add alsasound boot" diff --git a/net-dialup/slmodem/slmodem-2.9.11_pre20070505.ebuild b/net-dialup/slmodem/slmodem-2.9.11_pre20070505.ebuild new file mode 100644 index 000000000000..9c97b23da00e --- /dev/null +++ b/net-dialup/slmodem/slmodem-2.9.11_pre20070505.ebuild @@ -0,0 +1,152 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/slmodem/slmodem-2.9.11_pre20070505.ebuild,v 1.1 2007/05/16 10:44:58 mrness Exp $ + +inherit eutils linux-mod multilib + +DESCRIPTION="Driver for Smart Link modem" +HOMEPAGE="http://linmodems.technion.ac.il/packages/smartlink/" +SRC_URI="http://linmodems.technion.ac.il/packages/smartlink/${P/_pre/-}.tar.gz + http://linmodems.technion.ac.il/packages/smartlink/ungrab-winmodem-${PV/*_pre/}.tar.gz" + +LICENSE="Smart-Link" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="alsa usb" + +DEPEND="alsa? ( media-libs/alsa-lib ) + amd64? ( app-emulation/emul-linux-x86-soundlibs )" + +QA_EXECSTACK="usr/sbin/slmodem_test usr/sbin/slmodemd" + +S="${WORKDIR}"/${P/_pre/-} + +pkg_setup() { + use amd64 && multilib_toolchain_setup x86 + + MODULE_NAMES="ungrab-winmodem(:${WORKDIR}/ungrab-winmodem-${PV/*_pre/})" + if ! use amd64; then + MODULE_NAMES="${MODULE_NAMES} slamr(net:${S}/drivers)" + if use usb; then + MODULE_NAMES="${MODULE_NAMES} slusb(net:${S}/drivers)" + CONFIG_CHECK="USB" + fi + fi + BUILD_TARGETS="all" + linux-mod_pkg_setup + BUILD_PARAMS="KERNEL_DIR=${KV_DIR}" +} + +src_unpack() { + unpack ${A} + cd "${WORKDIR}" + sed -i "s:SUBDIRS=\$(shell pwd):SUBDIRS=${WORKDIR}/ungrab-winmodem-${PV/*_pre/}:" \ + ungrab-winmodem-${PV/*_pre/}/Makefile + convert_to_m ungrab-winmodem-${PV/*_pre/}/Makefile + + epatch "${FILESDIR}"/${PN}-ungrab-winmodem-hp500.patch + + cd "${S}" + epatch "${FILESDIR}/${P%%_*}-makefile.patch" + + + cd "${S}"/drivers + sed -i "s:SUBDIRS=\$(shell pwd):SUBDIRS=${S}/drivers:" Makefile + convert_to_m Makefile + sed -i "s:.*=[ \t]*THIS_MODULE.*::" st7554.c amrmo_init.c old_st7554.c + sed -i 's:MODULE_PARM(\([^,]*\),"i");:module_param(\1, int, 0);:' st7554.c \ + amrmo_init.c old_st7554.c +} + +src_compile() { + local MAKE_PARAMS="" + if use alsa || use amd64; then + MAKE_PARAMS="SUPPORT_ALSA=1" + fi + emake ${MAKE_PARAMS} modem || die "failed to build modem" + + use amd64 && multilib_toolchain_setup amd64 + linux-mod_src_compile +} + +src_install() { + linux-mod_src_install + + cd "${S}" + newsbin modem/modem_test slmodem_test + dosbin modem/slmodemd + dodir /var/lib/slmodem + fowners root:dialout /var/lib/slmodem + keepdir /var/lib/slmodem + + newconfd "${FILESDIR}/slmodem-confd" ${PN} + newinitd "${FILESDIR}/slmodem-initd" ${PN} + + # configure for alsa - or not for alsa + if use alsa; then + sed -i -e "s/# MODULE=alsa/MODULE=alsa/" \ + -e "s/# HW_SLOT=modem:1/HW_SLOT=modem:1/" "${D}/etc/conf.d/slmodem" + else + sed -i "s/# MODULE=slamr/MODULE=slamr/" "${D}/etc/conf.d/slmodem" + fi + + + # Add module aliases and install hotplug script + insinto /etc/modules.d/ + newins "${FILESDIR}/slmodem-modules" ${PN} + if use usb; then + exeinto /$(get_libdir)/udev + newexe "${FILESDIR}/slusb-udev.script" slmodem_usb.sh + fi + + dodir /etc/modprobe.d + echo -e "blacklist slusb\nblacklist slamr\nblacklist snd-intel8x0m" >> "${D}/etc/modprobe.d/${PN}" + + # Add configuration for udev + dodir /etc/udev/rules.d/ + echo 'KERNEL=="slamr", NAME="slamr0" GROUP="dialout"' > \ + "${D}/etc/udev/rules.d/55-${PN}.rules" + if use usb; then + echo 'KERNEL=="slusb", NAME="slusb0" GROUP="dialout" RUN+="slmodem_usb.sh"' >> \ + "${D}/etc/udev/rules.d/55-${PN}.rules" + fi + + dodoc Changes README + newdoc "${WORKDIR}"/ungrab-winmodem-${PV/*_pre}/Readme.txt README-ungrab-winmodem.txt +} + +pkg_postinst() { + linux-mod_pkg_postinst + + # Make some devices if we aren't using devfs or udev + if [ -e "${ROOT}/dev/.udev" ]; then + ebegin "Reloading udev rules..." + udevcontrol reload_rules + eend $? + else + cd "${S}/drivers" + make DESTDIR="${ROOT}" install-devices + fi + + ewarn "To avoid problems, slusb/slamr have been blacklisted in /etc/modprobe.d/${PN}" + elog "You must edit /etc/conf.d/${PN} for your configuration" + elog "To add slmodem to your startup - type : rc-update add slmodem default" + elog + + if use alsa; then + elog "I hope you have already added alsa to your startup: " + elog "otherwise type: rc-update add alsasound boot" + elog + elog "If you need to use snd-intel8x0m from the kernel" + elog "compile it as a module and edit /etc/modules.d/alsa" + elog 'to: "alias snd-card-(number) snd-intel8x0m"' + elog + fi + + elog "You need to be in the uucp AND dialout group to make calls as a user." + elog + elog "If you see the following in dmesg:" + elog " slamr: device 10b9:5457 is grabbed by driver serial" + elog "you need to modprobe ungrab-winmodem before slamr" + elog "See /etc/modules.d/slmodem for details." +} |