Fix the recursive dependency on zlib when asterisk-1.4 and asterisk-mysql-1.4 are...
[openwrt/svn-archive/archive.git] / net / asterisk-1.4.x / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=asterisk
12 PKG_VERSION:=1.4.11
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://ftp.digium.com/pub/asterisk/old-releases/
17 PKG_MD5SUM:=3ba9b399fedc68de4845b1c5603d167c
18
19 PKG_BUILD_DEPENDS:= libopenh323 pwlib
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/asterisk14/Default
24 SUBMENU:=asterisk14 (Complete Open Source PBX), v1.4.x
25 SECTION:=net
26 CATEGORY:=Network
27 endef
28
29 define Package/asterisk14/Default/description
30 Asterisk is a complete PBX in software. It provides all of the features
31 you would expect from a PBX and more. Asterisk does voice over IP in three
32 protocols, and can interoperate with almost all standards-based telephony
33 equipment using relatively inexpensive hardware.
34 URL:=http://www.asterisk.org/
35 endef
36
37
38 define Package/asterisk14
39 $(call Package/asterisk14/Default)
40 TITLE:=Complete open source PBX
41 DEPENDS:= +libltdl +libncurses +libpopt +libpthread
42 ifeq ($(SDK)$(CONFIG_PACKAGE_asterisk14-mysql),)
43 DEPENDS+= +zlib
44 endif
45 endef
46
47 define Package/asterisk14/description
48 $(call Package/asterisk14/Default/description)
49 endef
50
51
52 define Package/asterisk14-mini
53 $(call Package/asterisk14/Default)
54 TITLE:=Minimal open source PBX
55 DEPENDS:=+libncurses +libpthread
56 endef
57
58 define Package/asterisk14-mini/description
59 $(call Package/asterisk14/Default/description)
60 This package contains only the following modules:
61 - app_dial
62 - chan_iax2
63 - chan_local
64 - chan_sip
65 - codec_gsm
66 - codec_ulaw
67 - format_gsm
68 - format_pcm
69 - format_wav
70 - format_wav_gsm
71 - pbx_config
72 - res_features
73 - res_musiconhold
74 endef
75
76
77 define Package/asterisk14-chan-alsa
78 $(call Package/asterisk14/Default)
79 TITLE:=ALSA soundcards support
80 DEPENDS:= +asterisk14 +alsa-lib
81 endef
82
83 define Package/asterisk14-chan-alsa/description
84 $(call Package/asterisk14/Default/description)
85 This package provides the channel driver for ALSA sound cards support to
86 Asterisk.
87 endef
88
89
90 define Package/asterisk14-chan-gtalk
91 $(call Package/asterisk14/Default)
92 TITLE:=GTalk support
93 DEPENDS:= +asterisk14 +libiksemel
94 endef
95
96 define Package/asterisk14-chan-gtalk/description
97 $(call Package/asterisk14/Default/description)
98 This package provides the channel chan_gtalk and res_jabber for GTalk
99 support to Asterisk.
100 endef
101
102
103 define Package/asterisk14-chan-h323
104 $(call Package/asterisk14/Default)
105 TITLE:=H.323 support for Asterisk
106 DEPENDS:= +asterisk14 +uclibcxx
107 endef
108
109 define Package/asterisk14-chan-h323/description
110 $(call Package/asterisk14/Default/description)
111 This package provides H.323 support to Asterisk.
112 endef
113
114
115 define Package/asterisk14-chan-mgcp
116 $(call Package/asterisk14/Default)
117 TITLE:=MGCP support
118 DEPENDS:= +asterisk14
119 endef
120
121 define Package/asterisk14-chan-mgcp/description
122 $(call Package/asterisk14/Default/description)
123 This package provides MGCP (Media Gateway Control Protocol) support \\\
124 to Asterisk.
125 endef
126
127
128 define Package/asterisk14-chan-skinny
129 $(call Package/asterisk14/Default)
130 TITLE:=Skinny Client Control Protocol support
131 DEPENDS:= +asterisk14
132 endef
133
134 define Package/asterisk14-chan-skinny/description
135 $(call Package/asterisk14/Default/description)
136 This package provided Skinny Client Control Protocol support to \\\
137 Asterisk.
138 endef
139
140
141 define Package/asterisk14-codec-ilbc
142 $(call Package/asterisk14/Default)
143 TITLE:=ILBC Translator
144 DEPENDS:= +asterisk14
145 endef
146
147 define Package/asterisk14-codec-ilbc/description
148 $(call Package/asterisk14/Default/description)
149 This package contains the ILBC (Internet Low Bitrate Codec) translator
150 for Asterisk.
151 endef
152
153
154 define Package/asterisk14-codec-lpc10
155 $(call Package/asterisk14/Default)
156 TITLE:=LPC10 2.4kbps voice codec Translator
157 DEPENDS:= +asterisk14
158 endef
159
160 define Package/asterisk14-chan-lpc10/description
161 $(call Package/asterisk14/Default/description)
162 This package contains the LPC10 (Linear Predictor Code) 2.4kbps voice
163 codec translator for Asterisk.
164 endef
165
166
167 define Package/asterisk14-codec-speex
168 $(call Package/asterisk14/Default)
169 TITLE:=Speex/PCM16 Codec Translator
170 DEPENDS:= +asterisk14 +libspeex
171 endef
172
173 define Package/asterisk14-chan-speex/description
174 $(call Package/asterisk14/Default/description)
175 This package contains the Speex speech compression codec translator for
176 Asterisk.
177 endef
178
179
180 define Package/asterisk14-pbx-dundi
181 $(call Package/asterisk14/Default)
182 TITLE:=DUNDi support
183 DEPENDS:= +asterisk14
184 endef
185
186 define Package/asterisk14-pbx-dundi/description
187 $(call Package/asterisk14/Default/description)
188 This package provides DUNDi (Distributed Universal Number Discovery)
189 support to Asterisk.
190 endef
191
192
193 define Package/asterisk14-res-agi
194 $(call Package/asterisk14/Default)
195 TITLE:=AGI support
196 DEPENDS:= +asterisk14
197 endef
198
199 define Package/asterisk14-res-agi/description
200 $(call Package/asterisk14/Default/description)
201 This package provides AGI (Asterisk Gateway Interface) support to
202 Asterisk.
203 endef
204
205
206 define Package/asterisk14-res-crypto
207 $(call Package/asterisk14/Default)
208 TITLE:=Cryptographic Digital Signatures support
209 DEPENDS:= +asterisk14 +libopenssl
210 endef
211
212 define Package/asterisk14-res-crypto/description
213 $(call Package/asterisk14/Default/description)
214 This package provides Cryptographic Digital Signatures support to
215 Asterisk.
216 endef
217
218
219 define Package/asterisk14-pgsql
220 $(call Package/asterisk14/Default)
221 TITLE:=PostgreSQL support
222 DEPENDS:= +asterisk14 +libpq
223 endef
224
225 define Package/asterisk14-pgsql/description
226 $(call Package/asterisk14/Default/description)
227 This package contains PostgreSQL support modules for Asterisk.
228 endef
229
230
231 define Package/asterisk14-sqlite
232 $(call Package/asterisk14/Default)
233 TITLE:=SQLite modules
234 DEPENDS:= +asterisk14 +libsqlite2
235 endef
236
237 define Package/asterisk14-sqlite/description
238 $(call Package/asterisk14/Default/description)
239 This package contains SQLite support modules for Asterisk.
240 endef
241
242
243 define Package/asterisk14-sounds
244 $(call Package/asterisk14/Default)
245 TITLE:=Sound files
246 DEPENDS:= +asterisk14
247 endef
248
249 define Package/asterisk14-sounds/description
250 $(call Package/asterisk14/Default/description)
251 This package contains sound files for Asterisk.
252 endef
253
254
255 define Package/asterisk14-voicemail
256 $(call Package/asterisk14/Default)
257 TITLE:=Voicemail support
258 DEPENDS:= +asterisk14
259 endef
260
261 define Package/asterisk14-voicemail/description
262 $(call Package/asterisk14/Default/description)
263 This package contains voicemail related modules for Asterisk.
264 endef
265
266
267 CONFIGURE_ARGS+= \
268 --without-curl \
269 --without-curses \
270 --without-gsm \
271 --without-imap \
272 --without-isdnnet \
273 --without-kde \
274 --with-ltdl="$(STAGING_DIR)/usr" \
275 --without-misdn \
276 --without-nbs \
277 --with-ncurses="$(STAGING_DIR)/usr" \
278 --without-netsnmp \
279 --without-newt \
280 --without-odbc \
281 --without-ogg \
282 --without-osptk \
283 --without-oss \
284 --with-popt="$(STAGING_DIR)/usr" \
285 --without-pri \
286 --without-qt \
287 --without-radius \
288 --without-spandsp \
289 --without-suppserv \
290 --without-tds \
291 --without-termcap \
292 --without-tinfo \
293 --without-tonezone \
294 --without-vorbis \
295 --without-vpb \
296 --with-z="$(STAGING_DIR)/usr" \
297 --without-zaptel \
298
299 EXTRA_CFLAGS:= $(TARGET_CPPFLAGS)
300 EXTRA_LDFLAGS:= $(TARGET_LDFLAGS)
301
302 ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk14-chan-alsa),)
303 CONFIGURE_ARGS+= \
304 --with-asound="$(STAGING_DIR)/usr"
305 else
306 CONFIGURE_ARGS+= \
307 --without-asound
308 endif
309
310 ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk14-chan-gtalk),)
311 CONFIGURE_ARGS+= \
312 --with-gnutls="$(STAGING_DIR)/usr" \
313 --with-iksemel="$(STAGING_DIR)/usr"
314 else
315 CONFIGURE_ARGS+= \
316 --without-gnutls \
317 --without-iksemel
318 endif
319
320 ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk14-chan-h323),)
321 CONFIGURE_ARGS+= \
322 --with-h323="$(BUILD_DIR)/openh323" \
323 --with-pwlib="$(BUILD_DIR)/pwlib"
324 CONFIGURE_VARS+= \
325 LIBS="$$$$LIBS -luClibc++ -ldl -lpthread"
326
327 define Build/Compile/chan-h323
328 $(MAKE) -C "$(PKG_BUILD_DIR)/channels/h323" \
329 $(TARGET_CONFIGURE_OPTS) \
330 CXXLIBS="-nodefaultlibs -luClibc++" \
331 optnoshared
332 endef
333 else
334 CONFIGURE_ARGS+= \
335 --without-h323 \
336 --without-pwlib
337 endif
338
339 ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk14-codec-speex),)
340 CONFIGURE_ARGS+= \
341 --with-speex="$(STAGING_DIR)/usr"
342 EXTRA_CFLAGS+= -I$(STAGING_DIR)/usr/include/speex
343 else
344 CONFIGURE_ARGS+= \
345 --without-speex
346 endif
347
348 ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk14-res-crypto),)
349 CONFIGURE_ARGS+= \
350 --with-ssl="$(STAGING_DIR)/usr"
351 else
352 CONFIGURE_ARGS+= \
353 --without-ssl
354 endif
355
356 ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk14-pgsql),)
357 CONFIGURE_ARGS+= \
358 --with-postgres="$(STAGING_DIR)/usr"
359 else
360 CONFIGURE_ARGS+= \
361 --without-postgres
362 endif
363
364 ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk14-sqlite),)
365 CONFIGURE_ARGS+= \
366 --with-sqlite="$(STAGING_DIR)/usr"
367 else
368 CONFIGURE_ARGS+= \
369 --without-sqlite
370 endif
371
372
373 define Build/Configure
374 ( cd $(PKG_BUILD_DIR); ./bootstrap.sh )
375 $(call Build/Configure/Default)
376 endef
377
378 define Build/Compile
379 $(MAKE) -C "$(PKG_BUILD_DIR)" \
380 include/asterisk/version.h \
381 include/asterisk/buildopts.h defaults.h \
382 makeopts.embed_rules
383 $(call Build/Compile/chan-h323)
384 ASTCFLAGS="$(EXTRA_CFLAGS) -DLOW_MEMORY $(TARGET_CFLAGS)" \
385 ASTLDFLAGS="$(EXTRA_LDFLAGS)" \
386 $(MAKE) -C "$(PKG_BUILD_DIR)" \
387 ASTVARLIBDIR="/usr/lib/asterisk" \
388 NOISY_BUILD="1" \
389 DEBUG="" \
390 OPTIMIZE="" \
391 DESTDIR="$(PKG_INSTALL_DIR)" \
392 all install samples
393 $(SED) 's|/var/lib/asterisk|/usr/lib/asterisk|g' $(PKG_INSTALL_DIR)/etc/asterisk/musiconhold.conf
394 endef
395
396 define Build/InstallDev
397 mkdir -p $(STAGING_DIR)/usr/include/asterisk/
398 $(CP) $(PKG_INSTALL_DIR)/usr/include/asterisk/*.h $(STAGING_DIR)/usr/include/asterisk/
399 $(CP) $(PKG_INSTALL_DIR)/usr/include/asterisk.h $(STAGING_DIR)/usr/include/
400 endef
401
402
403 define Package/asterisk14/conffiles
404 /etc/asterisk/agents.conf
405 /etc/asterisk/alarmreceiver.conf
406 /etc/asterisk/amd.conf
407 /etc/asterisk/asterisk.conf
408 /etc/asterisk/cdr.conf
409 /etc/asterisk/cdr_custom.conf
410 /etc/asterisk/cdr_manager.conf
411 /etc/asterisk/codecs.conf
412 /etc/asterisk/dnsmgr.conf
413 /etc/asterisk/enum.conf
414 /etc/asterisk/extconfig.conf
415 /etc/asterisk/extensions.ael
416 /etc/asterisk/extensions.conf
417 /etc/asterisk/features.conf
418 /etc/asterisk/followme.conf
419 /etc/asterisk/http.conf
420 /etc/asterisk/iax.conf
421 /etc/asterisk/iaxprov.conf
422 /etc/asterisk/indications.conf
423 /etc/asterisk/logger.conf
424 /etc/asterisk/manager.conf
425 /etc/asterisk/misdn.conf
426 /etc/asterisk/modules.conf
427 /etc/asterisk/musiconhold.conf
428 /etc/asterisk/muted.conf
429 /etc/asterisk/osp.conf
430 /etc/asterisk/privacy.conf
431 /etc/asterisk/queues.conf
432 /etc/asterisk/rtp.conf
433 /etc/asterisk/say.conf
434 /etc/asterisk/sip.conf
435 /etc/asterisk/sip_notify.conf
436 /etc/asterisk/sla.conf
437 /etc/asterisk/smdi.conf
438 /etc/asterisk/udptl.conf
439 /etc/asterisk/users.conf
440 endef
441
442 define Package/asterisk14/postinst
443 #!/bin/sh
444 ROOT=`echo $${PKG_ROOT} | sed 's:[\/]:\\\&:g' -`
445 /bin/sed -i 's/\ \/etc/\ '$${ROOT}'etc/g' $${PKG_ROOT}/etc/asterisk/asterisk.conf
446 /bin/sed -i 's/\ \/var/\ '$${ROOT}'var/g' $${PKG_ROOT}/etc/asterisk/asterisk.conf
447 /bin/sed -i 's/\ \/usr/\ '$${ROOT}'usr/g' $${PKG_ROOT}/etc/asterisk/asterisk.conf
448 /bin/sed -i 's/^DEST=/DEST='$${ROOT}'/g' $${PKG_ROOT}/etc/init.d/asterisk
449 /bin/sed -i 's/OPTIONS=\"\"/OPTIONS=\"-C\ '$${ROOT}'etc\/asterisk\/asterisk.conf\"/g' $${PKG_ROOT}/etc/default/asterisk
450 endef
451
452 define Package/asterisk14/install
453 $(CP) $(PKG_INSTALL_DIR)/* $(1)
454 rm -rf $(1)/usr/sbin/astgenkey
455 rm -rf $(1)/usr/sbin/aelparse
456 rm -rf $(1)/usr/sbin/autosupport
457 rm -rf $(1)/usr/sbin/muted
458 rm -rf $(1)/usr/sbin/stereorize
459 rm -rf $(1)/usr/bin
460 rm -rf $(1)/usr/man
461 rm -rf $(1)/usr/include
462 rm -rf $(1)/var/spool/asterisk/meetme
463 rm -rf $(1)/var/spool/asterisk/voicemail
464 (cd $(1)/usr/lib/asterisk; \
465 rm -rf agi-bin; \
466 rm -rf images; \
467 rm -rf keys/*; \
468 rm -rf moh/*.wav; \
469 rm -rf sounds/*; \
470 cd modules; \
471 rm -rf *adsi* *festival* *modem* *oss* *phone* *intercom* \
472 *mp3* *nbscat* *sqlite* *mysql* *postgres* *pgsql* \
473 *voicemail* *speex* *flash* *page* *zap* *jpeg* \
474 *snmp* \
475 chan_alsa.so \
476 chan_gtalk.so \
477 chan_h323.so \
478 chan_mgcp.so \
479 chan_skinny.so \
480 {codec,format}_ilbc.so \
481 codec_lpc10.so \
482 pbx_dundi.so \
483 res_agi.so \
484 res_crypto.so \
485 res_jabber.so \
486 )
487 (cd $(1)/etc/asterisk; \
488 rm -f *odbc* *mysql* *postgres* *pgsql* *voicemail* \
489 *adsi* *oss* *alsa* *festival* *modem* *phone* \
490 *tds* *vofr* *rpt* *vpb* *snmp* \
491 *zapata* \
492 alsa.conf \
493 dundi.conf \
494 gtalk.conf \
495 h323.conf \
496 jabber.conf \
497 mgcp.conf \
498 skinny.conf \
499 )
500 $(INSTALL_DATA) ./files/modules.conf $(1)/etc/asterisk/
501 $(INSTALL_DIR) $(1)/etc/default
502 $(INSTALL_DATA) ./files/asterisk.default $(1)/etc/default/asterisk
503 $(INSTALL_DIR) $(1)/etc/init.d
504 $(INSTALL_BIN) ./files/asterisk.init $(1)/etc/init.d/asterisk
505 endef
506
507
508 define Package/asterisk14-mini/conffiles
509 /etc/asterisk/asterisk.conf
510 /etc/asterisk/enum.conf
511 /etc/asterisk/extconfig.conf
512 /etc/asterisk/extensions.conf
513 /etc/asterisk/features.conf
514 /etc/asterisk/http.conf
515 /etc/asterisk/iax.conf
516 /etc/asterisk/iaxprov.conf
517 /etc/asterisk/logger.conf
518 /etc/asterisk/manager.conf
519 /etc/asterisk/modules.conf
520 /etc/asterisk/musiconhold.conf
521 /etc/asterisk/rtp.conf
522 /etc/asterisk/sip.conf
523 /etc/asterisk/sip_notify.conf
524 /etc/asterisk/users.conf
525 endef
526
527 define Package/asterisk14-mini/install
528 $(INSTALL_DIR) $(1)/etc/asterisk
529 for f in asterisk enum extconfig extensions features http \
530 iax iaxprov logger manager modules musiconhold rtp \
531 sip sip_notify users; do \
532 $(CP) $(PKG_INSTALL_DIR)/etc/asterisk/$$$$f.conf $(1)/etc/asterisk/ ; \
533 done
534 $(INSTALL_DATA) ./files/modules.conf $(1)/etc/asterisk/
535 $(INSTALL_DIR) $(1)/usr/lib/asterisk
536 $(CP) $(PKG_INSTALL_DIR)/usr/lib/asterisk/firmware $(1)/usr/lib/asterisk/
537 $(INSTALL_DIR) $(1)/usr/lib/asterisk/keys
538 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
539 for f in app_dial chan_iax2 chan_local chan_sip codec_gsm \
540 codec_ulaw format_gsm format_pcm format_wav format_wav_gsm \
541 pbx_config res_features res_musiconhold; do \
542 $(CP) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/$$$$f.so $(1)/usr/lib/asterisk/modules/ ; \
543 done
544 $(INSTALL_DIR) $(1)/usr/lib/asterisk/moh
545 $(INSTALL_DIR) $(1)/usr/lib/asterisk/sounds
546 $(INSTALL_DIR) $(1)/usr/sbin
547 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/asterisk $(1)/usr/sbin/
548 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/safe_asterisk $(1)/usr/sbin/
549 $(INSTALL_DIR) $(1)/etc/default
550 $(INSTALL_DATA) ./files/asterisk.default $(1)/etc/default/asterisk
551 $(INSTALL_DIR) $(1)/etc/init.d
552 $(INSTALL_BIN) ./files/asterisk.init $(1)/etc/init.d/asterisk
553 endef
554
555
556 define Package/asterisk14-chan-alsa/conffiles
557 /etc/asterisk/alsa.conf
558 endef
559
560 define Package/asterisk14-chan-alsa/install
561 $(INSTALL_DIR) $(1)/etc/asterisk
562 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/alsa.conf $(1)/etc/asterisk/
563 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
564 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_alsa.so $(1)/usr/lib/asterisk/modules/
565 endef
566
567
568 define Package/asterisk14-chan-gtalk/conffiles
569 /etc/asterisk/gtalk.conf
570 /etc/asterisk/jabber.conf
571 endef
572
573 define Package/asterisk14-chan-gtalk/install
574 $(INSTALL_DIR) $(1)/etc/asterisk
575 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/gtalk.conf $(1)/etc/asterisk/
576 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/jabber.conf $(1)/etc/asterisk/
577 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
578 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_gtalk.so $(1)/usr/lib/asterisk/modules/
579 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_jabber.so $(1)/usr/lib/asterisk/modules/
580 endef
581
582
583 define Package/asterisk14-chan-h323/conffiles
584 /etc/asterisk/h323.conf
585 endef
586
587 define Package/asterisk14-chan-h323/install
588 $(INSTALL_DIR) $(1)/etc/asterisk
589 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/h323.conf $(1)/etc/asterisk/
590 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
591 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_h323.so $(1)/usr/lib/asterisk/modules/
592 endef
593
594
595 define Package/asterisk14-chan-mgcp/install
596 /etc/asterisk/mgcp.conf
597 endef
598
599 define Package/asterisk14-chan-mgcp/install
600 $(INSTALL_DIR) $(1)/etc/asterisk
601 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/mgcp.conf $(1)/etc/asterisk/
602 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
603 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_mgcp.so $(1)/usr/lib/asterisk/modules/
604 endef
605
606
607 define Package/asterisk14-chan-skinny/conffiles
608 /etc/asterisk/skinny.conf
609 endef
610
611 define Package/asterisk14-chan-skinny/install
612 $(INSTALL_DIR) $(1)/etc/asterisk
613 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/skinny.conf $(1)/etc/asterisk/
614 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
615 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_skinny.so $(1)/usr/lib/asterisk/modules/
616 endef
617
618
619 define Package/asterisk14-codec-ilbc/install
620 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
621 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/codec_ilbc.so $(1)/usr/lib/asterisk/modules/
622 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/format_ilbc.so $(1)/usr/lib/asterisk/modules/
623 endef
624
625
626 define Package/asterisk14-codec-lpc10/install
627 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
628 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/codec_lpc10.so $(1)/usr/lib/asterisk/modules/
629 endef
630
631
632 define Package/asterisk14-codec-speex/install
633 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
634 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/codec_speex.so $(1)/usr/lib/asterisk/modules/
635 endef
636
637
638 define Package/asterisk14-pbx-dundi/conffiles
639 /etc/asterisk/dundi.conf
640 endef
641
642 define Package/asterisk14-pbx-dundi/install
643 $(INSTALL_DIR) $(1)/etc/asterisk
644 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/dundi.conf $(1)/etc/asterisk/
645 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
646 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/pbx_dundi.so $(1)/usr/lib/asterisk/modules/
647 endef
648
649
650 define Package/asterisk14-res-agi/install
651 $(INSTALL_DIR) $(1)/usr/lib/asterisk/agi-bin
652 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
653 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_agi.so $(1)/usr/lib/asterisk/modules/
654 endef
655
656
657 define Package/asterisk14-res-crypto/install
658 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
659 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_crypto.so $(1)/usr/lib/asterisk/modules/
660 endef
661
662
663 define Package/asterisk14-pgsql/conffiles
664 /etc/asterisk/cdr_pgsql.conf
665 /etc/asterisk/res_pgsql.conf
666 endef
667
668 define Package/asterisk14-pgsql/install
669 $(INSTALL_DIR) $(1)/etc/asterisk
670 install -m0600 $(PKG_INSTALL_DIR)/etc/asterisk/cdr_pgsql.conf $(1)/etc/asterisk/
671 install -m0600 $(PKG_INSTALL_DIR)/etc/asterisk/res_pgsql.conf $(1)/etc/asterisk/
672 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
673 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/cdr_pgsql.so $(1)/usr/lib/asterisk/modules/
674 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_config_pgsql.so $(1)/usr/lib/asterisk/modules/
675 endef
676
677
678 define Package/asterisk14-sqlite/install
679 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
680 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/cdr_sqlite.so $(1)/usr/lib/asterisk/modules/
681 endef
682
683
684 define Package/asterisk14-sounds/install
685 $(INSTALL_DIR) $(1)/usr/lib/asterisk/sounds
686 $(CP) $(PKG_INSTALL_DIR)/usr/lib/asterisk/sounds/* $(1)/usr/lib/asterisk/sounds/
687 rm -f $(1)/usr/lib/asterisk/sounds/vm-*
688 rm -f $(1)/usr/lib/asterisk/sounds/x
689 endef
690
691
692 define Package/asterisk14-voicemail/conffiles
693 /etc/asterisk/voicemail.conf
694 endef
695
696 define Package/asterisk14-voicemail/install
697 $(INSTALL_DIR) $(1)/etc/asterisk
698 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/voicemail.conf $(1)/etc/asterisk/
699 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
700 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/*voicemail.so $(1)/usr/lib/asterisk/modules/
701 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_adsi.so $(1)/usr/lib/asterisk/modules/
702 $(INSTALL_DIR) $(1)/usr/lib/asterisk/sounds
703 $(CP) $(PKG_INSTALL_DIR)//usr/lib/asterisk/sounds/vm-*.gsm $(1)/usr/lib/asterisk/sounds/
704 endef
705
706
707 $(eval $(call BuildPackage,asterisk14))
708 $(eval $(call BuildPackage,asterisk14-mini))
709 $(eval $(call BuildPackage,asterisk14-chan-alsa))
710 $(eval $(call BuildPackage,asterisk14-chan-gtalk))
711 $(eval $(call BuildPackage,asterisk14-chan-h323))
712 $(eval $(call BuildPackage,asterisk14-chan-mgcp))
713 $(eval $(call BuildPackage,asterisk14-chan-skinny))
714 $(eval $(call BuildPackage,asterisk14-codec-ilbc))
715 $(eval $(call BuildPackage,asterisk14-codec-lpc10))
716 $(eval $(call BuildPackage,asterisk14-codec-speex))
717 $(eval $(call BuildPackage,asterisk14-pbx-dundi))
718 $(eval $(call BuildPackage,asterisk14-res-agi))
719 $(eval $(call BuildPackage,asterisk14-res-crypto))
720 $(eval $(call BuildPackage,asterisk14-pgsql))
721 $(eval $(call BuildPackage,asterisk14-sqlite))
722 $(eval $(call BuildPackage,asterisk14-voicemail))
723 $(eval $(call BuildPackage,asterisk14-sounds))