6fdd5c435524dda466dbc579d06c4879c7c7f5e5
[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 +zlib
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
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 else
312 CONFIGURE_ARGS+= \
313 --without-gnutls \
314 --without-iksemel
315 endif
316
317 ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk14-chan-h323),)
318 CONFIGURE_ARGS+= \
319 --with-h323="$(BUILD_DIR)/openh323" \
320 --with-pwlib="$(BUILD_DIR)/pwlib"
321 CONFIGURE_VARS+= \
322 LIBS="$$$$LIBS -luClibc++ -ldl -lpthread"
323
324 define Build/Compile/chan-h323
325 $(MAKE) -C "$(PKG_BUILD_DIR)/channels/h323" \
326 $(TARGET_CONFIGURE_OPTS) \
327 CXXLIBS="-nodefaultlibs -luClibc++" \
328 optnoshared
329 endef
330 else
331 CONFIGURE_ARGS+= \
332 --without-h323 \
333 --without-pwlib
334 endif
335
336 ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk14-codec-speex),)
337 CONFIGURE_ARGS+= \
338 --with-speex="$(STAGING_DIR)/usr"
339 EXTRA_CFLAGS+= -I$(STAGING_DIR)/usr/include/speex
340 else
341 CONFIGURE_ARGS+= \
342 --without-speex
343 endif
344
345 ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk14-res-crypto),)
346 CONFIGURE_ARGS+= \
347 --with-ssl="$(STAGING_DIR)/usr"
348 else
349 CONFIGURE_ARGS+= \
350 --without-ssl
351 endif
352
353 ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk14-pgsql),)
354 CONFIGURE_ARGS+= \
355 --with-postgres="$(STAGING_DIR)/usr"
356 else
357 CONFIGURE_ARGS+= \
358 --without-postgres
359 endif
360
361 ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk14-sqlite),)
362 CONFIGURE_ARGS+= \
363 --with-sqlite="$(STAGING_DIR)/usr"
364 else
365 CONFIGURE_ARGS+= \
366 --without-sqlite
367 endif
368
369
370 define Build/Configure
371 ( cd $(PKG_BUILD_DIR); ./bootstrap.sh )
372 $(call Build/Configure/Default)
373 endef
374
375 define Build/Compile
376 $(MAKE) -C "$(PKG_BUILD_DIR)" \
377 include/asterisk/version.h \
378 include/asterisk/buildopts.h defaults.h \
379 makeopts.embed_rules
380 $(call Build/Compile/chan-h323)
381 ASTCFLAGS="$(EXTRA_CFLAGS) -DLOW_MEMORY $(TARGET_CFLAGS)" \
382 ASTLDFLAGS="$(EXTRA_LDFLAGS)" \
383 $(MAKE) -C "$(PKG_BUILD_DIR)" \
384 ASTVARLIBDIR="/usr/lib/asterisk" \
385 NOISY_BUILD="1" \
386 DEBUG="" \
387 OPTIMIZE="" \
388 DESTDIR="$(PKG_INSTALL_DIR)" \
389 all install samples
390 $(SED) 's|/var/lib/asterisk|/usr/lib/asterisk|g' $(PKG_INSTALL_DIR)/etc/asterisk/musiconhold.conf
391 endef
392
393 define Build/InstallDev
394 mkdir -p $(STAGING_DIR)/usr/include/asterisk/
395 $(CP) $(PKG_INSTALL_DIR)/usr/include/asterisk/*.h $(STAGING_DIR)/usr/include/asterisk/
396 $(CP) $(PKG_INSTALL_DIR)/usr/include/asterisk.h $(STAGING_DIR)/usr/include/
397 endef
398
399
400 define Package/asterisk14/conffiles
401 /etc/asterisk/agents.conf
402 /etc/asterisk/alarmreceiver.conf
403 /etc/asterisk/amd.conf
404 /etc/asterisk/asterisk.conf
405 /etc/asterisk/cdr.conf
406 /etc/asterisk/cdr_custom.conf
407 /etc/asterisk/cdr_manager.conf
408 /etc/asterisk/codecs.conf
409 /etc/asterisk/dnsmgr.conf
410 /etc/asterisk/enum.conf
411 /etc/asterisk/extconfig.conf
412 /etc/asterisk/extensions.ael
413 /etc/asterisk/extensions.conf
414 /etc/asterisk/features.conf
415 /etc/asterisk/followme.conf
416 /etc/asterisk/http.conf
417 /etc/asterisk/iax.conf
418 /etc/asterisk/iaxprov.conf
419 /etc/asterisk/indications.conf
420 /etc/asterisk/logger.conf
421 /etc/asterisk/manager.conf
422 /etc/asterisk/misdn.conf
423 /etc/asterisk/modules.conf
424 /etc/asterisk/musiconhold.conf
425 /etc/asterisk/muted.conf
426 /etc/asterisk/osp.conf
427 /etc/asterisk/privacy.conf
428 /etc/asterisk/queues.conf
429 /etc/asterisk/rtp.conf
430 /etc/asterisk/say.conf
431 /etc/asterisk/sip.conf
432 /etc/asterisk/sip_notify.conf
433 /etc/asterisk/sla.conf
434 /etc/asterisk/smdi.conf
435 /etc/asterisk/udptl.conf
436 /etc/asterisk/users.conf
437 endef
438
439 define Package/asterisk14/postinst
440 #!/bin/sh
441 ROOT=`echo $${PKG_ROOT} | sed 's:[\/]:\\\&:g' -`
442 /bin/sed -i 's/\ \/etc/\ '$${ROOT}'etc/g' $${PKG_ROOT}/etc/asterisk/asterisk.conf
443 /bin/sed -i 's/\ \/var/\ '$${ROOT}'var/g' $${PKG_ROOT}/etc/asterisk/asterisk.conf
444 /bin/sed -i 's/\ \/usr/\ '$${ROOT}'usr/g' $${PKG_ROOT}/etc/asterisk/asterisk.conf
445 /bin/sed -i 's/^DEST=/DEST='$${ROOT}'/g' $${PKG_ROOT}/etc/init.d/asterisk
446 /bin/sed -i 's/OPTIONS=\"\"/OPTIONS=\"-C\ '$${ROOT}'etc\/asterisk\/asterisk.conf\"/g' $${PKG_ROOT}/etc/default/asterisk
447 endef
448
449 define Package/asterisk14/install
450 $(CP) $(PKG_INSTALL_DIR)/* $(1)
451 rm -rf $(1)/usr/sbin/astgenkey
452 rm -rf $(1)/usr/sbin/aelparse
453 rm -rf $(1)/usr/sbin/autosupport
454 rm -rf $(1)/usr/sbin/muted
455 rm -rf $(1)/usr/sbin/stereorize
456 rm -rf $(1)/usr/bin
457 rm -rf $(1)/usr/man
458 rm -rf $(1)/usr/include
459 rm -rf $(1)/var/spool/asterisk/meetme
460 rm -rf $(1)/var/spool/asterisk/voicemail
461 (cd $(1)/usr/lib/asterisk; \
462 rm -rf agi-bin; \
463 rm -rf images; \
464 rm -rf keys/*; \
465 rm -rf moh/*.wav; \
466 rm -rf sounds/*; \
467 cd modules; \
468 rm -rf *adsi* *festival* *modem* *oss* *phone* *intercom* \
469 *mp3* *nbscat* *sqlite* *mysql* *postgres* *pgsql* \
470 *voicemail* *speex* *flash* *page* *zap* *jpeg* \
471 *snmp* \
472 chan_alsa.so \
473 chan_gtalk.so \
474 chan_h323.so \
475 chan_mgcp.so \
476 chan_skinny.so \
477 {codec,format}_ilbc.so \
478 codec_lpc10.so \
479 pbx_dundi.so \
480 res_agi.so \
481 res_crypto.so \
482 res_jabber.so \
483 )
484 (cd $(1)/etc/asterisk; \
485 rm -f *odbc* *mysql* *postgres* *pgsql* *voicemail* \
486 *adsi* *oss* *alsa* *festival* *modem* *phone* \
487 *tds* *vofr* *rpt* *vpb* *snmp* \
488 *zapata* \
489 alsa.conf \
490 dundi.conf \
491 gtalk.conf \
492 h323.conf \
493 jabber.conf \
494 mgcp.conf \
495 skinny.conf \
496 )
497 $(INSTALL_DATA) ./files/modules.conf $(1)/etc/asterisk/
498 $(INSTALL_DIR) $(1)/etc/default
499 $(INSTALL_DATA) ./files/asterisk.default $(1)/etc/default/asterisk
500 $(INSTALL_DIR) $(1)/etc/init.d
501 $(INSTALL_BIN) ./files/asterisk.init $(1)/etc/init.d/asterisk
502 endef
503
504
505 define Package/asterisk14-mini/conffiles
506 /etc/asterisk/asterisk.conf
507 /etc/asterisk/enum.conf
508 /etc/asterisk/extconfig.conf
509 /etc/asterisk/extensions.conf
510 /etc/asterisk/features.conf
511 /etc/asterisk/http.conf
512 /etc/asterisk/iax.conf
513 /etc/asterisk/iaxprov.conf
514 /etc/asterisk/logger.conf
515 /etc/asterisk/manager.conf
516 /etc/asterisk/modules.conf
517 /etc/asterisk/musiconhold.conf
518 /etc/asterisk/rtp.conf
519 /etc/asterisk/sip.conf
520 /etc/asterisk/sip_notify.conf
521 /etc/asterisk/users.conf
522 endef
523
524 define Package/asterisk14-mini/install
525 $(INSTALL_DIR) $(1)/etc/asterisk
526 for f in asterisk enum extconfig extensions features http \
527 iax iaxprov logger manager modules musiconhold rtp \
528 sip sip_notify users; do \
529 $(CP) $(PKG_INSTALL_DIR)/etc/asterisk/$$$$f.conf $(1)/etc/asterisk/ ; \
530 done
531 $(INSTALL_DATA) ./files/modules.conf $(1)/etc/asterisk/
532 $(INSTALL_DIR) $(1)/usr/lib/asterisk
533 $(CP) $(PKG_INSTALL_DIR)/usr/lib/asterisk/firmware $(1)/usr/lib/asterisk/
534 $(INSTALL_DIR) $(1)/usr/lib/asterisk/keys
535 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
536 for f in app_dial chan_iax2 chan_local chan_sip codec_gsm \
537 codec_ulaw format_gsm format_pcm format_wav format_wav_gsm \
538 pbx_config res_features res_musiconhold; do \
539 $(CP) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/$$$$f.so $(1)/usr/lib/asterisk/modules/ ; \
540 done
541 $(INSTALL_DIR) $(1)/usr/lib/asterisk/moh
542 $(INSTALL_DIR) $(1)/usr/lib/asterisk/sounds
543 $(INSTALL_DIR) $(1)/usr/sbin
544 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/asterisk $(1)/usr/sbin/
545 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/safe_asterisk $(1)/usr/sbin/
546 $(INSTALL_DIR) $(1)/etc/default
547 $(INSTALL_DATA) ./files/asterisk.default $(1)/etc/default/asterisk
548 $(INSTALL_DIR) $(1)/etc/init.d
549 $(INSTALL_BIN) ./files/asterisk.init $(1)/etc/init.d/asterisk
550 endef
551
552
553 define Package/asterisk14-chan-alsa/conffiles
554 /etc/asterisk/alsa.conf
555 endef
556
557 define Package/asterisk14-chan-alsa/install
558 $(INSTALL_DIR) $(1)/etc/asterisk
559 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/alsa.conf $(1)/etc/asterisk/
560 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
561 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_alsa.so $(1)/usr/lib/asterisk/modules/
562 endef
563
564
565 define Package/asterisk14-chan-gtalk/conffiles
566 /etc/asterisk/gtalk.conf
567 /etc/asterisk/jabber.conf
568 endef
569
570 define Package/asterisk14-chan-gtalk/install
571 $(INSTALL_DIR) $(1)/etc/asterisk
572 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/gtalk.conf $(1)/etc/asterisk/
573 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/jabber.conf $(1)/etc/asterisk/
574 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
575 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_gtalk.so $(1)/usr/lib/asterisk/modules/
576 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_jabber.so $(1)/usr/lib/asterisk/modules/
577 endef
578
579
580 define Package/asterisk14-chan-h323/conffiles
581 /etc/asterisk/h323.conf
582 endef
583
584 define Package/asterisk14-chan-h323/install
585 $(INSTALL_DIR) $(1)/etc/asterisk
586 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/h323.conf $(1)/etc/asterisk/
587 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
588 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_h323.so $(1)/usr/lib/asterisk/modules/
589 endef
590
591
592 define Package/asterisk14-chan-mgcp/install
593 /etc/asterisk/mgcp.conf
594 endef
595
596 define Package/asterisk14-chan-mgcp/install
597 $(INSTALL_DIR) $(1)/etc/asterisk
598 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/mgcp.conf $(1)/etc/asterisk/
599 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
600 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_mgcp.so $(1)/usr/lib/asterisk/modules/
601 endef
602
603
604 define Package/asterisk14-chan-skinny/conffiles
605 /etc/asterisk/skinny.conf
606 endef
607
608 define Package/asterisk14-chan-skinny/install
609 $(INSTALL_DIR) $(1)/etc/asterisk
610 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/skinny.conf $(1)/etc/asterisk/
611 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
612 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_skinny.so $(1)/usr/lib/asterisk/modules/
613 endef
614
615
616 define Package/asterisk14-codec-ilbc/install
617 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
618 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/codec_ilbc.so $(1)/usr/lib/asterisk/modules/
619 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/format_ilbc.so $(1)/usr/lib/asterisk/modules/
620 endef
621
622
623 define Package/asterisk14-codec-lpc10/install
624 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
625 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/codec_lpc10.so $(1)/usr/lib/asterisk/modules/
626 endef
627
628
629 define Package/asterisk14-codec-speex/install
630 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
631 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/codec_speex.so $(1)/usr/lib/asterisk/modules/
632 endef
633
634
635 define Package/asterisk14-pbx-dundi/conffiles
636 /etc/asterisk/dundi.conf
637 endef
638
639 define Package/asterisk14-pbx-dundi/install
640 $(INSTALL_DIR) $(1)/etc/asterisk
641 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/dundi.conf $(1)/etc/asterisk/
642 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
643 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/pbx_dundi.so $(1)/usr/lib/asterisk/modules/
644 endef
645
646
647 define Package/asterisk14-res-agi/install
648 $(INSTALL_DIR) $(1)/usr/lib/asterisk/agi-bin
649 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
650 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_agi.so $(1)/usr/lib/asterisk/modules/
651 endef
652
653
654 define Package/asterisk14-res-crypto/install
655 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
656 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_crypto.so $(1)/usr/lib/asterisk/modules/
657 endef
658
659
660 define Package/asterisk14-pgsql/conffiles
661 /etc/asterisk/cdr_pgsql.conf
662 /etc/asterisk/res_pgsql.conf
663 endef
664
665 define Package/asterisk14-pgsql/install
666 $(INSTALL_DIR) $(1)/etc/asterisk
667 install -m0600 $(PKG_INSTALL_DIR)/etc/asterisk/cdr_pgsql.conf $(1)/etc/asterisk/
668 install -m0600 $(PKG_INSTALL_DIR)/etc/asterisk/res_pgsql.conf $(1)/etc/asterisk/
669 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
670 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/cdr_pgsql.so $(1)/usr/lib/asterisk/modules/
671 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_config_pgsql.so $(1)/usr/lib/asterisk/modules/
672 endef
673
674
675 define Package/asterisk14-sqlite/install
676 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
677 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/cdr_sqlite.so $(1)/usr/lib/asterisk/modules/
678 endef
679
680
681 define Package/asterisk14-sounds/install
682 $(INSTALL_DIR) $(1)/usr/lib/asterisk/sounds
683 $(CP) $(PKG_INSTALL_DIR)/usr/lib/asterisk/sounds/* $(1)/usr/lib/asterisk/sounds/
684 rm -f $(1)/usr/lib/asterisk/sounds/vm-*
685 rm -f $(1)/usr/lib/asterisk/sounds/x
686 endef
687
688
689 define Package/asterisk14-voicemail/conffiles
690 /etc/asterisk/voicemail.conf
691 endef
692
693 define Package/asterisk14-voicemail/install
694 $(INSTALL_DIR) $(1)/etc/asterisk
695 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/voicemail.conf $(1)/etc/asterisk/
696 $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
697 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/*voicemail.so $(1)/usr/lib/asterisk/modules/
698 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_adsi.so $(1)/usr/lib/asterisk/modules/
699 $(INSTALL_DIR) $(1)/usr/lib/asterisk/sounds
700 $(CP) $(PKG_INSTALL_DIR)//usr/lib/asterisk/sounds/vm-*.gsm $(1)/usr/lib/asterisk/sounds/
701 endef
702
703
704 $(eval $(call BuildPackage,asterisk14))
705 $(eval $(call BuildPackage,asterisk14-mini))
706 $(eval $(call BuildPackage,asterisk14-chan-alsa))
707 $(eval $(call BuildPackage,asterisk14-chan-gtalk))
708 $(eval $(call BuildPackage,asterisk14-chan-h323))
709 $(eval $(call BuildPackage,asterisk14-chan-mgcp))
710 $(eval $(call BuildPackage,asterisk14-chan-skinny))
711 $(eval $(call BuildPackage,asterisk14-codec-ilbc))
712 $(eval $(call BuildPackage,asterisk14-codec-lpc10))
713 $(eval $(call BuildPackage,asterisk14-codec-speex))
714 $(eval $(call BuildPackage,asterisk14-pbx-dundi))
715 $(eval $(call BuildPackage,asterisk14-res-agi))
716 $(eval $(call BuildPackage,asterisk14-res-crypto))
717 $(eval $(call BuildPackage,asterisk14-pgsql))
718 $(eval $(call BuildPackage,asterisk14-sqlite))
719 $(eval $(call BuildPackage,asterisk14-voicemail))
720 $(eval $(call BuildPackage,asterisk14-sounds))