diff options
author | Donnie Berkholz <spyderous@gentoo.org> | 2003-10-29 05:13:03 +0000 |
---|---|---|
committer | Donnie Berkholz <spyderous@gentoo.org> | 2003-10-29 05:13:03 +0000 |
commit | c5e31325898a4cac965644b6d6cdfec552075fb6 (patch) | |
tree | 94c0aad088374d0ed68ac2c0a4f558cd68c9f120 /net-dialup | |
parent | Initial commit. I wrote the ebuild. (diff) | |
download | gentoo-2-c5e31325898a4cac965644b6d6cdfec552075fb6.tar.gz gentoo-2-c5e31325898a4cac965644b6d6cdfec552075fb6.tar.bz2 gentoo-2-c5e31325898a4cac965644b6d6cdfec552075fb6.zip |
Initial commit. I wrote the ebuild.
Diffstat (limited to 'net-dialup')
-rw-r--r-- | net-dialup/slmodem/ChangeLog | 11 | ||||
-rw-r--r-- | net-dialup/slmodem/Manifest | 12 | ||||
-rw-r--r-- | net-dialup/slmodem/files/digest-slmodem-2.7.14 | 1 | ||||
-rw-r--r-- | net-dialup/slmodem/files/slmodem-2.7.14-makefile-fixup.patch | 44 | ||||
-rw-r--r-- | net-dialup/slmodem/files/slmodem-2.7.devfs | 7 | ||||
-rw-r--r-- | net-dialup/slmodem/files/slmodem-2.7.modules | 21 | ||||
-rw-r--r-- | net-dialup/slmodem/metadata.xml | 9 | ||||
-rw-r--r-- | net-dialup/slmodem/slmodem-2.7.14.ebuild | 60 |
8 files changed, 159 insertions, 6 deletions
diff --git a/net-dialup/slmodem/ChangeLog b/net-dialup/slmodem/ChangeLog new file mode 100644 index 000000000000..9a309578ddc2 --- /dev/null +++ b/net-dialup/slmodem/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for net-dialup/slmodem +# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/slmodem/ChangeLog,v 1.1 2003/10/29 05:12:59 spyderous Exp $ + +*slmodem-2.7.14 (29 Oct 2003) + + 29 Oct 2003; Donnie Berkholz <spyderous@gentoo.org>; metadata.xml, + slmodem-2.7.14.ebuild, files/slmodem-2.7.14-makefile-fixup.patch, + files/slmodem-2.7.devfs, files/slmodem-2.7.modules: + Initial commit. I wrote the ebuild. + diff --git a/net-dialup/slmodem/Manifest b/net-dialup/slmodem/Manifest index 13f3f44837de..fc8859ee1ea1 100644 --- a/net-dialup/slmodem/Manifest +++ b/net-dialup/slmodem/Manifest @@ -1,7 +1,7 @@ -MD5 a4de292547a7d4fbe157a4ecb4ce2193 metadata.xml 821 -MD5 1b673760e15f57105a81836d3194ec6d ChangeLog 126 -MD5 5819f83c84fe299c7b794f9cb65c6f0d slmodem-2.8.4.ebuild 2769 -MD5 9b5b6a4da13cb087dd76dfbf6e987733 slmodem-2.7.14.ebuild 2836 -MD5 603aca328eb748d3a3f0ede13b276ff6 files/slmodem 28 -MD5 50e4686146e7823f6862c59c8b6392fe files/digest-slmodem-2.8.4 65 +MD5 8992c6d0ff2a4d7236a888a9cf34f022 slmodem-2.7.14.ebuild 1444 +MD5 8114f79f8735648770d8f37c32861c88 metadata.xml 252 +MD5 2c53defca98c2f869f6e6fce2a369da8 ChangeLog 482 MD5 04150d1eddd9774a7d1a70df93600e3c files/digest-slmodem-2.7.14 64 +MD5 df926a828ac12650f7a841e67a7f1ee4 files/slmodem-2.7.devfs 430 +MD5 a0135dc8e517702e7415f04053632a49 files/slmodem-2.7.modules 670 +MD5 5565553c8ddd949c38070e59ce64b90c files/slmodem-2.7.14-makefile-fixup.patch 1626 diff --git a/net-dialup/slmodem/files/digest-slmodem-2.7.14 b/net-dialup/slmodem/files/digest-slmodem-2.7.14 new file mode 100644 index 000000000000..4c09b06c4c29 --- /dev/null +++ b/net-dialup/slmodem/files/digest-slmodem-2.7.14 @@ -0,0 +1 @@ +MD5 2fb4e60d46a55c8e6445600b4ce4e921 slmdm-2.7.14.tar.gz 745352 diff --git a/net-dialup/slmodem/files/slmodem-2.7.14-makefile-fixup.patch b/net-dialup/slmodem/files/slmodem-2.7.14-makefile-fixup.patch new file mode 100644 index 000000000000..76a45594244a --- /dev/null +++ b/net-dialup/slmodem/files/slmodem-2.7.14-makefile-fixup.patch @@ -0,0 +1,44 @@ +diff -urN slmdm-2.7.14-old/Makefile slmdm-2.7.14/Makefile +--- slmdm-2.7.14-old/Makefile 2003-10-28 21:03:26.000000000 -0500 ++++ slmdm-2.7.14/Makefile 2003-10-28 21:03:37.000000000 -0500 +@@ -15,7 +15,7 @@ + + + # Tools +-CC := gcc ++CC := ${CC} + LD := ld + INSTALL := install + DEPMOD := /sbin/depmod +@@ -32,6 +32,7 @@ + -include debug.mk + + # Definitions ++prefix_dir = ${D} + MODULES_DIR = /lib/modules/$(shell ./kernel-ver)/misc + MODEM_DEV := ttySL0 + MODEM_LINK := modem +@@ -50,7 +51,7 @@ + + + # C FLAGS +-CFLAGS:= -Wall -O3 -fomit-frame-pointer -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB $(INCLUDES) $(MODVERSIONS_FLAGS) ++CFLAGS:= ${CFLAGS} -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB $(INCLUDES) $(MODVERSIONS_FLAGS) + #CFLAGS:= -Wall -O3 -fomit-frame-pointer -DMODEM_DEBUG=$(DEBUG) -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB $(INCLUDES) $(MODVERSIONS_FLAGS) + ifdef DEBUG + CFLAGS += -DMODEM_DEBUG=$(DEBUG) +@@ -101,10 +102,10 @@ + $(INSTALL) -D -m 644 slamrmo.o $(prefix_dir)/$(MODULES_DIR)/slamrmo.o + $(INSTALL) -D -m 644 slusb.o $(prefix_dir)/$(MODULES_DIR)/slusb.o + $(INSTALL) -D -m 755 country.dat $(prefix_dir)/etc/country.dat +- $(INSTALL) -d $(prefix_dir)/dev +- $(RM) -f $(prefix_dir)/dev/$(MODEM_DEV) +- $(MKNOD) -m 666 $(prefix_dir)/dev/$(MODEM_DEV) c 212 0 +- $(LN) -sf ./$(MODEM_DEV) $(prefix_dir)/dev/$(MODEM_LINK) ++# $(INSTALL) -d $(prefix_dir)/dev ++# $(RM) -f $(prefix_dir)/dev/$(MODEM_DEV) ++# $(MKNOD) -m 666 $(prefix_dir)/dev/$(MODEM_DEV) c 212 0 ++# $(LN) -sf ./$(MODEM_DEV) $(prefix_dir)/dev/$(MODEM_LINK) + + uninstall: kernel-ver cleanup-config unload-modules + $(RM) -f $(prefix_dir)/$(MODULES_DIR)/slmdm.o diff --git a/net-dialup/slmodem/files/slmodem-2.7.devfs b/net-dialup/slmodem/files/slmodem-2.7.devfs new file mode 100644 index 000000000000..fd2166aa9e0d --- /dev/null +++ b/net-dialup/slmodem/files/slmodem-2.7.devfs @@ -0,0 +1,7 @@ +# slmodem kernel modules' devfs configuration file +# $Header: /var/cvsroot/gentoo-x86/net-dialup/slmodem/files/slmodem-2.7.devfs,v 1.1 2003/10/29 05:12:59 spyderous Exp $ + +# Create /dev/modem for /dev/ttySL0 (Change to suit your setup) +LOOKUP ^modem$ CFUNCTION GLOBAL mksymlink ttySL0 modem +REGISTER ^ttySL0$ CFUNCTION GLOBAL mksymlink $devname modem +UNREGISTER ^ttySL0$ CFUNCTION GLOBAL unlink modem diff --git a/net-dialup/slmodem/files/slmodem-2.7.modules b/net-dialup/slmodem/files/slmodem-2.7.modules new file mode 100644 index 000000000000..f238952b25b9 --- /dev/null +++ b/net-dialup/slmodem/files/slmodem-2.7.modules @@ -0,0 +1,21 @@ +# slmodem 2.7.x kernel modules' configuration file +# $Header: /var/cvsroot/gentoo-x86/net-dialup/slmodem/files/slmodem-2.7.modules,v 1.1 2003/10/29 05:12:59 spyderous Exp $ + +## IMPORTANT: +## You need to customise this for your modem +## and then run the `modules-update' command. + +## Uncomment one of the two MODEM options. +# define MODEM slamrmo +# define MODEM slusb + +## Uncomment this and select your country. +## 'slver -c' will give you a list. +# options slmodem country=USA + +## You do not need to change anything below here. +alias char-major-212 slmdm +alias /dev/modem ${MODEM} +alias slmdm off +pre-install ${MODEM} modprobe slmdm +probeall /dev/ttySL* slmdm ${MODEM} diff --git a/net-dialup/slmodem/metadata.xml b/net-dialup/slmodem/metadata.xml new file mode 100644 index 000000000000..5fd1e8cbbe27 --- /dev/null +++ b/net-dialup/slmodem/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> +<email>spyderous@gentoo.org</email> +<name>Donnie Berkholz</name> +</maintainer> +</pkgmetadata> diff --git a/net-dialup/slmodem/slmodem-2.7.14.ebuild b/net-dialup/slmodem/slmodem-2.7.14.ebuild new file mode 100644 index 000000000000..171ee9ed033b --- /dev/null +++ b/net-dialup/slmodem/slmodem-2.7.14.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/slmodem/slmodem-2.7.14.ebuild,v 1.1 2003/10/29 05:12:59 spyderous Exp $ + +DESCRIPTION="Driver for Smart Link modem" +HOMEPAGE="http://www.smlink.com/" +MY_P="${P/modem/mdm}" +SRC_URI="ftp://ftp.smlink.com/linux/unsupported/${MY_P}.tar.gz" +LICENSE="Smart-Link" +SLOT="0" +KEYWORDS="~x86" +IUSE="" +DEPEND="" +S="${WORKDIR}/${MY_P}" + +src_unpack() { + unpack ${A} + epatch ${FILESDIR}/${PF}-makefile-fixup.patch +} + +src_compile() { + emake || die +} + +src_install() { + make install || die + + dodoc README COPYRIGHT FAQ Changes + + # Executable to get regions and version + exeinto /usr/bin + doexe slver + + # Install /etc/{devfs,modules}.d/slmodem files + insinto /etc/devfs.d/; newins ${FILESDIR}/${PN}-2.7.devfs ${PN} + insinto /etc/modules.d/; newins ${FILESDIR}/${PN}-2.7.modules ${PN} +} + +pkg_postinst() { + # Make some devices if we aren't using devfs + if [ ! -e ${ROOT}dev/.devfsd ] ; then + ebegin "Creating /dev/ttySL* devices" + local C="0" + while [ "${C}" -lt "4" ]; do + if [ ! -c ${ROOT}dev/ttySL${C} ]; then + mknod ${ROOT}dev/ttySL${C} c 212 0 + fi + C="`expr $C + 1`" + done + eend 0 + fi + + ebegin "Restarting devfsd to create /dev/modem symlink" + killall -HUP devfsd + eend 0 + + echo + einfo "You must edit /etc/modules.d/${PN} and run" + einfo "modules-update to complete configuration." +} |