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