]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Add missing dahdi files.
authorArne Fitzenreiter <arne_f@ipfire.org>
Tue, 15 Dec 2009 01:13:29 +0000 (02:13 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Tue, 15 Dec 2009 01:13:29 +0000 (02:13 +0100)
config/rootfiles/packages/dahdi [new file with mode: 0644]
lfs/dahdi [new file with mode: 0644]

diff --git a/config/rootfiles/packages/dahdi b/config/rootfiles/packages/dahdi
new file mode 100644 (file)
index 0000000..b3df973
--- /dev/null
@@ -0,0 +1,123 @@
+#etc/dahdi
+#etc/hotplug
+#etc/hotplug/usb
+etc/hotplug/usb/xpp_fxloader
+etc/hotplug/usb/xpp_fxloader.usermap
+etc/modprobe.d/dahdi
+etc/modprobe.d/dahdi.blacklist
+etc/rc.d/init.d/dahdi
+etc/rc.d/rc0.d/K30dahdi
+etc/rc.d/rc3.d/S15dahdi
+etc/rc.d/rc6.d/K30dahdi
+etc/udev/rules.d/dahdi.rules
+etc/udev/rules.d/xpp.rules
+lib/firmware/.dahdi-fw-oct6114-064-1.05.01
+lib/firmware/.dahdi-fw-oct6114-128-1.05.01
+lib/firmware/.dahdi-fw-tc400m-MR6.12
+lib/firmware/dahdi-fw-oct6114-064.bin
+lib/firmware/dahdi-fw-oct6114-128.bin
+lib/firmware/dahdi-fw-tc400m.bin
+#usr/include/dahdi
+#usr/include/dahdi/dahdi_config.h
+#usr/include/dahdi/fasthdlc.h
+#usr/include/dahdi/kernel.h
+#usr/include/dahdi/tonezone.h
+#usr/include/dahdi/user.h
+#usr/include/dahdi/wctdm_user.h
+#usr/lib/hotplug
+#usr/lib/hotplug/firmware
+#usr/lib/hotplug/firmware/.dahdi-fw-oct6114-064-1.05.01
+#usr/lib/hotplug/firmware/.dahdi-fw-oct6114-128-1.05.01
+#usr/lib/hotplug/firmware/.dahdi-fw-tc400m-MR6.12
+#usr/lib/hotplug/firmware/dahdi-fw-oct6114-064.bin
+#usr/lib/hotplug/firmware/dahdi-fw-oct6114-128.bin
+#usr/lib/hotplug/firmware/dahdi-fw-tc400m.bin
+#usr/lib/libtonezone.a
+usr/lib/libtonezone.so
+usr/lib/libtonezone.so.1
+usr/lib/libtonezone.so.1.0
+usr/lib/libtonezone.so.2
+usr/lib/libtonezone.so.2.0
+#usr/lib/perl5/site_perl/5.8.8/Dahdi
+usr/lib/perl5/site_perl/5.8.8/Dahdi.pm
+usr/lib/perl5/site_perl/5.8.8/Dahdi/Chans.pm
+#usr/lib/perl5/site_perl/5.8.8/Dahdi/Config
+#usr/lib/perl5/site_perl/5.8.8/Dahdi/Config/Gen
+usr/lib/perl5/site_perl/5.8.8/Dahdi/Config/Gen.pm
+usr/lib/perl5/site_perl/5.8.8/Dahdi/Config/Gen/Chandahdi.pm
+usr/lib/perl5/site_perl/5.8.8/Dahdi/Config/Gen/Modules.pm
+usr/lib/perl5/site_perl/5.8.8/Dahdi/Config/Gen/System.pm
+usr/lib/perl5/site_perl/5.8.8/Dahdi/Config/Gen/Unicall.pm
+usr/lib/perl5/site_perl/5.8.8/Dahdi/Config/Gen/Users.pm
+usr/lib/perl5/site_perl/5.8.8/Dahdi/Config/Gen/Xpporder.pm
+usr/lib/perl5/site_perl/5.8.8/Dahdi/Config/Params.pm
+#usr/lib/perl5/site_perl/5.8.8/Dahdi/Hardware
+usr/lib/perl5/site_perl/5.8.8/Dahdi/Hardware.pm
+usr/lib/perl5/site_perl/5.8.8/Dahdi/Hardware/PCI.pm
+usr/lib/perl5/site_perl/5.8.8/Dahdi/Hardware/USB.pm
+usr/lib/perl5/site_perl/5.8.8/Dahdi/Span.pm
+usr/lib/perl5/site_perl/5.8.8/Dahdi/Utils.pm
+#usr/lib/perl5/site_perl/5.8.8/Dahdi/Xpp
+usr/lib/perl5/site_perl/5.8.8/Dahdi/Xpp.pm
+usr/lib/perl5/site_perl/5.8.8/Dahdi/Xpp/Line.pm
+usr/lib/perl5/site_perl/5.8.8/Dahdi/Xpp/Mpp.pm
+usr/lib/perl5/site_perl/5.8.8/Dahdi/Xpp/Xbus.pm
+usr/lib/perl5/site_perl/5.8.8/Dahdi/Xpp/Xpd.pm
+usr/sbin/astribank_allow
+usr/sbin/astribank_hexload
+usr/sbin/astribank_tool
+usr/sbin/dahdi_cfg
+usr/sbin/dahdi_genconf
+usr/sbin/dahdi_hardware
+usr/sbin/dahdi_monitor
+usr/sbin/dahdi_registration
+usr/sbin/dahdi_scan
+usr/sbin/dahdi_speed
+usr/sbin/dahdi_test
+usr/sbin/dahdi_tool
+usr/sbin/fpga_load
+usr/sbin/fxotune
+usr/sbin/lsdahdi
+usr/sbin/sethdlc
+usr/sbin/xpp_blink
+usr/sbin/xpp_sync
+#usr/share/dahdi
+usr/share/dahdi/FPGA_1141.hex
+usr/share/dahdi/FPGA_1151.hex
+usr/share/dahdi/FPGA_1161.hex
+usr/share/dahdi/FPGA_FXS.hex
+usr/share/dahdi/PIC_TYPE_1.hex
+usr/share/dahdi/PIC_TYPE_2.hex
+usr/share/dahdi/PIC_TYPE_3.hex
+usr/share/dahdi/PIC_TYPE_4.hex
+usr/share/dahdi/USB_FW.hex
+usr/share/dahdi/XppConfig.pm
+usr/share/dahdi/astribank_hook
+usr/share/dahdi/init_card_1_30
+usr/share/dahdi/init_card_2_30
+usr/share/dahdi/init_card_3_30
+usr/share/dahdi/init_card_4_30
+usr/share/dahdi/waitfor_xpds
+usr/share/dahdi/xpp_fxloader
+#usr/share/man/man8/astribank_allow.8
+#usr/share/man/man8/astribank_hexload.8
+#usr/share/man/man8/astribank_tool.8
+#usr/share/man/man8/dahdi_cfg.8
+#usr/share/man/man8/dahdi_genconf.8
+#usr/share/man/man8/dahdi_hardware.8
+#usr/share/man/man8/dahdi_monitor.8
+#usr/share/man/man8/dahdi_registration.8
+#usr/share/man/man8/dahdi_scan.8
+#usr/share/man/man8/dahdi_test.8
+#usr/share/man/man8/dahdi_tool.8
+#usr/share/man/man8/fpga_load.8
+#usr/share/man/man8/fxotune.8
+#usr/share/man/man8/lsdahdi.8
+#usr/share/man/man8/xpp_blink.8
+#usr/share/man/man8/xpp_sync.8
+#var/ipfire/asterisk
+#var/ipfire/asterisk/dahdi
+var/ipfire/asterisk/dahdi/genconf_parameters
+var/ipfire/asterisk/dahdi/init.conf
+var/ipfire/asterisk/dahdi/modules
+var/ipfire/asterisk/dahdi/system.conf
diff --git a/lfs/dahdi b/lfs/dahdi
new file mode 100644 (file)
index 0000000..7f998f4
--- /dev/null
+++ b/lfs/dahdi
@@ -0,0 +1,145 @@
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007  Michael Tremer & Christian Schmidt                      #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+###############################################################################
+# Definitions
+###############################################################################
+
+include Config
+
+ifeq "$(XEN)" "1"
+       VERSUFIX=ipfire-xen
+else
+       VERSUFIX=ipfire
+endif
+
+VER        = 2.2.0.2
+TVER       = 2.2.0
+
+DL_FILE    = dahdi-linux-$(VER)-with-vpmadt032-1.17.0.tar.gz
+DL_FILE1   = dahdi-tools-$(TVER).tar.gz
+
+THISAPP    = dahdi-$(VER)
+DL_FROM    = $(URL_IPFIRE)
+DIR_APP    = $(DIR_SRC)/dahdi-linux-$(VER)
+DIR_APP1   = $(DIR_SRC)/dahdi-tools-$(TVER)
+
+PROG       = dahdi
+PAK_VER    = 1
+
+DEPS       = ""
+
+
+ifeq "$(KMOD)" "1"
+       TARGET = $(DIR_INFO)/$(THISAPP)-kmod-$(KVER)-$(VERSUFIX)
+else
+       TARGET = $(DIR_INFO)/$(THISAPP)
+endif
+
+
+###############################################################################
+# Top-level Rules
+###############################################################################
+
+objects = $(DL_FILE) $(DL_FILE1)
+
+$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
+$(DL_FILE1) = $(DL_FROM)/$(DL_FILE1)
+
+$(DL_FILE)_MD5 = 5cbabd47cf780305e2cba6ccec42c754
+$(DL_FILE1)_MD5 = a018f452f3851a312ff51705ac44de37
+
+install : $(TARGET)
+
+check : $(patsubst %,$(DIR_CHK)/%,$(objects))
+
+download :$(patsubst %,$(DIR_DL)/%,$(objects))
+
+md5 : $(subst %,%_MD5,$(objects))
+
+dist: 
+       $(PAK)
+
+###############################################################################
+# Downloading, checking, md5sum
+###############################################################################
+
+$(patsubst %,$(DIR_CHK)/%,$(objects)) :
+       @$(CHECK)
+
+$(patsubst %,$(DIR_DL)/%,$(objects)) :
+       @$(LOAD)
+
+$(subst %,%_MD5,$(objects)) :
+       @$(MD5)
+
+###############################################################################
+# Installation Details
+###############################################################################
+
+$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
+       @$(PREBUILD)
+
+ifeq "$(KMOD)" "1"
+       rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
+       cd $(DIR_APP) && make $(MAKETUNING) clean all KVERS=$(KVER)
+       cd $(DIR_APP) && make install-modules KVERS=$(KVER)-$(VERSUFIX)
+       @rm -rf $(DIR_APP)
+else
+       rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
+       cd $(DIR_APP) && make $(MAKETUNING) clean all KVERS=$(KVER)
+       cd $(DIR_APP) && make install-devices install-include \
+               install-firmware install-xpp-firm KVERS=$(KVER)-$(VERSUFIX)
+       @rm -rf $(DIR_APP)
+
+       # remove previous generated symlink (if this a rebuild)
+       rm -rf /etc/dahdi
+
+       rm -rf $(DIR_APP1) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE1)
+       cd $(DIR_APP1) && ./configure --sysconfdir=/var/ipfire/asterisk
+       cd $(DIR_APP1) && make $(MAKETUNING) clean all
+       cd $(DIR_APP1) && make install
+
+       # Supress Error output because this erase the log 
+       cd $(DIR_APP1) && make config 2>/dev/null
+
+       # remove build src
+       @rm -rf $(DIR_APP1)
+
+       # config stuff
+       ln -sf ../init.d/dahdi /etc/rc.d/rc0.d/K30dahdi
+       ln -sf ../init.d/dahdi /etc/rc.d/rc6.d/K30dahdi
+       ln -sf ../init.d/dahdi /etc/rc.d/rc3.d/S15dahdi
+       mv -f /etc/dahdi/genconf_parameters /var/ipfire/asterisk/dahdi/
+       mv -f /etc/dahdi/init.conf /var/ipfire/asterisk/dahdi/
+       mv -f /etc/dahdi/modules /var/ipfire/asterisk/dahdi/
+       rmdir /etc/dahdi
+       ln -s /var/ipfire/asterisk/dahdi /etc/dahdi
+
+       # make init.d-script work with ipfire
+       sed s/system=redhat/system=debian/ /etc/init.d/dahdi > /tmp/dahdi-temp
+       mv /tmp/dahdi-temp /etc/init.d/dahdi && chmod 755 /etc/init.d/dahdi
+
+       # add dummy-module (to get conference rooms work)
+       echo "#Dummy" >> /etc/dahdi/modules
+       echo "dahdi_dummy" >> /etc/dahdi/modules
+endif
+       @$(POSTBUILD)
+