]> git.ipfire.org Git - ipfire-2.x.git/blob - lfs/zaptel
Rote IP wird auf der Hauptseite bei DHCP angezeigt.
[ipfire-2.x.git] / lfs / zaptel
1 ###############################################################################
2 # This file is part of the IPCop Firewall. #
3 # #
4 # IPCop is free software; you can redistribute it and/or modify #
5 # it under the terms of the GNU General Public License as published by #
6 # the Free Software Foundation; either version 2 of the License, or #
7 # (at your option) any later version. #
8 # #
9 # IPCop is distributed in the hope that it will be useful, #
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
12 # GNU General Public License for more details. #
13 # #
14 # You should have received a copy of the GNU General Public License #
15 # along with IPCop; if not, write to the Free Software #
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #
17 # #
18 # Makefiles are based on LFSMake, which is #
19 # Copyright (C) 2002 Rod Roard <rod@sunsetsystems.com> #
20 # #
21 ###############################################################################
22
23 ###############################################################################
24 # Definitions
25 ###############################################################################
26
27 include Config
28
29 VER = 1.4.4
30
31 THISAPP = zaptel-$(VER)
32 DL_FILE = $(THISAPP).tar.gz
33 DL_FROM = $(URL_IPFIRE)
34 DIR_APP = $(DIR_SRC)/$(THISAPP)
35 ifeq "$(SMP)" "1"
36 TARGET = $(DIR_INFO)/$(THISAPP)-smp
37 else
38 TARGET = $(DIR_INFO)/$(THISAPP)
39 endif
40 PROG = zaptel
41 PAK_VER = 1
42
43 DESCDE = "Zaptel ist eine Treibersammlung für diverse ISDN-Karten."
44 DESCEN = "Zaptel is a collection of modules for isdn hardware."
45 DEPS = ""
46
47 ###############################################################################
48 # Top-level Rules
49 ###############################################################################
50
51 objects = $(DL_FILE)
52
53 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
54
55 $(DL_FILE)_MD5 = 46c0b34dc9279265a54cbbee827bae7c
56
57 install : $(TARGET)
58
59 check : $(patsubst %,$(DIR_CHK)/%,$(objects))
60
61 download :$(patsubst %,$(DIR_DL)/%,$(objects))
62
63 md5 : $(subst %,%_MD5,$(objects))
64
65 dist:
66 $(PAK)
67
68 ###############################################################################
69 # Downloading, checking, md5sum
70 ###############################################################################
71
72 $(patsubst %,$(DIR_CHK)/%,$(objects)) :
73 @$(CHECK)
74
75 $(patsubst %,$(DIR_DL)/%,$(objects)) :
76 @$(LOAD)
77
78 $(subst %,%_MD5,$(objects)) :
79 @$(MD5)
80
81 ###############################################################################
82 # Installation Details
83 ###############################################################################
84
85 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
86 @$(PREBUILD)
87 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
88 ifeq "$(SMP)" "1"
89 cd $(DIR_APP) && ./configure --prefix=/usr
90 cd $(DIR_APP) && cp -f $(DIR_SRC)/config/asterisk/zaptel.makeopts \
91 menuselect.makeopts
92 cd $(DIR_APP) && make KVERS=$(KVER)-ipfire-smp
93 cd $(DIR_APP) && make install KVERS=$(KVER)-ipfire-smp
94 else
95 cd $(DIR_APP) && ./configure --prefix=/usr
96 cd $(DIR_APP) && cp -f $(DIR_SRC)/config/asterisk/zaptel.makeopts \
97 menuselect.makeopts
98 cd $(DIR_APP) && make KVERS=$(KVER)-ipfire
99 cd $(DIR_APP) && make install KVERS=$(KVER)-ipfire
100 endif
101 #cd $(DIR_APP) && install -D -m 644 zaptel.h /usr/include/zaptel.h
102 #cd $(DIR_APP) && install -D -m 644 zconfig.h /usr/include/zconfig.h
103 #cd $(DIR_APP) && install -D -m 644 ecdis.h /usr/include/ecdis.h
104 #cd $(DIR_APP) && install -D -m 644 fasthdlc.h /usr/include/fasthdlc.h
105 #cd $(DIR_APP) && install -D -m 644 kb1ec.h /usr/include/kb1ec.h
106 #cd $(DIR_APP) && install -D -m 644 kb1ec_const.h /usr/include/kb1ec_const.h
107 #cd $(DIR_APP) && install -D -m 644 biquad.h /usr/include/biquad.h
108 #cd $(DIR_APP) && install -D -m 644 arith.h /usr/include/arith.h
109 #cd $(DIR_APP) && install -D -m 644 mg2ec.h /usr/include/mg2ec.h
110 #cd $(DIR_APP) && install -D -m 644 mg2ec_const.h /usr/include/mg2ec_const.h
111 @rm -rf $(DIR_APP)
112 @$(POSTBUILD)