mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 03:33:25 +02:00
Hinzugefügt:
* Unzip in die ISO gebaut. * QoS-Kontroll-Binary. Geändert: * Asterisk in seine Einzelteile gespalten, damit das Paket kleiner und einfach zu updaten wird. * Neuer Asterisk, LibPRI, Bristuff usw... * QoS-Scripts aktualisiert. git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@207 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
121
lfs/asterisk
121
lfs/asterisk
@@ -26,7 +26,7 @@
|
||||
|
||||
include Config
|
||||
|
||||
VER = 1.2.7.1
|
||||
VER = 1.2.9.1
|
||||
|
||||
THISAPP = asterisk-$(VER)
|
||||
DL_FILE = $(THISAPP).tar.gz
|
||||
@@ -36,43 +36,24 @@ TARGET = $(DIR_INFO)/$(THISAPP)
|
||||
PROG = asterisk
|
||||
PAK_VER = ipfire-beta1
|
||||
|
||||
ASTERISK = $(THISAPP)
|
||||
ZAPTEL = zaptel-1.2.5
|
||||
BRISTUFF = bristuff-0.3.0-PRE-1o
|
||||
LIBPRI = libpri-1.2.2
|
||||
SPANDSP = spandsp-0.0.2pre25
|
||||
OH323 = asterisk-oh323-0.7.3
|
||||
|
||||
###############################################################################
|
||||
# Top-level Rules
|
||||
###############################################################################
|
||||
|
||||
objects = $(DL_FILE) \
|
||||
$(ZAPTEL).tar.gz \
|
||||
$(BRISTUFF).tar.gz \
|
||||
$(LIBPRI).tar.gz \
|
||||
$(OH323).tar.gz \
|
||||
app_rxfax.c \
|
||||
app_txfax.c \
|
||||
apps_Makefile.patch
|
||||
|
||||
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
|
||||
$(ZAPTEL).tar.gz = $(URL_IPFIRE)/$(ZAPTEL).tar.gz
|
||||
$(BRISTUFF).tar.gz = $(URL_IPFIRE)/$(BRISTUFF).tar.gz
|
||||
$(LIBPRI).tar.gz = $(URL_IPFIRE)/$(LIBPRI).tar.gz
|
||||
app_rxfax.c = $(URL_IPFIRE)/app_rxfax.c
|
||||
app_txfax.c = $(URL_IPFIRE)/app_txfax.c
|
||||
apps_Makefile.patch = $(URL_IPFIRE)/apps_Makefile.patch
|
||||
$(OH323).tar.gz = $(URL_IPFIRE)/$(OH323).tar.gz
|
||||
|
||||
$(DL_FILE)_MD5 = 5c4b473eee2fbc2cb9e346f0564ef970
|
||||
$(ZAPTEL).tar.gz_MD5 = 8c8561259d29a314aa5a076050124697
|
||||
$(BRISTUFF).tar.gz_MD5 = 93bb8a5661aaf3022cf4a102ea061f83
|
||||
$(LIBPRI).tar.gz_MD5 = efce9c3699110588df5e4cf09eae01d9
|
||||
$(DL_FILE)_MD5 = d98fc3dc5ee8df691ca2b0bd309bb251
|
||||
app_rxfax.c_MD5 = ab6983b51c412883545b36993d704999
|
||||
app_txfax.c_MD5 = 8c8fcb263b76897022b4c28052a7b439
|
||||
apps_Makefile.patch_MD5 = 6b0faa7a7cf8613962b17c23ee5a1583
|
||||
$(OH323).tar.gz_MD5 = 66dc098a20ac11f098edbbaed307c085
|
||||
|
||||
install : $(TARGET)
|
||||
|
||||
@@ -104,92 +85,14 @@ $(subst %,%_MD5,$(objects)) :
|
||||
|
||||
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
@$(PREBUILD)
|
||||
@rm -rf $(DIR_SRC)/$(BRISTUFF)
|
||||
# Decompress the source-code
|
||||
cd $(DIR_SRC) && \
|
||||
tar zxf $(DIR_DL)/$(BRISTUFF).tar.gz -C $(DIR_SRC) && \
|
||||
cd $(DIR_SRC)/$(BRISTUFF) && \
|
||||
tar xfz $(DIR_DL)/$(ZAPTEL).tar.gz && \
|
||||
tar xfz $(DIR_DL)/$(LIBPRI).tar.gz && \
|
||||
tar xfz $(DIR_DL)/$(ASTERISK).tar.gz && \
|
||||
tar xfz $(DIR_DL)/$(OH323).tar.gz
|
||||
|
||||
# Build Zaptel
|
||||
cd $(DIR_SRC)/$(BRISTUFF)/$(ZAPTEL) && \
|
||||
patch -Np1 < $(DIR_SRC)/src/patches/zaptel.patch && \
|
||||
make clean && \
|
||||
make all KVERS=$(KVER)-smp && \
|
||||
make install KVERS=$(KVER)-smp && \
|
||||
make clean && \
|
||||
make all KVERS=$(KVER) && \
|
||||
make install KVERS=$(KVER)
|
||||
cd $(DIR_SRC)/$(BRISTUFF)/$(ZAPTEL) && install -D -m 644 zaptel.h /usr/include/linux/zaptel.h
|
||||
cd $(DIR_SRC)/$(BRISTUFF)/$(ZAPTEL) && install -D -m 644 zconfig.h /usr/include/linux/zconfig.h
|
||||
cd $(DIR_SRC)/$(BRISTUFF)/$(ZAPTEL) && install -D -m 644 ecdis.h /usr/include/linux/ecdis.h
|
||||
cd $(DIR_SRC)/$(BRISTUFF)/$(ZAPTEL) && install -D -m 644 fasthdlc.h /usr/include/linux/fasthdlc.h
|
||||
cd $(DIR_SRC)/$(BRISTUFF)/$(ZAPTEL) && install -D -m 644 kb1ec.h /usr/include/linux/kb1ec.h
|
||||
cd $(DIR_SRC)/$(BRISTUFF)/$(ZAPTEL) && install -D -m 644 kb1ec_const.h /usr/include/linux/kb1ec_const.h
|
||||
cd $(DIR_SRC)/$(BRISTUFF)/$(ZAPTEL) && install -D -m 644 biquad.h /usr/include/linux/biquad.h
|
||||
cd $(DIR_SRC)/$(BRISTUFF)/$(ZAPTEL) && install -D -m 644 arith.h /usr/include/linux/arith.h
|
||||
ln -nf -v /usr/include/linux/zaptel.h /usr/include/zaptel.h
|
||||
ln -nf -v /usr/include/linux/zconfig.h /usr/include/zconfig.h
|
||||
ln -nf -v /usr/include/linux/ecdis.h /usr/include/ecdis.h
|
||||
ln -nf -v /usr/include/linux/fasthdlc.h /usr/include/fasthdlc.h
|
||||
ln -nf -v /usr/include/linux/kb1ec.h /usr/include/kb1ec.h
|
||||
ln -nf -v /usr/include/linux/kb1ec_const.h /usr/include/kb1ec_const.h
|
||||
ln -nf -v /usr/include/linux/biquad.h /usr/include/biquad.h
|
||||
ln -nf -v /usr/include/linux/arith.h /usr/include/arith.h
|
||||
|
||||
# Build Libpri
|
||||
cd $(DIR_SRC)/$(BRISTUFF)/$(LIBPRI) && \
|
||||
patch -Np1 < $(DIR_SRC)/src/patches/libpri.patch && \
|
||||
make clean all KVERS=$(KVER) && \
|
||||
make install KVERS=$(KVER)
|
||||
|
||||
# Build libgsmat
|
||||
cd $(DIR_SRC)/$(BRISTUFF)/libgsmat-0.0.1 && \
|
||||
make clean all && \
|
||||
make install
|
||||
|
||||
# Build uno/duo/quad GSM PCI driver
|
||||
cd $(DIR_SRC)/$(BRISTUFF)/ztgsm && \
|
||||
make clean linux24 && \
|
||||
install -D -m 644 ztgsm.o /lib/modules/$(KVER)/misc/ztgsm.o
|
||||
|
||||
# Build qozap
|
||||
cd $(DIR_SRC)/$(BRISTUFF)/qozap && \
|
||||
make clean linux24 && \
|
||||
install -D -m 644 qozap.o /lib/modules/$(KVER)/misc/qozap.o
|
||||
|
||||
# Build cwain
|
||||
cd $(DIR_SRC)/$(BRISTUFF)/cwain && \
|
||||
make clean linux24 && \
|
||||
install -D -m 644 cwain.o /lib/modules/$(KVER)/misc/cwain.o
|
||||
|
||||
# Build zaphfc
|
||||
cd $(DIR_SRC)/$(BRISTUFF)/zaphfc && \
|
||||
patch -Np1 < $(DIR_SRC)/src/patches/zaphfc_0.3.0-PRE-1o_florz-12.diff && \
|
||||
cd $(DIR_SRC)/$(BRISTUFF)/zaphfc && make clean linux24 && \
|
||||
install -D -m 644 zaphfc.o /lib/modules/$(KVER)/misc/zaphfc.o
|
||||
|
||||
# Compress the Kernelmodules
|
||||
find /lib/modules/$(KVER)/misc/ -name '*.o' -a -type f | xargs gzip -f9
|
||||
find /lib/modules/$(KVER)-smp/misc/ -name '*.o' -a -type f | xargs gzip -f9
|
||||
|
||||
# Build Asterisk
|
||||
cd $(DIR_SRC)/$(BRISTUFF)/$(ASTERISK) && patch -Np1 < $(DIR_SRC)/src/patches/asterisk.patch
|
||||
### FAX geht noch nicht mit Asterisk 1.2.7.1
|
||||
# cp -fv $(DIR_DL)/app_{r,t}xfax.c $(DIR_SRC)/$(BRISTUFF)/$(ASTERISK)/apps && \
|
||||
# cd $(DIR_SRC)/$(BRISTUFF)/$(ASTERISK)/apps && patch < $(DIR_DL)/apps_Makefile.patch
|
||||
cd $(DIR_SRC)/$(BRISTUFF)/$(ASTERISK) && make clean
|
||||
cd $(DIR_SRC)/$(BRISTUFF)/$(ASTERISK) && make all ASTETCDIR=/var/ipfire/asterisk
|
||||
cd $(DIR_SRC)/$(BRISTUFF)/$(ASTERISK) && make install ASTETCDIR=/var/ipfire/asterisk
|
||||
cd $(DIR_SRC)/$(BRISTUFF)/$(ASTERISK) && make samples ASTETCDIR=/var/ipfire/asterisk
|
||||
|
||||
# Build OH323
|
||||
cd $(DIR_SRC)/$(BRISTUFF)/$(OH323) && \
|
||||
make ASTERISKINCDIR=$(DIR_SRC)/$(BRISTUFF)/$(ASTERISK)/include OH323WRAPLIBDIR=/usr/lib && \
|
||||
make install ASTERISKINCDIR=$(DIR_SRC)/$(BRISTUFF)/$(ASTERISK)/include OH323WRAPLIBDIR=/usr/lib
|
||||
@rm -rf $(DIR_SRC)/$(BRISTUFF) ## Do not delete any more cause to save time on a recompile: $(DIR_SRC)/{pwlib,openh323}
|
||||
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
|
||||
cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/asterisk.patch
|
||||
### FAX geht noch nicht mit Asterisk 1.2.9.1
|
||||
# cp -fv $(DIR_DL)/app_{r,t}xfax.c $(DIR_APP)/apps && \
|
||||
# cd $(DIR_APP)/apps && patch < $(DIR_DL)/apps_Makefile.patch
|
||||
cd $(DIR_APP) && make clean
|
||||
cd $(DIR_APP) && make all ASTETCDIR=/var/ipfire/asterisk
|
||||
cd $(DIR_APP) && make install ASTETCDIR=/var/ipfire/asterisk
|
||||
cd $(DIR_APP) && make samples ASTETCDIR=/var/ipfire/asterisk
|
||||
@rm -rf $(DIR_APP)
|
||||
@$(POSTBUILD)
|
||||
|
||||
|
||||
110
lfs/bristuff
Normal file
110
lfs/bristuff
Normal file
@@ -0,0 +1,110 @@
|
||||
###############################################################################
|
||||
# This file is part of the IPCop Firewall. #
|
||||
# #
|
||||
# IPCop 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 2 of the License, or #
|
||||
# (at your option) any later version. #
|
||||
# #
|
||||
# IPCop 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 IPCop; if not, write to the Free Software #
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
||||
# #
|
||||
# Makefiles are based on LFSMake, which is #
|
||||
# Copyright (C) 2002 Rod Roard <rod@sunsetsystems.com> #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
###############################################################################
|
||||
# Definitions
|
||||
###############################################################################
|
||||
|
||||
include Config
|
||||
|
||||
VER = 0.3.0-PRE-1q
|
||||
|
||||
THISAPP = bristuff-$(VER)
|
||||
DL_FILE = $(THISAPP).tar.gz
|
||||
DL_FROM = $(URL_IPFIRE)
|
||||
DIR_APP = $(DIR_SRC)/$(THISAPP)
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)
|
||||
PROG = bristuff
|
||||
PAK_VER = ipfire-beta1
|
||||
|
||||
###############################################################################
|
||||
# Top-level Rules
|
||||
###############################################################################
|
||||
|
||||
objects = $(DL_FILE)
|
||||
|
||||
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
|
||||
|
||||
$(DL_FILE)_MD5 = 9b3ef09eca7166b7277e8519a11844bf
|
||||
|
||||
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)
|
||||
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
|
||||
# Build libgsmat
|
||||
cd $(DIR_APP)/libgsmat-0.0.1 && \
|
||||
make clean all && \
|
||||
make install
|
||||
|
||||
# Build uno/duo/quad GSM PCI driver
|
||||
cd $(DIR_APP)/ztgsm && \
|
||||
make clean linux24 && \
|
||||
install -D -m 644 ztgsm.o /lib/modules/$(KVER)/misc/ztgsm.o
|
||||
|
||||
# Build qozap
|
||||
cd $(DIR_APP)/qozap && \
|
||||
make clean linux24 && \
|
||||
install -D -m 644 qozap.o /lib/modules/$(KVER)/misc/qozap.o
|
||||
|
||||
# Build cwain
|
||||
cd $(DIR_APP)/cwain && \
|
||||
make clean linux24 && \
|
||||
install -D -m 644 cwain.o /lib/modules/$(KVER)/misc/cwain.o
|
||||
|
||||
# Build zaphfc
|
||||
cd $(DIR_APP)/zaphfc && \
|
||||
patch -Np1 < $(DIR_SRC)/src/patches/zaphfc_0.3.0-PRE-1o_florz-12.diff && \
|
||||
cd $(DIR_APP)/zaphfc && make clean linux24 && \
|
||||
install -D -m 644 zaphfc.o /lib/modules/$(KVER)/misc/zaphfc.o
|
||||
|
||||
# Compress the Kernelmodules
|
||||
find /lib/modules/$(KVER)/misc/ -name '*.o' -a -type f | xargs gzip -f9
|
||||
find /lib/modules/$(KVER)-smp/misc/ -name '*.o' -a -type f | xargs gzip -f9
|
||||
@rm -rf $(DIR_APP)
|
||||
@$(POSTBUILD)
|
||||
87
lfs/libpri
Normal file
87
lfs/libpri
Normal file
@@ -0,0 +1,87 @@
|
||||
###############################################################################
|
||||
# This file is part of the IPCop Firewall. #
|
||||
# #
|
||||
# IPCop 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 2 of the License, or #
|
||||
# (at your option) any later version. #
|
||||
# #
|
||||
# IPCop 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 IPCop; if not, write to the Free Software #
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
||||
# #
|
||||
# Makefiles are based on LFSMake, which is #
|
||||
# Copyright (C) 2002 Rod Roard <rod@sunsetsystems.com> #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
###############################################################################
|
||||
# Definitions
|
||||
###############################################################################
|
||||
|
||||
include Config
|
||||
|
||||
VER = 1.2.3
|
||||
|
||||
THISAPP = libpri-$(VER)
|
||||
DL_FILE = $(THISAPP).tar.gz
|
||||
DL_FROM = $(URL_IPFIRE)
|
||||
DIR_APP = $(DIR_SRC)/$(THISAPP)
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)
|
||||
PROG = libpri
|
||||
PAK_VER = ipfire-beta1
|
||||
|
||||
###############################################################################
|
||||
# Top-level Rules
|
||||
###############################################################################
|
||||
|
||||
objects = $(DL_FILE)
|
||||
|
||||
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
|
||||
|
||||
$(DL_FILE)_MD5 = f365d9ee29a7253d605729a6d07ebfff
|
||||
|
||||
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)
|
||||
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
|
||||
# Build Libpri
|
||||
cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/libpri.patch
|
||||
cd $(DIR_APP) && make clean all KVERS=$(KVER)
|
||||
cd $(DIR_APP) && make install KVERS=$(KVER)
|
||||
find /lib/modules/$(KVER)/misc/ -name '*.o' -a -type f | xargs gzip -f9
|
||||
find /lib/modules/$(KVER)-smp/misc/ -name '*.o' -a -type f | xargs gzip -f9
|
||||
@rm -rf $(DIR_APP)
|
||||
@$(POSTBUILD)
|
||||
107
lfs/zaptel
Normal file
107
lfs/zaptel
Normal file
@@ -0,0 +1,107 @@
|
||||
###############################################################################
|
||||
# This file is part of the IPCop Firewall. #
|
||||
# #
|
||||
# IPCop 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 2 of the License, or #
|
||||
# (at your option) any later version. #
|
||||
# #
|
||||
# IPCop 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 IPCop; if not, write to the Free Software #
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
||||
# #
|
||||
# Makefiles are based on LFSMake, which is #
|
||||
# Copyright (C) 2002 Rod Roard <rod@sunsetsystems.com> #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
###############################################################################
|
||||
# Definitions
|
||||
###############################################################################
|
||||
|
||||
include Config
|
||||
|
||||
VER = 1.2.6
|
||||
|
||||
THISAPP = zaptel-$(VER)
|
||||
DL_FILE = $(THISAPP).tar.gz
|
||||
DL_FROM = $(URL_IPFIRE)
|
||||
DIR_APP = $(DIR_SRC)/$(THISAPP)
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)
|
||||
PROG = zaptel
|
||||
PAK_VER = ipfire-beta1
|
||||
|
||||
###############################################################################
|
||||
# Top-level Rules
|
||||
###############################################################################
|
||||
|
||||
objects = $(DL_FILE)
|
||||
|
||||
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
|
||||
|
||||
$(DL_FILE)_MD5 = c6058b74f43ae12a29e486cf1e919562
|
||||
|
||||
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)
|
||||
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
|
||||
# Build Zaptel
|
||||
cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/zaptel.patch
|
||||
cd $(DIR_APP) && make clean
|
||||
cd $(DIR_APP) && make all KVERS=$(KVER)-smp
|
||||
cd $(DIR_APP) && make install KVERS=$(KVER)-smp
|
||||
cd $(DIR_APP) && make clean
|
||||
cd $(DIR_APP) && make all KVERS=$(KVER)
|
||||
cd $(DIR_APP) && make install KVERS=$(KVER)
|
||||
cd $(DIR_APP) && install -D -m 644 zaptel.h /usr/include/linux/zaptel.h
|
||||
cd $(DIR_APP) && install -D -m 644 zconfig.h /usr/include/linux/zconfig.h
|
||||
cd $(DIR_APP) && install -D -m 644 ecdis.h /usr/include/linux/ecdis.h
|
||||
cd $(DIR_APP) && install -D -m 644 fasthdlc.h /usr/include/linux/fasthdlc.h
|
||||
cd $(DIR_APP) && install -D -m 644 kb1ec.h /usr/include/linux/kb1ec.h
|
||||
cd $(DIR_APP) && install -D -m 644 kb1ec_const.h /usr/include/linux/kb1ec_const.h
|
||||
cd $(DIR_APP) && install -D -m 644 biquad.h /usr/include/linux/biquad.h
|
||||
cd $(DIR_APP) && install -D -m 644 arith.h /usr/include/linux/arith.h
|
||||
ln -nf -v /usr/include/linux/zaptel.h /usr/include/zaptel.h
|
||||
ln -nf -v /usr/include/linux/zconfig.h /usr/include/zconfig.h
|
||||
ln -nf -v /usr/include/linux/ecdis.h /usr/include/ecdis.h
|
||||
ln -nf -v /usr/include/linux/fasthdlc.h /usr/include/fasthdlc.h
|
||||
ln -nf -v /usr/include/linux/kb1ec.h /usr/include/kb1ec.h
|
||||
ln -nf -v /usr/include/linux/kb1ec_const.h /usr/include/kb1ec_const.h
|
||||
ln -nf -v /usr/include/linux/biquad.h /usr/include/biquad.h
|
||||
ln -nf -v /usr/include/linux/arith.h /usr/include/arith.h
|
||||
find /lib/modules/$(KVER)/misc/ -name '*.o' -a -type f | xargs gzip -f9
|
||||
find /lib/modules/$(KVER)-smp/misc/ -name '*.o' -a -type f | xargs gzip -f9
|
||||
@rm -rf $(DIR_APP)
|
||||
@$(POSTBUILD)
|
||||
Reference in New Issue
Block a user