diff options
author | Daniel Black <dragonheart@gentoo.org> | 2004-05-23 07:16:49 +0000 |
---|---|---|
committer | Daniel Black <dragonheart@gentoo.org> | 2004-05-23 07:16:49 +0000 |
commit | b9659b0faae0e60896828ea14cd3def24f1af6bf (patch) | |
tree | d42e9530307be1c5190baa3b01a179b35dcc42c4 /net-dialup/slmodem/files | |
parent | ver bump (diff) | |
download | historical-b9659b0faae0e60896828ea14cd3def24f1af6bf.tar.gz historical-b9659b0faae0e60896828ea14cd3def24f1af6bf.tar.bz2 historical-b9659b0faae0e60896828ea14cd3def24f1af6bf.zip |
Added version bump (bug #47947)
Diffstat (limited to 'net-dialup/slmodem/files')
-rw-r--r-- | net-dialup/slmodem/files/digest-slmodem-2.9.7 | 1 | ||||
-rw-r--r-- | net-dialup/slmodem/files/slmodem-2.9.7-makefile-fixup.patch | 105 | ||||
-rw-r--r-- | net-dialup/slmodem/files/slmodem-2.9.conf | 13 | ||||
-rw-r--r-- | net-dialup/slmodem/files/slmodem-2.9.devfs | 7 | ||||
-rw-r--r-- | net-dialup/slmodem/files/slmodem-2.9.init | 32 | ||||
-rw-r--r-- | net-dialup/slmodem/files/slmodem-2.9.modules | 22 |
6 files changed, 180 insertions, 0 deletions
diff --git a/net-dialup/slmodem/files/digest-slmodem-2.9.7 b/net-dialup/slmodem/files/digest-slmodem-2.9.7 new file mode 100644 index 000000000000..45a1ca010886 --- /dev/null +++ b/net-dialup/slmodem/files/digest-slmodem-2.9.7 @@ -0,0 +1 @@ +MD5 741aec69a9cdb95fbce21105b4f1924c slmodem-2.9.7.tar.gz 648986 diff --git a/net-dialup/slmodem/files/slmodem-2.9.7-makefile-fixup.patch b/net-dialup/slmodem/files/slmodem-2.9.7-makefile-fixup.patch new file mode 100644 index 000000000000..096f2d00995f --- /dev/null +++ b/net-dialup/slmodem/files/slmodem-2.9.7-makefile-fixup.patch @@ -0,0 +1,105 @@ +diff -urN slmodem-2.9.7.old/Makefile slmodem-2.9.7/Makefile +--- slmodem-2.9.7.old/Makefile 2004-02-02 08:43:43.000000000 -0800 ++++ slmodem-2.9.7/Makefile 2004-04-21 00:51:55.562017735 -0700 +@@ -14,6 +14,7 @@ + ########################################################################### + + KERNEL_DIR:=/lib/modules/$(shell uname -r)/build ++DESTDIR = ${D} + + # tools + INSTALL:=install +@@ -25,6 +26,7 @@ + + install: all install-drivers + $(INSTALL) -D -m 755 modem/slmodemd ${DESTDIR}/usr/sbin/slmodemd ++ $(INSTALL) -D -m 755 modem/modem_test ${DESTDIR}/usr/sbin/modem_test + $(RM) -rf ${DESTDIR}/var/lib/slmodem + $(INSTALL) -d -D -m 755 ${DESTDIR}/var/lib/slmodem + +diff -urN slmodem-2.9.7.old/drivers/Makefile slmodem-2.9.7/drivers/Makefile +--- slmodem-2.9.7.old/drivers/Makefile 2003-12-21 13:15:54.000000000 -0800 ++++ slmodem-2.9.7/drivers/Makefile 2004-04-21 01:00:30.789187581 -0700 +@@ -15,6 +15,7 @@ + + #KBUILD_VERBOSE=1 + #export KBUILD_VERBOSE ++DESTDIR = ${D} + + KERNEL_DIR:=/lib/modules/$(shell uname -r)/build + +@@ -28,18 +29,18 @@ + ifndef KERNELRELEASE + ifndef KERNEL_VER + +-all install uninstall: kernel-ver +- $(MAKE) $@ KERNEL_VER=$(shell ./kernel-ver) ++all install uninstall: ++ $(MAKE) $@ KERNEL_VER=$(shell uname -r) + +-install: install-devices +-uninstall: remove-devices ++#install: install-devices ++#uninstall: remove-devices + +-kernel-ver:: +- $(CC) -I$(KERNEL_DIR)/include -o $@ $@.c ++#kernel-ver:: ++# $(CC) -I$(KERNEL_DIR)/include -o $@ $@.c + + dep: + clean: +- $(RM) kernel-ver $(obj-m) $(obj-m:.o=.ko) *st7554.o amrmo_init.o sysdep_amr.o *.mod.* .*.cmd *~ ++ $(RM) $(obj-m) $(obj-m:.o=.ko) *st7554.o amrmo_init.o sysdep_amr.o *.mod.* .*.cmd *~ + + install-devices: + mkdir -p ${DESTDIR}/dev +@@ -60,7 +61,7 @@ + obj:=. + module-dir:=${DESTDIR}/lib/modules/$(KERNEL_VER)/misc + +-CFLAGS:= -Wall -pipe -O3 -fomit-frame-pointer -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -DMODVERSIONS --include $(KERNEL_DIR)/include/linux/modversions.h -I$(KERNEL_DIR)/include ++CFLAGS:= ${CFLAGS} -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -DMODVERSIONS --include $(KERNEL_DIR)/include/linux/modversions.h -I$(KERNEL_DIR)/include + + all: $(obj-m) + +@@ -72,10 +73,10 @@ + install: uninstall-old + install -D -m 644 slamr.o $(module-dir)/slamr.o + install -D -m 644 slusb.o $(module-dir)/slusb.o +- cp /etc/modules.conf /etc/modules.conf.slamr && \ +- echo 'alias char-major-212 slamr' >> /etc/modules.conf && \ +- echo 'alias char-major-213 slusb' >> /etc/modules.conf +- /sbin/depmod -a ++# cp /etc/modules.conf /etc/modules.conf.slamr && \ ++# echo 'alias char-major-212 slamr' >> /etc/modules.conf && \ ++# echo 'alias char-major-213 slusb' >> /etc/modules.conf ++# /sbin/depmod -a + uninstall: + /sbin/modprobe -r slamr slusb + cp /etc/modules.conf /etc/modules.conf.slamr && \ +@@ -102,7 +103,7 @@ + install: + install -D -m 644 slamr.ko $(module-dir)/slamr.ko + install -D -m 644 slusb.ko $(module-dir)/slusb.ko +- /sbin/depmod -a ++# /sbin/depmod -a + uninstall: + modprobe -r slamr ; echo -n + modprobe -r slusb ; echo -n +diff -urN slmodem-2.9.7.old/modem/Makefile slmodem-2.9.7/modem/Makefile +--- slmodem-2.9.7.old/modem/Makefile 2003-11-20 04:50:47.000000000 -0800 ++++ slmodem-2.9.7/modem/Makefile 2004-04-21 00:45:34.215271352 -0700 +@@ -13,10 +13,10 @@ + # + ########################################################################### + +-CC:= gcc ++CC:= ${CC} + RM:= rm -f + +-CFLAGS:= -Wall -g -O -I. -DCONFIG_DEBUG_MODEM ++CFLAGS:= ${CFLAGS} -I. -DCONFIG_DEBUG_MODEM + + + modem-objs:= \ diff --git a/net-dialup/slmodem/files/slmodem-2.9.conf b/net-dialup/slmodem/files/slmodem-2.9.conf new file mode 100644 index 000000000000..4738d715e4c9 --- /dev/null +++ b/net-dialup/slmodem/files/slmodem-2.9.conf @@ -0,0 +1,13 @@ +# Config file for /etc/init.d/slmodemd + +MODULE=slamr +#DEV=/dev/ttySL0 +#LN_DEV=/dev/modem +#MODEM_DAEMON=/usr/sbin/slmodemd + +COUNTRY=USA + +# NEEDED: PTSN defaults +#COUNTRY=USA +#COUNTRY=ITALY + diff --git a/net-dialup/slmodem/files/slmodem-2.9.devfs b/net-dialup/slmodem/files/slmodem-2.9.devfs new file mode 100644 index 000000000000..4e0768bd96ab --- /dev/null +++ b/net-dialup/slmodem/files/slmodem-2.9.devfs @@ -0,0 +1,7 @@ +# slmodem kernel modules' devfs configuration file +# $Header: /var/cvsroot/gentoo-x86/net-dialup/slmodem/files/slmodem-2.9.devfs,v 1.1 2004/05/23 07:16:49 dragonheart 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.9.init b/net-dialup/slmodem/files/slmodem-2.9.init new file mode 100644 index 000000000000..d95793581780 --- /dev/null +++ b/net-dialup/slmodem/files/slmodem-2.9.init @@ -0,0 +1,32 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/net-dialup/slmodem/files/slmodem-2.9.init,v 1.1 2004/05/23 07:16:49 dragonheart Exp $ + +depend() { + need logger +} + + +checkconfig() { + if [ -z "${COUNTRY}" ]; then + eerror "You need to config /etc/conf.d/slmodem first" + return 1 + fi +} + +start() { + ebegin "Starting slmodemd" + modprobe ${MODULE} + start-stop-daemon --start --quiet --background --make-pidfile \ + --pidfile /var/run/slmodemd.pid --startas /usr/sbin/slmodemd \ + -- --country=${COUNTRY} /dev/${MODEM}0 + eend $? +} + +stop() { + ebegin "Shutting down slmodemd" + start-stop-daemon --stop --quiet --pidfile /var/run/slmodemd.pid && rm /var/run/slmodemd.pid + eend $? +} + diff --git a/net-dialup/slmodem/files/slmodem-2.9.modules b/net-dialup/slmodem/files/slmodem-2.9.modules new file mode 100644 index 000000000000..be4b5875b8d3 --- /dev/null +++ b/net-dialup/slmodem/files/slmodem-2.9.modules @@ -0,0 +1,22 @@ +# slmodem 2.7.x kernel modules' configuration file +# $Header: /var/cvsroot/gentoo-x86/net-dialup/slmodem/files/slmodem-2.9.modules,v 1.1 2004/05/23 07:16:49 dragonheart 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 `grep MODEM= /etc/conf.d/slmodem | sed 's/MODEM=//'` + +## Uncomment this and select your country. +define COUNTRY `grep country= /etc/conf.d/slmodem | sed 's/COUNTRY=//'` + +## You do not need to change anything below here. +options slmdm country=${COUNTRY} +alias char-major-212 slmdm +alias char-major-213 slusb + +alias /dev/modem ${MODEM} +alias slmdm off +pre-install ${MODEM} modprobe slmdm +probeall /dev/ttySL* slmdm ${MODEM} |