From: | "Tony Vroon (chainsaw)" <chainsaw@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-misc/dahdi-tools/files: dahdi.init2 dahdi-tools-2.2.0-ifreq.patch dahdi-tools-2.2.0-modprobe-suffix.patch |
Date: | Wed, 28 Oct 2009 11:25:15 |
Message-Id: | E1N36eP-0001bE-FM@stork.gentoo.org |
1 | chainsaw 09/10/28 11:25:13 |
2 | |
3 | Added: dahdi.init2 dahdi-tools-2.2.0-ifreq.patch |
4 | dahdi-tools-2.2.0-modprobe-suffix.patch |
5 | Log: |
6 | Version bump. Change libusb dependency as requested by Mounir "volkmar" Lamouri in bug #270160. Header & modprobe.d fixups by Csaba Tóth in bug #270283. Run fxotune from the init script, from Jaco Kroon in bug #273390. |
7 | (Portage version: 2.1.7.1/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 net-misc/dahdi-tools/files/dahdi.init2 |
11 | |
12 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/dahdi-tools/files/dahdi.init2?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/dahdi-tools/files/dahdi.init2?rev=1.1&content-type=text/plain |
14 | |
15 | Index: dahdi.init2 |
16 | =================================================================== |
17 | #!/sbin/runscript |
18 | # Copyright 1999-2008 Gentoo Foundation |
19 | # Distributed under the terms of the GNU General Public License v2 |
20 | # $Header: /var/cvsroot/gentoo-x86/net-misc/dahdi-tools/files/dahdi.init2,v 1.1 2009/10/28 11:25:12 chainsaw Exp $ |
21 | |
22 | depend() { |
23 | need net |
24 | } |
25 | |
26 | checkconfig() { |
27 | if [ ! -f /etc/dahdi/system.conf ]; then |
28 | eerror "/etc/dahdi/system.conf not found. Nothing to do." |
29 | return 1 |
30 | fi |
31 | |
32 | return 0 |
33 | } |
34 | |
35 | start() { |
36 | checkconfig || return 1 |
37 | |
38 | ebegin "Starting DAHDI" |
39 | /usr/sbin/dahdi_cfg |
40 | eend $? |
41 | |
42 | if [ $? -eq 0 -a -r /etc/fxotune.conf ]; then |
43 | ebegin "Loading DAHDI fxotune.conf" |
44 | /usr/sbin/fxotune -s |
45 | eend $? |
46 | fi |
47 | } |
48 | |
49 | stop() { |
50 | ebegin "Stopping DAHDI" |
51 | /usr/sbin/dahdi_cfg -s |
52 | eend |
53 | } |
54 | |
55 | |
56 | |
57 | 1.1 net-misc/dahdi-tools/files/dahdi-tools-2.2.0-ifreq.patch |
58 | |
59 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/dahdi-tools/files/dahdi-tools-2.2.0-ifreq.patch?rev=1.1&view=markup |
60 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/dahdi-tools/files/dahdi-tools-2.2.0-ifreq.patch?rev=1.1&content-type=text/plain |
61 | |
62 | Index: dahdi-tools-2.2.0-ifreq.patch |
63 | =================================================================== |
64 | diff -uNr dahdi-tools-2.2.0.ORIG/sethdlc.c dahdi-tools-2.2.0/sethdlc.c |
65 | --- dahdi-tools-2.2.0.ORIG/sethdlc.c 2009-10-28 11:07:37.000000000 +0000 |
66 | +++ dahdi-tools-2.2.0/sethdlc.c 2009-10-28 11:08:10.000000000 +0000 |
67 | @@ -43,6 +43,8 @@ |
68 | #warning "No kernel support for Ethernet over Frame Relay / HDLC, skipping it" |
69 | #endif |
70 | |
71 | +#define ifreq __kernel_ifreq |
72 | + |
73 | |
74 | static struct ifreq req; /* for ioctl */ |
75 | static int argc; |
76 | |
77 | |
78 | |
79 | 1.1 net-misc/dahdi-tools/files/dahdi-tools-2.2.0-modprobe-suffix.patch |
80 | |
81 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/dahdi-tools/files/dahdi-tools-2.2.0-modprobe-suffix.patch?rev=1.1&view=markup |
82 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/dahdi-tools/files/dahdi-tools-2.2.0-modprobe-suffix.patch?rev=1.1&content-type=text/plain |
83 | |
84 | Index: dahdi-tools-2.2.0-modprobe-suffix.patch |
85 | =================================================================== |
86 | diff -urN dahdi-tools-2.2.0.orig/Makefile dahdi-tools-2.2.0/Makefile |
87 | --- dahdi-tools-2.2.0.orig/Makefile 2009-06-08 19:02:48.000000000 +0200 |
88 | +++ dahdi-tools-2.2.0/Makefile 2009-07-19 14:32:44.246071785 +0200 |
89 | @@ -70,8 +70,8 @@ |
90 | RCCONF_FILE = /etc/dahdi/init.conf |
91 | MODULES_FILE = /etc/dahdi/modules |
92 | GENCONF_FILE = /etc/dahdi/genconf_parameters |
93 | -MODPROBE_FILE = /etc/modprobe.d/dahdi |
94 | -BLACKLIST_FILE = /etc/modprobe.d/dahdi.blacklist |
95 | +MODPROBE_FILE = /etc/modprobe.d/dahdi.conf |
96 | +BLACKLIST_FILE = /etc/modprobe.d/dahdi.blacklist.conf |
97 | |
98 | NETSCR_DIR := $(firstword $(wildcard $(DESTDIR)/etc/sysconfig/network-scripts )) |
99 | ifneq (,$(NETSCR_DIR)) |