Add nufw
[openwrt/svn-archive/archive.git] / net / asterisk / Makefile
1 #
2 # Copyright (C) 2006 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.2.24
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 ftp://ftp.digium.com/pub/asterisk/old-releases
18 PKG_MD5SUM:=63dc8b7be4cd10375c5fbda893c780bc
19
20 PKG_BUILD_DEPENDS:= openh323 pwlib
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/asterisk/Default
25 SUBMENU:=asterisk (Complete Open Source PBX), v1.2.x
26 SECTION:=net
27 CATEGORY:=Network
28 URL:=http://www.asterisk.org/
29 endef
30
31 define Package/asterisk/Default/description
32 Asterisk is a complete PBX in software. It provides all of the features
33 you would expect from a PBX and more. Asterisk does voice over IP in three
34 protocols, and can interoperate with almost all standards-based telephony
35 equipment using relatively inexpensive hardware.
36 endef
37
38
39 define Package/asterisk
40 $(call Package/asterisk/Default)
41 DEPENDS:=+libncurses +libpthread
42 TITLE:=Complete Open Source PBX
43 endef
44
45 define Package/asterisk/description
46 $(call Package/asterisk/Default/description)
47 endef
48
49
50 define Package/asterisk-mini
51 $(call Package/asterisk/Default)
52 DEPENDS:=+libncurses +libpthread
53 PROVIDES:=asterisk
54 TITLE:=Minimal Open Source PBX
55 endef
56
57 define Package/asterisk-mini/description
58 $(call Package/asterisk/Default/description)
59 This package contains only the following modules:
60 - app_dial
61 - chan_iax2
62 - chan_local
63 - chan_sip
64 - codec_gsm
65 - codec_ulaw
66 - format_gsm
67 - format_pcm
68 - format_wav
69 - format_wav_gsm
70 - pbx_config
71 - res_features
72 - res_musiconhold
73 endef
74
75
76 define Package/asterisk-mysql
77 $(call Package/asterisk/Default)
78 DEPENDS:=asterisk +libmysqlclient
79 TITLE:=MySQL support
80 endef
81
82 define Package/asterisk-mysql/description
83 $(call Package/asterisk/Default/description)
84 This package contains MySQL support modules for Asterisk.
85 endef
86
87
88 define Package/asterisk-pgsql
89 $(call Package/asterisk/Default)
90 DEPENDS:=asterisk +libpq
91 TITLE:=PostgreSQL support
92 endef
93
94 define Package/asterisk-pgsql/description
95 $(call Package/asterisk/Default/description)
96 This package contains PostgreSQL support modules for Asterisk.
97 endef
98
99
100 define Package/asterisk-sqlite
101 $(call Package/asterisk/Default)
102 DEPENDS:=asterisk +libsqlite2
103 TITLE:=SQLite modules
104 endef
105
106 define Package/asterisk-sqlite/description
107 $(call Package/asterisk/Default/description)
108 This package contains SQLite support modules for Asterisk.
109 endef
110
111
112 define Package/asterisk-sounds
113 $(call Package/asterisk/Default)
114 DEPENDS:=asterisk
115 TITLE:=Sound files
116 endef
117
118 define Package/asterisk-sounds/description
119 $(call Package/asterisk/Default/description)
120 This package contains sound files for Asterisk.
121 endef
122
123
124 define Package/asterisk-voicemail
125 $(call Package/asterisk/Default)
126 DEPENDS:=asterisk
127 TITLE:=Voicemail support
128 endef
129
130 define Package/asterisk-voicemail/description
131 $(call Package/asterisk/Default/description)
132 This package contains voicemail related modules for Asterisk.
133 endef
134
135
136 define Package/asterisk-app-meetme
137 $(call Package/asterisk/Default)
138 DEPENDS:=asterisk +zaptel-libtonezone @BROKEN
139 TITLE:=MeetMe Confererencing support
140 endef
141
142 define Package/asterisk-app-meetme/description
143 $(call Package/asterisk/Default/description)
144 This package provides the application MeetMe and conferencing support to
145 Asterisk.
146 endef
147
148
149 define Package/asterisk-chan-bluetooth
150 $(call Package/asterisk/Default)
151 DEPENDS:=asterisk +bluez-libs
152 TITLE:=Bluetooth HandsFreeProfile support
153 endef
154
155 define Package/asterisk-chan-bluetooth/description
156 $(call Package/asterisk/Default/description)
157 This package provides Bluetooth HandsFreeProfile support to Asterisk.
158 endef
159
160
161 define Package/asterisk-chan-h323
162 $(call Package/asterisk/Default)
163 DEPENDS:=asterisk +uclibcxx
164 TITLE:=H.323 support
165 endef
166
167 define Package/asterisk-chan-h323/description
168 $(call Package/asterisk/Default/description)
169 This package provides H.323 support to Asterisk.
170 endef
171
172
173 define Package/asterisk-chan-mgcp
174 $(call Package/asterisk/Default)
175 DEPENDS:=asterisk
176 TITLE:=MGCP support
177 endef
178
179 define Package/asterisk-chan-mgcp/description
180 $(call Package/asterisk/Default/description)
181 This package provides MGCP (Media Gateway Control Protocol) support
182 to Asterisk.
183 endef
184
185
186 define Package/asterisk-chan-oss
187 $(call Package/asterisk/Default)
188 DEPENDS:=asterisk
189 TITLE:=OSS soundcards support
190 endef
191
192 define Package/asterisk-chan-oss/description
193 $(call Package/asterisk/Default/description)
194 Channel driver for OSS soundcards
195 endef
196
197
198 define Package/asterisk-chan-skinny
199 $(call Package/asterisk/Default)
200 DEPENDS:=asterisk
201 TITLE:=Skinny Client Control Protocol support
202 endef
203
204 define Package/asterisk-chan-skinny/description
205 $(call Package/asterisk/Default/description)
206 This package provided Skinny Client Control Protocol support to
207 Asterisk.
208 endef
209
210
211 define Package/asterisk-codec-ilbc
212 $(call Package/asterisk/Default)
213 DEPENDS:=asterisk
214 TITLE:=ILBC Translator
215 endef
216
217 define Package/asterisk-codec-ilbc/description
218 $(call Package/asterisk/Default/description)
219 This package contains the ILBC (Internet Low Bitrate Codec) translator
220 for Asterisk.
221 endef
222
223
224 define Package/asterisk-codec-lpc10
225 $(call Package/asterisk/Default)
226 DEPENDS:=asterisk
227 TITLE:=LPC10 2.4kbps voice codec Translator
228 endef
229
230 define Package/asterisk-codec-lpc10/description
231 $(call Package/asterisk/Default/description)
232 This package contains the LPC10 (Linear Predictor Code) 2.4kbps voice
233 codec translator for Asterisk.
234 endef
235
236
237 define Package/asterisk-codec-speex
238 $(call Package/asterisk/Default)
239 DEPENDS:=asterisk +libspeex
240 TITLE:=Speex/PCM16 Codec Translator
241 endef
242
243 define Package/asterisk-codec-speex/description
244 $(call Package/asterisk/Default/description)
245 This package contains the Speex speech compression codec translator for
246 Asterisk.
247 endef
248
249
250 define Package/asterisk-pbx-dundi
251 $(call Package/asterisk/Default)
252 DEPENDS:=asterisk
253 TITLE:=DUNDi support
254 endef
255
256 define Package/asterisk-pbx-dundi/description
257 $(call Package/asterisk/Default/description)
258 This package provides DUNDi (Distributed Universal Number Discovery)
259 support to Asterisk.
260 endef
261
262
263 define Package/asterisk-res-agi
264 $(call Package/asterisk/Default)
265 DEPENDS:=asterisk
266 TITLE:=AGI support
267 endef
268
269 define Package/asterisk-res-agi/description
270 $(call Package/asterisk/Default/description)
271 This package provides AGI (Asterisk Gateway Interface) support to
272 Asterisk.
273 endef
274
275
276 define Package/asterisk-res-crypto
277 $(call Package/asterisk/Default)
278 DEPENDS:=asterisk +libopenssl
279 TITLE:=Cryptographic Digital Signatures support
280 endef
281
282 define Package/asterisk-res-crypto/description
283 $(call Package/asterisk/Default/description)
284 This package provides Cryptographic Digital Signatures support to
285 Asterisk.
286 endef
287
288
289 EXTRA_CFLAGS:= $(TARGET_CPPFLAGS)
290 EXTRA_LDFLAGS:= $(TARGET_LDFLAGS)
291
292 ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk-app-meetme),)
293 EXTRA_APP_MODULES+= app_meetme.so
294 endif
295
296 ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk-chan-bluetooth),)
297 EXTRA_CHAN_MODULES+= chan_bluetooth.so
298 endif
299
300 ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk-chan-h323),)
301 EXTRA_DEFINES+= \
302 OPENH323DIR="$(BUILD_DIR)/openh323" \
303 PWLIBDIR="$(BUILD_DIR)/pwlib" \
304 CXXLIBS="-nodefaultlibs -luClibc++"
305 EXTRA_CHAN_MODULES+= chan_h323.so
306
307 define Build/Compile/chan-h323
308 $(MAKE) -C "$(PKG_BUILD_DIR)/channels/h323" \
309 $(TARGET_CONFIGURE_OPTS) \
310 $(EXTRA_DEFINES) \
311 optnoshared
312 endef
313 endif
314
315 ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk-codec-speex),)
316 EXTRA_CFLAGS+= -I$(STAGING_DIR)/usr/include/speex
317 EXTRA_CODEC_MODULES+= codec_speex.so
318 endif
319
320 ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk-res-crypto),)
321 EXTRA_RES_MODULES+= res_crypto.so
322 endif
323
324 ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk-mysql),)
325 EXTRA_CFLAGS+= -I$(STAGING_DIR)/usr/include/mysql
326 EXTRA_LDFLAGS+= -L$(STAGING_DIR)/usr/lib/mysql
327 EXTRA_APP_MODULES+= app_sql_mysql.so
328 EXTRA_CDR_MODULES+= cdr_mysql.so
329 EXTRA_RES_MODULES+= res_config_mysql.so
330 endif
331
332 ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk-pgsql),)
333 EXTRA_APP_MODULES+= app_sql_postgres.so
334 EXTRA_CDR_MODULES+= cdr_pgsql.so
335 endif
336
337 ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk-sqlite),)
338 EXTRA_CDR_MODULES+= cdr_sqlite.so
339 endif
340
341
342 define Build/Configure
343 endef
344
345 define Build/Compile
346 $(call Build/Compile/chan-h323)
347 $(MAKE) -C "$(PKG_BUILD_DIR)" \
348 CROSS_ARCH="Linux" \
349 CROSS_COMPILE="$(TARGET_CROSS)" \
350 CROSS_COMPILE_BIN="/void/" \
351 CROSS_COMPILE_TARGET="/void/" \
352 $(TARGET_CONFIGURE_OPTS) \
353 HOST_CC="$(HOSTCC)" \
354 OPTIMIZE="$(TARGET_CFLAGS)" \
355 PROC="$(ARCH)" \
356 DEBUG="" \
357 OPTIONS="-DLOW_MEMORY -Dlinux" \
358 EXTRA_CFLAGS="$(EXTRA_CFLAGS)" \
359 EXTRA_LDFLAGS="$(EXTRA_LDFLAGS)" \
360 EXTRA_APP_MODULES="$(EXTRA_APP_MODULES)" \
361 EXTRA_CDR_MODULES="$(EXTRA_CDR_MODULES)" \
362 EXTRA_CHAN_MODULES="$(EXTRA_CHAN_MODULES)" \
363 EXTRA_CODEC_MODULES="$(EXTRA_CODEC_MODULES)" \
364 EXTRA_RES_MODULES="$(EXTRA_RES_MODULES)" \
365 DESTDIR="$(PKG_INSTALL_DIR)" \
366 ASTVARLIBDIR="/usr/lib/asterisk" \
367 $(EXTRA_DEFINES) \
368 all install samples
369 $(SED) 's|/var/lib/asterisk|/usr/lib/asterisk|g' $(PKG_INSTALL_DIR)/etc/asterisk/musiconhold.conf
370 rm -f $(PKG_INSTALL_DIR)/etc/asterisk/*.old
371 endef
372
373 define Build/InstallDev
374 mkdir -p $(1)/usr/include
375 $(CP) $(PKG_INSTALL_DIR)/usr/include/asterisk \
376 $(1)/usr/include/
377 endef
378
379 define Package/asterisk/conffiles
380 /etc/asterisk/asterisk.conf
381 /etc/asterisk/agents.conf
382 /etc/asterisk/alarmreceiver.conf
383 /etc/asterisk/cdr_manager.conf
384 /etc/asterisk/codecs.conf
385 /etc/asterisk/enum.conf
386 /etc/asterisk/extconfig.conf
387 /etc/asterisk/extensions.conf
388 /etc/asterisk/features.conf
389 /etc/asterisk/iax.conf
390 /etc/asterisk/iaxprov.conf
391 /etc/asterisk/indications.conf
392 /etc/asterisk/logger.conf
393 /etc/asterisk/manager.conf
394 /etc/asterisk/modules.conf
395 /etc/asterisk/musiconhold.conf
396 /etc/asterisk/osp.conf
397 /etc/asterisk/privacy.conf
398 /etc/asterisk/queues.conf
399 /etc/asterisk/rtp.conf
400 /etc/asterisk/sip.conf
401 endef
402
403 define Package/asterisk/install
404 $(CP) $(PKG_INSTALL_DIR)/* $(1)
405 rm -rf $(1)/usr/sbin/astgenkey
406 rm -rf $(1)/usr/bin
407 rm -rf $(1)/usr/share
408 rm -rf $(1)/usr/include
409 rm -rf $(1)/var
410 (cd $(1)/usr/lib/asterisk; \
411 rm -rf agi-bin; \
412 rm -rf images; \
413 rm -rf keys/*; \
414 rm -rf mohmp3/*.mp3; \
415 rm -rf sounds/*; \
416 cd modules; \
417 rm -rf *adsi* *festival* *modem* *meetme* *oss* *phone* *intercom* \
418 *mp3* *nbscat* *mysql* *postgres* *pgsql* *voicemail* *speex* \
419 *zap* *jpeg*; \
420 rm -f chan_bluetooth.so ; \
421 rm -f chan_h323.so ; \
422 rm -f chan_mgcp.so ; \
423 rm -f chan_skinny.so ; \
424 rm -f chan_oss.so ; \
425 rm -f {codec,format}_ilbc.so ; \
426 rm -f codec_lpc10.so ; \
427 rm -f pbx_dundi.so ; \
428 rm -f res_agi.so ; \
429 rm -f res_crypto.so ; \
430 )
431 (cd $(1)/etc/asterisk; \
432 rm -f *odbc* *mysql* *postgres* *pgsql* *voicemail* *adsi* *oss* *alsa* \
433 *festival* *modem* *meetme* *phone* *tds* *vofr* *rpt* *vpb* \
434 *zapata*; \
435 rm -f bluetooth.conf ; \
436 rm -f mgcp.conf ; \
437 rm -f skinny.conf ; \
438 rm -f oss.conf ; \
439 rm -f dundi.conf ; \
440 )
441 $(INSTALL_DATA) ./files/modules.conf $(1)/etc/asterisk/
442 $(INSTALL_DIR) $(1)/etc/default
443 $(INSTALL_DATA) ./files/asterisk.default $(1)/etc/default/asterisk
444 $(INSTALL_DIR) $(1)/etc/init.d
445 $(INSTALL_BIN) ./files/asterisk.init $(1)/etc/init.d/asterisk
446 endef
447
448
449 define Package/asterisk-mini/conffiles
450 /etc/asterisk/asterisk.conf
451 /etc/asterisk/enum.conf
452 /etc/asterisk/extconfig.conf
453 /etc/asterisk/extensions.conf
454 /etc/asterisk/features.conf
455 /etc/asterisk/iax.conf
456 /etc/asterisk/iaxprov.conf
457 /etc/asterisk/logger.conf
458 /etc/asterisk/manager.conf
459 /etc/asterisk/modules.conf
460 /etc/asterisk/musiconhold.conf
461 /etc/asterisk/rtp.conf
462 /etc/asterisk/sip.conf
463 endef
464
465 define Package/asterisk-mini/install
466 $(INSTALL_DIR) $(1)/etc/asterisk
467 for f in asterisk enum extconfig extensions features iax iaxprov \
468 logger manager modules musiconhold rtp sip; do \
469 $(CP) $(PKG_INSTALL_DIR)/etc/asterisk/$$$$f.conf $(1)/etc/asterisk/ ; \
470 done
471 $(INSTALL_DATA) ./files/modules.conf $(1)/etc/asterisk/
472 $(INSTALL_DIR) $(1)/usr/lib/asterisk
473 $(CP) $(PKG_INSTALL_DIR)/usr/lib/asterisk/firmware $(1)/usr/lib/asterisk/
474 $(INSTALL_DIR) $(1)/usr/lib/asterisk/keys
475 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
476 for f in app_dial chan_iax2 chan_local chan_sip codec_gsm \
477 codec_ulaw format_gsm format_pcm format_wav format_wav_gsm \
478 pbx_config res_features res_musiconhold; do \
479 $(CP) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/$$$$f.so $(1)/usr/lib/asterisk/modules/ ; \
480 done
481 $(INSTALL_DIR) $(1)/usr/lib/asterisk/mohmp3
482 $(INSTALL_DIR) $(1)/usr/lib/asterisk/sounds
483 $(INSTALL_DIR) $(1)/usr/sbin
484 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/asterisk $(1)/usr/sbin/
485 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/safe_asterisk $(1)/usr/sbin/
486 $(INSTALL_DIR) $(1)/etc/default
487 $(INSTALL_DATA) ./files/asterisk.default $(1)/etc/default/asterisk
488 $(INSTALL_DIR) $(1)/etc/init.d
489 $(INSTALL_BIN) ./files/asterisk.init $(1)/etc/init.d/asterisk
490 endef
491
492
493 define Package/asterisk-app-meetme/conffiles
494 /etc/asterisk/meetme.conf
495 endef
496
497 define Package/asterisk-app-meetme/install
498 $(INSTALL_DIR) $(1)/etc/asterisk
499 $(INSTALL_DATA) $(PKG_BUILD_DIR)/configs/meetme.conf.sample $(1)/etc/asterisk/meetme.conf
500 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
501 $(INSTALL_BIN) $(PKG_BUILD_DIR)/apps/app_meetme.so $(1)/usr/lib/asterisk/modules/
502 endef
503
504
505 define Package/asterisk-chan-bluetooth/conffiles
506 /etc/asterisk/bluetooth.conf
507 endef
508
509 define Package/asterisk-chan-bluetooth/install
510 $(INSTALL_DIR) $(1)/etc/asterisk
511 $(INSTALL_DATA) $(PKG_BUILD_DIR)/configs/bluetooth.conf $(1)/etc/asterisk/bluetooth.conf
512 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
513 $(INSTALL_BIN) $(PKG_BUILD_DIR)/channels/chan_bluetooth.so $(1)/usr/lib/asterisk/modules/
514 endef
515
516
517 define Package/asterisk-chan-h323/conffiles
518 /etc/asterisk/h323.conf
519 endef
520
521
522 define Package/asterisk-chan-h323/install
523 $(INSTALL_DIR) $(1)/etc/asterisk
524 $(INSTALL_DATA) $(PKG_BUILD_DIR)/channels/h323/h323.conf.sample $(1)/etc/asterisk/h323.conf
525 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
526 $(INSTALL_BIN) $(PKG_BUILD_DIR)/channels/chan_h323.so $(1)/usr/lib/asterisk/modules/
527 endef
528
529
530 define Package/asterisk-chan-mgcp/conffiles
531 /etc/asterisk/mgcp.conf
532 endef
533
534 define Package/asterisk-chan-mgcp/install
535 $(INSTALL_DIR) $(1)/etc/asterisk
536 $(INSTALL_DATA) $(PKG_BUILD_DIR)/configs/mgcp.conf.sample $(1)/etc/asterisk/mgcp.conf
537 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
538 $(INSTALL_BIN) $(PKG_BUILD_DIR)/channels/chan_mgcp.so $(1)/usr/lib/asterisk/modules/
539 endef
540
541
542 define Package/asterisk-chan-oss/conffiles
543 /etc/asterisk/oss.conf
544 endef
545
546 define Package/asterisk-chan-oss/install
547 $(INSTALL_DIR) $(1)/etc/asterisk
548 $(INSTALL_DATA) $(PKG_BUILD_DIR)/configs/oss.conf.sample $(1)/etc/asterisk/oss.conf
549 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
550 $(INSTALL_BIN) $(PKG_BUILD_DIR)/channels/chan_oss.so $(1)/usr/lib/asterisk/modules/
551 endef
552
553
554 define Package/asterisk-chan-skinny/conffiles
555 /etc/asterisk/skinny.conf
556 endef
557
558 define Package/asterisk-chan-skinny/install
559 $(INSTALL_DIR) $(1)/etc/asterisk
560 $(INSTALL_DATA) $(PKG_BUILD_DIR)/configs/skinny.conf.sample $(1)/etc/asterisk/skinny.conf
561 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
562 $(INSTALL_BIN) $(PKG_BUILD_DIR)/channels/chan_skinny.so $(1)/usr/lib/asterisk/modules/
563 endef
564
565
566 define Package/asterisk-code-ilbc/install
567 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
568 $(INSTALL_BIN) $(PKG_BUILD_DIR)/codecs/codec_ilbc.so $(1)/usr/lib/asterisk/modules/
569 $(INSTALL_BIN) $(PKG_BUILD_DIR)/formats/format_ilbc.so $(1)/usr/lib/asterisk/modules/
570 endef
571
572
573 define Package/asterisk-codec-lpc10/install
574 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
575 $(INSTALL_BIN) $(PKG_BUILD_DIR)/codecs/codec_lpc10.so $(1)/usr/lib/asterisk/modules/
576 endef
577
578
579 define Package/asterisk-codec-speex/install
580 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
581 $(INSTALL_BIN) $(PKG_BUILD_DIR)/codecs/codec_speex.so $(1)/usr/lib/asterisk/modules/
582 endef
583
584
585 define Package/asterisk-pbx-dundi/conffiles
586 /etc/asterisk/dundi.conf
587 endef
588
589 define Package/asterisk-pbx-dundi/install
590 $(INSTALL_DIR) $(1)/etc/asterisk
591 $(INSTALL_DATA) $(PKG_BUILD_DIR)/configs/dundi.conf.sample $(1)/etc/asterisk/dundi.conf
592 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
593 $(INSTALL_BIN) $(PKG_BUILD_DIR)/pbx/pbx_dundi.so $(1)/usr/lib/asterisk/modules/
594 endef
595
596
597 define Package/asterisk-res-agi/install
598 $(INSTALL_DIR) $(1)/usr/lib/asterisk/agi-bin
599 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
600 $(INSTALL_BIN) $(PKG_BUILD_DIR)/res/res_agi.so $(1)/usr/lib/asterisk/modules/
601 endef
602
603
604 define Package/asterisk-res-crypto/install
605 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
606 $(INSTALL_BIN) $(PKG_BUILD_DIR)/res/res_crypto.so $(1)/usr/lib/asterisk/modules/
607 endef
608
609
610 define Package/asterisk-mysql/conffiles
611 /etc/asterisk/cdr_mysql.conf
612 endef
613
614 define Package/asterisk-mysql/install
615 $(INSTALL_DIR) $(1)/etc/asterisk
616 $(INSTALL_CONF) $(PKG_BUILD_DIR)/configs/cdr_mysql.conf.sample $(1)/etc/asterisk/cdr_mysql.conf
617 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
618 $(INSTALL_BIN) $(PKG_BUILD_DIR)/apps/app_sql_mysql.so $(1)/usr/lib/asterisk/modules/
619 $(INSTALL_BIN) $(PKG_BUILD_DIR)/cdr/cdr_mysql.so $(1)/usr/lib/asterisk/modules/
620 endef
621
622
623 define Package/asterisk-pgsql/conffiles
624 /etc/asterisk/cdr_pgsql.conf
625 endef
626
627 define Package/asterisk-pgsql/install
628 $(INSTALL_DIR) $(1)/etc/asterisk
629 $(INSTALL_CONF) $(PKG_BUILD_DIR)/configs/cdr_pgsql.conf.sample $(1)/etc/asterisk/cdr_pgsql.conf
630 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
631 $(INSTALL_BIN) $(PKG_BUILD_DIR)/apps/app_sql_postgres.so $(1)/usr/lib/asterisk/modules/
632 $(INSTALL_BIN) $(PKG_BUILD_DIR)/cdr/cdr_pgsql.so $(1)/usr/lib/asterisk/modules/
633 endef
634
635
636 define Package/asterisk-sqlite/install
637 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
638 $(INSTALL_BIN) $(PKG_BUILD_DIR)/cdr/cdr_sqlite.so $(1)/usr/lib/asterisk/modules/
639 endef
640
641
642 define Package/asterisk-sounds/install
643 $(INSTALL_DIR) $(1)/usr/lib/asterisk/sounds
644 $(CP) $(PKG_BUILD_DIR)/sounds/* $(1)/usr/lib/asterisk/sounds/
645 rm -f $(1)/usr/lib/asterisk/sounds/*.mp3
646 rm -f $(1)/usr/lib/asterisk/sounds/vm-*
647 endef
648
649
650 define Package/asterisk-voicemail/conffiles
651 /etc/asterisk/voicemail.conf
652 endef
653
654 define Package/asterisk-voicemail/install
655 $(INSTALL_DIR) $(1)/etc/asterisk
656 $(INSTALL_DATA) $(PKG_BUILD_DIR)/configs/voicemail.conf.sample $(1)/etc/asterisk/voicemail.conf
657 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
658 $(INSTALL_BIN) $(PKG_BUILD_DIR)/apps/*voicemail.so $(1)/usr/lib/asterisk/modules/
659 $(INSTALL_BIN) $(PKG_BUILD_DIR)/res/res_adsi.so $(1)/usr/lib/asterisk/modules/
660 $(INSTALL_DIR) $(1)/usr/lib/asterisk/sounds
661 $(CP) $(PKG_BUILD_DIR)/sounds/vm-*.gsm $(1)/usr/lib/asterisk/sounds/
662 endef
663
664
665 $(eval $(call BuildPackage,asterisk))
666 $(eval $(call BuildPackage,asterisk-app-meetme))
667 $(eval $(call BuildPackage,asterisk-chan-bluetooth))
668 $(eval $(call BuildPackage,asterisk-chan-h323))
669 $(eval $(call BuildPackage,asterisk-chan-mgcp))
670 $(eval $(call BuildPackage,asterisk-chan-oss))
671 $(eval $(call BuildPackage,asterisk-chan-skinny))
672 $(eval $(call BuildPackage,asterisk-codec-ilbc))
673 $(eval $(call BuildPackage,asterisk-codec-lpc10))
674 $(eval $(call BuildPackage,asterisk-codec-speex))
675 $(eval $(call BuildPackage,asterisk-pbx-dundi))
676 $(eval $(call BuildPackage,asterisk-res-agi))
677 $(eval $(call BuildPackage,asterisk-res-crypto))
678 $(eval $(call BuildPackage,asterisk-mini))
679 $(eval $(call BuildPackage,asterisk-mysql))
680 $(eval $(call BuildPackage,asterisk-pgsql))
681 $(eval $(call BuildPackage,asterisk-sqlite))
682 $(eval $(call BuildPackage,asterisk-sounds))
683 $(eval $(call BuildPackage,asterisk-voicemail))