diff options
author | Stefan Schweizer <genstef@gentoo.org> | 2005-10-15 11:08:37 +0000 |
---|---|---|
committer | Stefan Schweizer <genstef@gentoo.org> | 2005-10-15 11:08:37 +0000 |
commit | 8ede9a5fb9b20f24fc1c011ceb3da97542ea72b6 (patch) | |
tree | 9dbc9a0aa8989bc6ff0ee73548f70486a85f5247 /net-dialup/slmodem | |
parent | Stable on hppa, ppc. (diff) | |
download | historical-8ede9a5fb9b20f24fc1c011ceb3da97542ea72b6.tar.gz historical-8ede9a5fb9b20f24fc1c011ceb3da97542ea72b6.tar.bz2 historical-8ede9a5fb9b20f24fc1c011ceb3da97542ea72b6.zip |
Version bump, CFLAGS optimization, and amd64 support thanks to Tupone Alfredo <alfredo@tupone.it> in bug 106276
Package-Manager: portage-2.0.53_rc5
Diffstat (limited to 'net-dialup/slmodem')
-rw-r--r-- | net-dialup/slmodem/ChangeLog | 9 | ||||
-rw-r--r-- | net-dialup/slmodem/Manifest | 33 | ||||
-rw-r--r-- | net-dialup/slmodem/files/digest-slmodem-2.9.11_pre20051009 | 2 | ||||
-rw-r--r-- | net-dialup/slmodem/files/slmodem-amd64-Makefile.diff | 28 | ||||
-rw-r--r-- | net-dialup/slmodem/slmodem-2.9.11_pre20051009.ebuild | 153 |
5 files changed, 204 insertions, 21 deletions
diff --git a/net-dialup/slmodem/ChangeLog b/net-dialup/slmodem/ChangeLog index 8a0f04c7fb35..fdb1d3dafbcc 100644 --- a/net-dialup/slmodem/ChangeLog +++ b/net-dialup/slmodem/ChangeLog @@ -1,6 +1,13 @@ # 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.51 2005/10/04 20:16:33 mrness Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dialup/slmodem/ChangeLog,v 1.52 2005/10/15 11:08:37 genstef Exp $ + +*slmodem-2.9.11_pre20051009 (15 Oct 2005) + + 15 Oct 2005; Stefan Schweizer <genstef@gentoo.org> + +files/slmodem-amd64-Makefile.diff, +slmodem-2.9.11_pre20051009.ebuild: + Version bump, CFLAGS optimization, and amd64 support thanks to Tupone + Alfredo <alfredo@tupone.it> in bug 106276 04 Oct 2005; Alin Nastac <mrness@gentoo.org> slmodem-2.9.9d.ebuild, slmodem-2.9.11_pre20050816.ebuild: diff --git a/net-dialup/slmodem/Manifest b/net-dialup/slmodem/Manifest index 8abe72fc6ee0..bc4e541e8558 100644 --- a/net-dialup/slmodem/Manifest +++ b/net-dialup/slmodem/Manifest @@ -1,25 +1,18 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - -MD5 b2b21056f56133cae32bd313c57eccd2 slmodem-2.9.11_pre20050816.ebuild 4344 -MD5 d8bfc7e54bbf93358bef2ed665278ad0 slmodem-2.9.9d.ebuild 3552 -MD5 d3ced2e1ed762e15a291148ebd42a8da ChangeLog 12002 -MD5 e487a8ab7ec754f06a85f64f4aaa7540 metadata.xml 409 -MD5 a5c2c40e3a6c4665033c97bb9088f03d files/slusb.hotplug 262 -MD5 618a9ebd35ccb49bf34e6ea522afcb8b files/slmodem-class-simple-to-class.diff 6847 -MD5 e91d1df68be76c531a8514dba77c1886 files/slmodem-2.9.11.modules 106 -MD5 8834a62c67909059cef10887bfbcc853 files/slmodem-2.9.modules 494 -MD5 1a0b854bbe34e01e918b855b7c81ffba files/slmodem-2.9.conf 649 -MD5 3d00e935ef9592cf6538298cacd92a02 files/slmodem-2.9.init 2702 +MD5 f68beb535180251eeb010687253e6c41 ChangeLog 12290 MD5 8338cfc9815a953d85195bdccd9fbc97 files/digest-slmodem-2.9.11_pre20050816 140 +MD5 cae2ec761f3db78791ab4ec7f0e83d5b files/digest-slmodem-2.9.11_pre20051009 140 MD5 fd55ef399408a109742263cd5b4a5219 files/digest-slmodem-2.9.9d 66 +MD5 e91d1df68be76c531a8514dba77c1886 files/slmodem-2.9.11.modules 106 MD5 fd0f0a405fb7f059cc2f5078d54fd884 files/slmodem-2.9.9b-gcc4.patch 463 +MD5 1a0b854bbe34e01e918b855b7c81ffba files/slmodem-2.9.conf 649 MD5 c80ecf5c3d5605220e4b0055850260a5 files/slmodem-2.9.devfs 786 +MD5 3d00e935ef9592cf6538298cacd92a02 files/slmodem-2.9.init 2702 +MD5 8834a62c67909059cef10887bfbcc853 files/slmodem-2.9.modules 494 +MD5 1561aebe43beb20809e47ea1dd62115f files/slmodem-amd64-Makefile.diff 762 +MD5 618a9ebd35ccb49bf34e6ea522afcb8b files/slmodem-class-simple-to-class.diff 6847 MD5 9c47e598fd639d46a03493fe7a52595e files/slmodem-remove-URB_ASYNC_UNLINK.patch 436 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.1 (GNU/Linux) - -iD8DBQFDQuM9NSP4Vda7IdsRAmGDAJ90nfTnj0sG2VQkuHwtBwtxc0dmfgCfSMjt -ONjHnYkXsQI3X2//C/nJo9s= -=Vvpb ------END PGP SIGNATURE----- +MD5 a5c2c40e3a6c4665033c97bb9088f03d files/slusb.hotplug 262 +MD5 e487a8ab7ec754f06a85f64f4aaa7540 metadata.xml 409 +MD5 b2b21056f56133cae32bd313c57eccd2 slmodem-2.9.11_pre20050816.ebuild 4344 +MD5 2c199b5a99fbf92ba03af59c785abb72 slmodem-2.9.11_pre20051009.ebuild 4549 +MD5 d8bfc7e54bbf93358bef2ed665278ad0 slmodem-2.9.9d.ebuild 3552 diff --git a/net-dialup/slmodem/files/digest-slmodem-2.9.11_pre20051009 b/net-dialup/slmodem/files/digest-slmodem-2.9.11_pre20051009 new file mode 100644 index 000000000000..96c7de961cbb --- /dev/null +++ b/net-dialup/slmodem/files/digest-slmodem-2.9.11_pre20051009 @@ -0,0 +1,2 @@ +MD5 292fec9aab5b2225cc94acc3a3c2adf2 slmodem-2.9.11-20051009.tar.gz 833615 +MD5 a23326976632fe7774e110cbc0636f70 ungrab-winmodem.tar.gz 1872 diff --git a/net-dialup/slmodem/files/slmodem-amd64-Makefile.diff b/net-dialup/slmodem/files/slmodem-amd64-Makefile.diff new file mode 100644 index 000000000000..78034e3df7d4 --- /dev/null +++ b/net-dialup/slmodem/files/slmodem-amd64-Makefile.diff @@ -0,0 +1,28 @@ +diff -ur slmodem-2.9.11-20051009.orig/modem/Makefile slmodem-2.9.11-20051009/modem/Makefile +--- slmodem-2.9.11-20051009.orig/modem/Makefile 2005-10-15 12:40:18.000000000 +0200 ++++ slmodem-2.9.11-20051009/modem/Makefile 2005-10-15 12:42:20.000000000 +0200 +@@ -16,7 +16,7 @@ + CC:= gcc + RM:= rm -f + +-CFLAGS:= -Wall -g -O -I. -DCONFIG_DEBUG_MODEM ++CFLAGS+= -Wall -g -I. -DCONFIG_DEBUG_MODEM + + + modem-objs:= \ +@@ -33,12 +33,13 @@ + + #SUPPORT_ALSA:=1 + ifdef SUPPORT_ALSA +-slmodemd: -lasound + CFLAGS+= -DSUPPORT_ALSA=1 ++LDFLAGS+= -L/usr/lib ++LDLIBS+= -lasound + endif + + slmodemd modem_test: +- $(CC) -o $@ $^ ++ $(CC) -o $@ $(LDFLAGS) $^ $(LDLIBS) + + clean: + $(RM) slmodemd modem_test modem_main.o modem_cmdline.o modem_test.o $(modem-objs) $(dp-objs) $(sysdep-objs) diff --git a/net-dialup/slmodem/slmodem-2.9.11_pre20051009.ebuild b/net-dialup/slmodem/slmodem-2.9.11_pre20051009.ebuild new file mode 100644 index 000000000000..d104099643a7 --- /dev/null +++ b/net-dialup/slmodem/slmodem-2.9.11_pre20051009.ebuild @@ -0,0 +1,153 @@ +# 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_pre20051009.ebuild,v 1.1 2005/10/15 11:08:37 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}" + MODULESD_UNGRAB_WINMODEM_ENABLED="no" + MODULESD_SLAMR_ENABLED="no" + MODULESD_SLUSB_ENABLED="no" +} + +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 + epatch ${FILESDIR}/slmodem-remove-URB_ASYNC_UNLINK.patch + epatch ${FILESDIR}/slmodem-amd64-Makefile.diff +} + +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.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/module.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" +} |