summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Drake <dsd@gentoo.org>2005-01-21 21:12:22 +0000
committerDaniel Drake <dsd@gentoo.org>2005-01-21 21:12:22 +0000
commit6e31dfb7b4f180697c2486c7d4c804753838a38f (patch)
tree73d08dc8476e05701b298d77d122de63e78f21f7
parentStable on sparc (diff)
downloadgentoo-2-6e31dfb7b4f180697c2486c7d4c804753838a38f.tar.gz
gentoo-2-6e31dfb7b4f180697c2486c7d4c804753838a38f.tar.bz2
gentoo-2-6e31dfb7b4f180697c2486c7d4c804753838a38f.zip
Stable on x86
(Portage version: 2.0.51-r14)
-rw-r--r--net-dialup/slmodem/ChangeLog6
-rw-r--r--net-dialup/slmodem/files/digest-slmodem-2.9.9a1
-rw-r--r--net-dialup/slmodem/slmodem-2.9.9a-r1.ebuild4
-rw-r--r--net-dialup/slmodem/slmodem-2.9.9a.ebuild135
4 files changed, 7 insertions, 139 deletions
diff --git a/net-dialup/slmodem/ChangeLog b/net-dialup/slmodem/ChangeLog
index 1453c79b1819..209e56460b49 100644
--- a/net-dialup/slmodem/ChangeLog
+++ b/net-dialup/slmodem/ChangeLog
@@ -1,6 +1,10 @@
# 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.38 2005/01/21 16:09:20 dsd Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/slmodem/ChangeLog,v 1.39 2005/01/21 21:12:22 dsd Exp $
+
+ 22 Jan 2005; Daniel Drake <dsd@gentoo.org> slmodem-2.9.9a-r1.ebuild,
+ -slmodem-2.9.9a.ebuild:
+ Stable on x86
*slmodem-2.9.9a-r1 (21 Jan 2005)
diff --git a/net-dialup/slmodem/files/digest-slmodem-2.9.9a b/net-dialup/slmodem/files/digest-slmodem-2.9.9a
deleted file mode 100644
index e1578e200497..000000000000
--- a/net-dialup/slmodem/files/digest-slmodem-2.9.9a
+++ /dev/null
@@ -1 +0,0 @@
-MD5 2330415f6b60b4eb4593592abb09da7b slmodem-2.9.9a.tar.gz 709728
diff --git a/net-dialup/slmodem/slmodem-2.9.9a-r1.ebuild b/net-dialup/slmodem/slmodem-2.9.9a-r1.ebuild
index e0cb4bfa18d4..63fab5b20a1c 100644
--- a/net-dialup/slmodem/slmodem-2.9.9a-r1.ebuild
+++ b/net-dialup/slmodem/slmodem-2.9.9a-r1.ebuild
@@ -1,6 +1,6 @@
# 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.9a-r1.ebuild,v 1.1 2005/01/21 16:09:20 dsd Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/slmodem/slmodem-2.9.9a-r1.ebuild,v 1.2 2005/01/21 21:12:22 dsd Exp $
inherit eutils linux-mod
@@ -9,7 +9,7 @@ HOMEPAGE="http://linmodems.technion.ac.il/packages/smartlink/"
SRC_URI="http://linmodems.technion.ac.il/packages/smartlink/${P}.tar.gz"
LICENSE="Smart-Link"
SLOT="0"
-KEYWORDS="~x86 -*"
+KEYWORDS="x86 -*"
IUSE="alsa usb"
DEPEND="virtual/libc
diff --git a/net-dialup/slmodem/slmodem-2.9.9a.ebuild b/net-dialup/slmodem/slmodem-2.9.9a.ebuild
deleted file mode 100644
index ad2b427ab26a..000000000000
--- a/net-dialup/slmodem/slmodem-2.9.9a.ebuild
+++ /dev/null
@@ -1,135 +0,0 @@
-# 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.9a.ebuild,v 1.2 2005/01/18 21:42:31 dsd Exp $
-
-inherit eutils linux-mod
-
-DESCRIPTION="Driver for Smart Link modem"
-HOMEPAGE="http://linmodems.technion.ac.il/packages/smartlink/"
-SRC_URI="http://linmodems.technion.ac.il/packages/smartlink/${P}.tar.gz"
-LICENSE="Smart-Link"
-SLOT="0"
-KEYWORDS="x86 -*"
-IUSE="alsa usb"
-
-DEPEND="virtual/libc
- alsa? ( media-libs/alsa-lib )
- >=sys-apps/sed-4"
-
-RDEPEND="virtual/libc
- alsa? ( media-libs/alsa-lib )"
-
-pkg_setup() {
- MODULE_NAMES="slamr(extra:${S}/drivers)"
- useq usb && MODULE_NAMES="${MODULE_NAMES} slusb(extra:${S}/drivers)"
- BUILD_TARGETS="all"
-
- local CONFIG_CHECK=""
- if useq alsa; then
- CONFIG_CHECK="${CONFIG_CHECK} SND"
- fi
- if useq usb; then
- CONFIG_CHECK="${CONFIG_CHECK} USB"
- fi
-
- linux-mod_pkg_setup
- BUILD_PARAMS="KERNEL_DIR=${KV_DIR}"
-}
-
-src_unpack() {
- unpack ${A}
- cd ${S}
-
- epatch ${FILESDIR}/${PN}-usb_endpoint_halted-gentoo.patch || die "failed to apply usb_endpoint patch"
-
- convert_to_m drivers/Makefile
-}
-
-src_compile() {
- local MAKE_PARAMS=""
- if useq alsa; then
- MAKE_PARAMS="SUPPORT_ALSA=1"
- fi
- emake ${MAKE_PARAMS} modem || die "failed to build modem"
-
- 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
-
- 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}
- 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}
- 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
- fi
-
- #Create device nodes, add module aliases and install hotplug script
- make -C drivers DESTDIR=${D} KERNEL_DIR="${ROOT}/usr/src/linux" install-devices
- insinto /etc/modules.d/; insopts -m0644; newins ${FILESDIR}/${PN}-2.9.modules ${PN}
- useq usb &&
- ( insinto /etc/hotplug/usb; insopts -m0755; newins ${FILESDIR}/slusb.hotplug slusb )
-
- dodir /etc/hotplug/blacklist.d
- echo -e "slusb\nslamr\nsnd-intel8x0m" >> ${D}/etc/hotplug/blacklist.d/55-${PN}
-}
-
-pkg_postinst() {
- linux-mod_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 $?
-
- elif [ -e ${ROOT}/dev/.udev ]; then
- ebegin "Restarting udev to reread udev rules"
- udevstart
- eend $?
- 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/module.d/alsa"
- einfo 'to: "alias snd-card-(number) snd-intel8x0m"'
- fi
-}