summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schweizer <genstef@gentoo.org>2005-11-06 13:58:42 +0000
committerStefan Schweizer <genstef@gentoo.org>2005-11-06 13:58:42 +0000
commit4c079b471c16e813cdf5bb08bcf2d762ec5bc8ce (patch)
treedc9b592e9553bd072b75678fda005c71df27e648 /net-dialup/slmodem
parentstable on amd64 wrt bug 111032 (diff)
downloadgentoo-2-4c079b471c16e813cdf5bb08bcf2d762ec5bc8ce.tar.gz
gentoo-2-4c079b471c16e813cdf5bb08bcf2d762ec5bc8ce.tar.bz2
gentoo-2-4c079b471c16e813cdf5bb08bcf2d762ec5bc8ce.zip
version bump
(Portage version: 2.0.53_rc7)
Diffstat (limited to 'net-dialup/slmodem')
-rw-r--r--net-dialup/slmodem/ChangeLog8
-rw-r--r--net-dialup/slmodem/Manifest2
-rw-r--r--net-dialup/slmodem/files/digest-slmodem-2.9.11_pre200511012
-rw-r--r--net-dialup/slmodem/slmodem-2.9.11_pre20051101.ebuild151
4 files changed, 162 insertions, 1 deletions
diff --git a/net-dialup/slmodem/ChangeLog b/net-dialup/slmodem/ChangeLog
index 2028ffefc65d..4175a9541823 100644
--- a/net-dialup/slmodem/ChangeLog
+++ b/net-dialup/slmodem/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-dialup/slmodem
# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-dialup/slmodem/ChangeLog,v 1.54 2005/10/22 22:45:06 genstef Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/slmodem/ChangeLog,v 1.55 2005/11/06 13:58:42 genstef Exp $
+
+*slmodem-2.9.11_pre20051101 (06 Nov 2005)
+
+ 06 Nov 2005; Stefan Schweizer <genstef@gentoo.org>
+ +slmodem-2.9.11_pre20051101.ebuild:
+ version bump
*slmodem-2.9.11_pre20051009-r1 (22 Oct 2005)
diff --git a/net-dialup/slmodem/Manifest b/net-dialup/slmodem/Manifest
index 553a2df7fa9c..ab1d96b8ca9c 100644
--- a/net-dialup/slmodem/Manifest
+++ b/net-dialup/slmodem/Manifest
@@ -2,6 +2,7 @@ MD5 c0a2b060e89d0375f0967bd2408cc7c7 ChangeLog 12719
MD5 8338cfc9815a953d85195bdccd9fbc97 files/digest-slmodem-2.9.11_pre20050816 140
MD5 cae2ec761f3db78791ab4ec7f0e83d5b files/digest-slmodem-2.9.11_pre20051009 140
MD5 cae2ec761f3db78791ab4ec7f0e83d5b files/digest-slmodem-2.9.11_pre20051009-r1 140
+MD5 66a7f4e6682670216c1497606c9c600b files/digest-slmodem-2.9.11_pre20051101 140
MD5 fd55ef399408a109742263cd5b4a5219 files/digest-slmodem-2.9.9d 66
MD5 67168d0e7a1be3e5041ec3cb8dabb50d files/slmodem-2.9.11.init 2182
MD5 e91d1df68be76c531a8514dba77c1886 files/slmodem-2.9.11.modules 106
@@ -18,4 +19,5 @@ MD5 e487a8ab7ec754f06a85f64f4aaa7540 metadata.xml 409
MD5 efbbb8c40614e5c3d370b0c55eb6b67e slmodem-2.9.11_pre20050816.ebuild 4345
MD5 d674ea9e8c47078b3bc481b565f1998f slmodem-2.9.11_pre20051009-r1.ebuild 4556
MD5 54c73f3777213c30e2a93b7ff18bd711 slmodem-2.9.11_pre20051009.ebuild 4549
+MD5 a55e04c422f7f05b9a6a5085db5d5aca slmodem-2.9.11_pre20051101.ebuild 4494
MD5 da3f5db025a3799ee1bdf5b9eef53601 slmodem-2.9.9d.ebuild 3553
diff --git a/net-dialup/slmodem/files/digest-slmodem-2.9.11_pre20051101 b/net-dialup/slmodem/files/digest-slmodem-2.9.11_pre20051101
new file mode 100644
index 000000000000..04107a868eff
--- /dev/null
+++ b/net-dialup/slmodem/files/digest-slmodem-2.9.11_pre20051101
@@ -0,0 +1,2 @@
+MD5 56bb1ddf621b2fe26caf746aed0ac26f slmodem-2.9.11-20051101.tar.gz 833644
+MD5 a23326976632fe7774e110cbc0636f70 ungrab-winmodem.tar.gz 1872
diff --git a/net-dialup/slmodem/slmodem-2.9.11_pre20051101.ebuild b/net-dialup/slmodem/slmodem-2.9.11_pre20051101.ebuild
new file mode 100644
index 000000000000..3502aea050c6
--- /dev/null
+++ b/net-dialup/slmodem/slmodem-2.9.11_pre20051101.ebuild
@@ -0,0 +1,151 @@
+# Copyright 1999-2005 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_pre20051101.ebuild,v 1.1 2005/11/06 13:58:42 genstef 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.tar.gz"
+LICENSE="Smart-Link"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE="alsa usb"
+
+RDEPEND="virtual/libc
+ alsa? ( media-libs/alsa-lib )
+ amd64? ( app-emulation/emul-linux-x86-soundlibs )"
+
+DEPEND="${RDEPEND}
+ >=sys-apps/sed-4"
+S=${WORKDIR}/${P/_pre/-}
+
+pkg_setup() {
+ has_multilib_profile && ABI=x86
+
+ MODULE_NAMES="ungrab-winmodem(:${WORKDIR}/ungrab-winmodem)"
+ 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}
+ sed -i "s:SUBDIRS=\$(shell pwd):SUBDIRS=${WORKDIR}/ungrab-winmodem:" \
+ ${WORKDIR}/ungrab-winmodem/Makefile
+ convert_to_m ${WORKDIR}/ungrab-winmodem/Makefile
+
+ cd ${S}
+ sed -i "s:SUBDIRS=\$(shell pwd):SUBDIRS=${S}/drivers:" \
+ ${S}/drivers/Makefile
+ convert_to_m ${S}/drivers/Makefile
+ sed -i "s: -O::" ${S}/modem/Makefile
+ sed -i "s:LFLAGS:LDFLAGS:" ${S}/modem/Makefile
+ sed -i "s/^slmodemd: -lasound$//" ${S}/modem/Makefile
+}
+
+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"
+
+ has_multilib_profile && ABI=${DEFAULT_ABI}
+ 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
+
+ insinto /etc/conf.d/; newins ${FILESDIR}/${PN}-2.9.conf ${PN}
+ exeinto /etc/init.d/; newexe ${FILESDIR}/${PN}-2.9.11.init ${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}/${PN}-2.9.11.modules ${PN}
+ if use usb; then
+ exeinto /etc/hotplug/usb; newexe ${FILESDIR}/slusb.hotplug slusb
+ fi
+
+ dodir /etc/hotplug/blacklist.d
+ echo -e "slusb\nslamr\nsnd-intel8x0m" >> ${D}/etc/hotplug/blacklist.d/${PN}
+
+ # Add configuration for devfs, udev
+ if [ -e ${ROOT}/dev/.devfsd ] ; then
+ insinto /etc/devfs.d/; newins ${FILESDIR}/${PN}-2.9.devfs ${PN}
+ elif [ -e ${ROOT}/dev/.udev ] ; then
+ dodir /etc/udev/rules.d/
+ echo 'KERNEL="slamr", NAME="slamr0" GROUP="dialout"' > \
+ ${D}/etc/udev/rules.d/55-${PN}.rules
+ echo 'KERNEL="slusb", NAME="slusb0" GROUP="dialout"' >> \
+ ${D}/etc/udev/rules.d/55-${PN}.rules
+ fi
+
+ dodoc Changes README ${WORKDIR}/ungrab-winmodem/Readme.txt
+}
+
+pkg_postinst() {
+ linux-mod_pkg_postinst
+
+ # Make some devices if we aren't using devfs or udev
+ if [ -e ${ROOT}/dev/.devfsd ]; then
+ ebegin "Restarting devfsd to reread devfs rules"
+ killall -HUP devfsd
+ eend $?
+
+ elif [ -e ${ROOT}/dev/.udev ]; then
+ ebegin "Restarting udev to reread udev rules"
+ udevstart
+ eend $?
+ else
+ cd ${S}/drivers
+ make DESTDIR=${ROOT} install-devices
+ fi
+
+ if [ ! -e ${ROOT}/dev/ppp ]; then
+ mknod ${ROOT}/dev/ppp c 108 0
+ fi
+
+ ewarn "To avoid problems, slusb/slamr have been added to /etc/hotplug/blacklist"
+ einfo "You must edit /etc/conf.d/${PN} for your configuration"
+ 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/modules.d/alsa"
+ einfo 'to: "alias snd-card-(number) snd-intel8x0m"'
+ fi
+
+ einfo "You need to be in the uucp AND dialout group to make calls as a user."
+ einfo
+ einfo "If you see the following in dmesg:"
+ echo slamr: device 10b9:5457 is grabbed by driver serial
+ einfo "you need to modprobe ungrab-winmodem before slamr"
+}