]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - lfs/asterisk
Ended core 5 and started core 6
[people/pmueller/ipfire-2.x.git] / lfs / asterisk
1 ###############################################################################
2 # #
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007 Michael Tremer & Christian Schmidt #
5 # #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
10 # #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
15 # #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
18 # #
19 ###############################################################################
20
21 ###############################################################################
22 # Definitions
23 ###############################################################################
24
25 include Config
26
27 VER = 1.4.8
28
29 THISAPP = asterisk-$(VER)
30 DL_FILE = $(THISAPP).tar.gz
31 DL_FROM = $(URL_IPFIRE)
32 DIR_APP = $(DIR_SRC)/$(THISAPP)
33 TARGET = $(DIR_INFO)/$(THISAPP)
34 PROG = asterisk
35 PAK_VER = 1
36
37 DEPS = "sox zaptel libpri spandsp libmad"
38
39 ###############################################################################
40 # Top-level Rules
41 ###############################################################################
42
43 objects = $(DL_FILE) \
44 asterisk-1.4-de-prompts.tar.gz \
45 asterisk-core-sounds-en-alaw-current.tar.gz \
46 asterisk-extra-sounds-en-alaw-current.tar.gz \
47 asterisk-addons-1.4.2.tar.gz
48
49 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
50 asterisk-core-sounds-en-alaw-current.tar.gz = $(URL_IPFIRE)/asterisk-core-sounds-en-alaw-current.tar.gz
51 asterisk-extra-sounds-en-alaw-current.tar.gz = $(URL_IPFIRE)/asterisk-extra-sounds-en-alaw-current.tar.gz
52 asterisk-1.4-de-prompts.tar.gz = $(URL_IPFIRE)/asterisk-1.4-de-prompts.tar.gz
53 asterisk-addons-1.4.2.tar.gz = $(URL_IPFIRE)/asterisk-addons-1.4.2.tar.gz
54
55 $(DL_FILE)_MD5 = 7263ff56ad93cbb5efb971a536ee6a51
56 asterisk-core-sounds-en-alaw-current.tar.gz_MD5 = e9446bee485d1b4fca6e8b05457dda25
57 asterisk-extra-sounds-en-alaw-current.tar.gz_MD5 = 89bca77c9bb91abd9e87447b3a9d3b07
58 asterisk-1.4-de-prompts.tar.gz_MD5 = 626a2b95071a5505851e43874dfbfd5c
59 asterisk-addons-1.4.2.tar.gz_MD5 = c080b02e6ddc81dab6a64691af890805
60
61 install : $(TARGET)
62
63 check : $(patsubst %,$(DIR_CHK)/%,$(objects))
64
65 download :$(patsubst %,$(DIR_DL)/%,$(objects))
66
67 md5 : $(subst %,%_MD5,$(objects))
68
69 dist:
70 $(PAK)
71
72 ###############################################################################
73 # Downloading, checking, md5sum
74 ###############################################################################
75
76 $(patsubst %,$(DIR_CHK)/%,$(objects)) :
77 @$(CHECK)
78
79 $(patsubst %,$(DIR_DL)/%,$(objects)) :
80 @$(LOAD)
81
82 $(subst %,%_MD5,$(objects)) :
83 @$(MD5)
84
85 ###############################################################################
86 # Installation Details
87 ###############################################################################
88
89 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
90 @$(PREBUILD)
91 @rm -rf $(DIR_APP) $(DIR_SRC)/asterisk-* && \
92 cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
93 cd $(DIR_APP) && ./configure --prefix=/usr --sysconfdir=/var/ipfire
94 cd $(DIR_APP) && cp -fv $(DIR_SRC)/config/asterisk/asterisk.makeopts \
95 menuselect.makeopts
96 cd $(DIR_APP) && cp -fv $(DIR_DL)/asterisk-core-sounds-en-alaw-current.tar.gz \
97 $(DIR_APP)/sounds/asterisk-core-sounds-en-alaw-1.4.7.tar.gz
98 cd $(DIR_APP) && cp -fv $(DIR_DL)/asterisk-extra-sounds-en-alaw-current.tar.gz \
99 $(DIR_APP)/sounds/asterisk-extra-sounds-en-alaw-1.4.6.tar.gz
100 cd $(DIR_APP) && make $(MAKETUNING) all
101 cd $(DIR_APP) && make install
102 cd $(DIR_APP) && make samples
103 cd $(DIR_SRC) && tar zxf $(DIR_DL)/asterisk-addons-1.4.2.tar.gz
104 cd $(DIR_SRC)/asterisk-addons-* && ./configure --prefix=/usr \
105 --sysconfdir=/var/ipfire
106 cd $(DIR_SRC)/asterisk-addons-* && cp -f $(DIR_SRC)/config/asterisk/addons.makeopts \
107 menuselect.makeopts
108 cd $(DIR_SRC)/asterisk-addons-* && make $(MAKETUNING) all install
109 tar xfz $(DIR_DL)/asterisk-1.4-de-prompts.tar.gz -C /var/lib/asterisk/sounds/
110 -rm -f /var/lib/asterisk/sounds/README.txt
111 @rm -rf $(DIR_APP) $(DIR_SRC)/asterisk-*
112 @$(POSTBUILD)