]> git.ipfire.org Git - ipfire-2.x.git/blob - lfs/asterisk
Ein Paar Dateien fuer die GPLv3 angepasst.
[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 DESCDE = "Asterisk ist eine Telefonsoftware für Linux."
38 DESCEN = "Asterisk is a Private Branch Exchange."
39 DEPS = "sox zaptel libpri spandsp libmad"
40
41 ###############################################################################
42 # Top-level Rules
43 ###############################################################################
44
45 objects = $(DL_FILE) \
46 asterisk-1.4-de-prompts.tar.gz \
47 asterisk-core-sounds-en-alaw-current.tar.gz \
48 asterisk-extra-sounds-en-alaw-current.tar.gz \
49 asterisk-addons-1.4.2.tar.gz
50
51 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
52 asterisk-core-sounds-en-alaw-current.tar.gz = $(URL_IPFIRE)/asterisk-core-sounds-en-alaw-current.tar.gz
53 asterisk-extra-sounds-en-alaw-current.tar.gz = $(URL_IPFIRE)/asterisk-extra-sounds-en-alaw-current.tar.gz
54 asterisk-1.4-de-prompts.tar.gz = $(URL_IPFIRE)/asterisk-1.4-de-prompts.tar.gz
55 asterisk-addons-1.4.2.tar.gz = $(URL_IPFIRE)/asterisk-addons-1.4.2.tar.gz
56
57 $(DL_FILE)_MD5 = 7263ff56ad93cbb5efb971a536ee6a51
58 asterisk-core-sounds-en-alaw-current.tar.gz_MD5 = e9446bee485d1b4fca6e8b05457dda25
59 asterisk-extra-sounds-en-alaw-current.tar.gz_MD5 = 89bca77c9bb91abd9e87447b3a9d3b07
60 asterisk-1.4-de-prompts.tar.gz_MD5 = 626a2b95071a5505851e43874dfbfd5c
61 asterisk-addons-1.4.2.tar.gz_MD5 = c080b02e6ddc81dab6a64691af890805
62
63 install : $(TARGET)
64
65 check : $(patsubst %,$(DIR_CHK)/%,$(objects))
66
67 download :$(patsubst %,$(DIR_DL)/%,$(objects))
68
69 md5 : $(subst %,%_MD5,$(objects))
70
71 dist:
72 $(PAK)
73
74 ###############################################################################
75 # Downloading, checking, md5sum
76 ###############################################################################
77
78 $(patsubst %,$(DIR_CHK)/%,$(objects)) :
79 @$(CHECK)
80
81 $(patsubst %,$(DIR_DL)/%,$(objects)) :
82 @$(LOAD)
83
84 $(subst %,%_MD5,$(objects)) :
85 @$(MD5)
86
87 ###############################################################################
88 # Installation Details
89 ###############################################################################
90
91 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
92 @$(PREBUILD)
93 @rm -rf $(DIR_APP) $(DIR_SRC)/asterisk-* && \
94 cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
95 cd $(DIR_APP) && ./configure --prefix=/usr --sysconfdir=/var/ipfire
96 cd $(DIR_APP) && cp -fv $(DIR_SRC)/config/asterisk/asterisk.makeopts \
97 menuselect.makeopts
98 cd $(DIR_APP) && cp -fv $(DIR_DL)/asterisk-core-sounds-en-alaw-current.tar.gz \
99 $(DIR_APP)/sounds/asterisk-core-sounds-en-alaw-1.4.7.tar.gz
100 cd $(DIR_APP) && cp -fv $(DIR_DL)/asterisk-extra-sounds-en-alaw-current.tar.gz \
101 $(DIR_APP)/sounds/asterisk-extra-sounds-en-alaw-1.4.6.tar.gz
102 cd $(DIR_APP) && make $(MAKETUNING) all
103 cd $(DIR_APP) && make install
104 cd $(DIR_APP) && make samples
105 cd $(DIR_SRC) && tar zxf $(DIR_DL)/asterisk-addons-1.4.2.tar.gz
106 cd $(DIR_SRC)/asterisk-addons-* && ./configure --prefix=/usr \
107 --sysconfdir=/var/ipfire
108 cd $(DIR_SRC)/asterisk-addons-* && cp -f $(DIR_SRC)/config/asterisk/addons.makeopts \
109 menuselect.makeopts
110 cd $(DIR_SRC)/asterisk-addons-* && make $(MAKETUNING) all install
111 tar xfz $(DIR_DL)/asterisk-1.4-de-prompts.tar.gz -C /var/lib/asterisk/sounds/
112 -rm -f /var/lib/asterisk/sounds/README.txt
113 @rm -rf $(DIR_APP) $(DIR_SRC)/asterisk-*
114 @$(POSTBUILD)