1 # Copyright
(C
) 2007-2008, Stelios Koroneos
- Digital OPSiS
, All Rights Reserved
2 # Released under the MIT license
(see packages
/COPYING
)
3 DESCRIPTION
= "The Asterisk open source software PBX"
4 HOMEPAGE
= "http://www.asterisk.org"
7 SECTION
= "console/telephony"
8 DEPENDS
= "speex readline zlib openssl curl popt gnutls sqlite libogg libvorbis"
9 #RRECOMMENDS_$
{PN
} = "logrotate"
11 SRC_URI
="http://downloads.digium.com/pub/asterisk/releases/asterisk-${PV}.tar.gz \
12 # file://sounds.xml.patch \
13 file://Makefile.patch \
19 ARCH_dht
-walnut
="powerpc"
20 ARCH_magicbox
="powerpc"
21 ARCH_sequoia
="powerpc"
23 INITSCRIPT_NAME
= "asterisk"
24 INITSCRIPT_PARAMS
= "defaults 60"
26 inherit autotools update
-rc.d
28 EXTRA_OECONF
= "--with-ssl=${STAGING_EXECPREFIXDIR} \
29 --with-z=${STAGING_EXECPREFIXDIR} \
30 --with-curl=${STAGING_EXECPREFIXDIR} \
31 --with-termcap=${STAGING_EXECPREFIXDIR} \
32 --with-ogg=${STAGING_EXECPREFIXDIR} \
33 --with-vorbis=${STAGING_EXECPREFIXDIR} \
34 --with-sqlite=${STAGING_EXECPREFIXDIR} \
35 --with-popt=${STAGING_EXECPREFIXDIR} \
36 --with-gnutls=${STAGING_EXECPREFIXDIR} \
38 --with-ncurses=${STAGING_EXECPREFIXDIR} \
51 #export NOISY_BUILD
=yes
53 export ASTCFLAGS
= "-fsigned-char -I${STAGING_INCDIR} -DPATH_MAX=4096"
54 export ASTLDFLAGS
="${LDFLAGS} -lpthread -ldl -lresolv "
57 do_configure_prepend
() {
58 sed
-i 's
:/var
:$
{localstatedir
}:' $
{WORKDIR
}/logrotate
59 sed
-i 's
:/etc
/init.d
:$
{sysconfdir
}/init.d
:' $
{WORKDIR
}/logrotate
60 sed
-i 's
:/var
:$
{localstatedir
}:' $
{WORKDIR
}/volatiles
64 # Looks like rebuilding configure doesn't work
, so we are skipping
65 # that
and are just using the shipped one
74 #make sure that menuselect gets build using host toolchain
75 unset CC LD CXX CCLD CFLAGS CPPFLAGS LDFLAGS CXXFLAGS RANLIB
85 install
-d $
{D
}$
{sysconfdir
}/init.d
/
86 install
-m
755 $
{WORKDIR
}/init $
{D
}$
{sysconfdir
}/init.d
/asterisk
87 install
-c
-D
-m
644 $
{WORKDIR
}/logrotate $
{D
}$
{sysconfdir
}/logrotate.d
/asterisk
88 install
-c
-D
-m
644 $
{WORKDIR
}/volatiles $
{D
}$
{sysconfdir
}/default/volatiles
/asterisk
91 pkg_postinst_prepend
() {
92 grep
-q asterisk $
{sysconfdir
}/group || addgroup
--system asterisk
93 grep
-q asterisk $
{sysconfdir
}/passwd || adduser
--system
--home $
{localstatedir
}/run
/asterisk
--no
-create
-home
--disabled
-password
--ingroup asterisk
-s $
{base_bindir
}/false asterisk
94 chown
-R asterisk
:asterisk $
{libdir
}/asterisk $
{localstatedir
}/lib
/asterisk $
{localstatedir
}/spool
/asterisk $
{localstatedir
}/log/asterisk $
{localstatedir
}/run
/asterisk $
{sysconfdir
}/asterisk
97 FILES_$
{PN
} += "${libdir}/asterisk/modules/*"
98 FILES_$
{PN
}-dbg
+= "${libdir}/asterisk/modules/.debug \
99 ${localstatedir}/lib/asterisk/*/.debug"
101 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/adsi.conf"
102 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/adtranvofr.conf"
103 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/agents.conf"
104 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/alarmreceiver.conf"
105 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/alsa.conf"
106 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/amd.conf"
107 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/asterisk.adsi"
108 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/asterisk.conf"
109 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/cdr.conf"
110 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/cdr_custom.conf"
111 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/cdr_manager.conf"
112 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/cdr_odbc.conf"
113 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/cdr_pgsql.conf"
114 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/cdr_tds.conf"
115 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/codecs.conf"
116 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/dnsmgr.conf"
117 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/dundi.conf"
118 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/enum.conf"
119 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/extconfig.conf"
120 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/extensions.ael"
121 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/extensions.conf"
122 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/features.conf"
123 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/festival.conf"
124 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/followme.conf"
125 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/func_odbc.conf"
126 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/gtalk.conf"
127 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/h323.conf"
128 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/http.conf"
129 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/iax.conf"
130 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/iaxprov.conf"
131 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/indications.conf"
132 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/jabber.conf"
133 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/logger.conf"
134 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/manager.conf"
135 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/meetme.conf"
136 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/mgcp.conf"
137 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/misdn.conf"
138 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/modules.conf"
139 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/musiconhold.conf"
140 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/muted.conf"
141 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/osp.conf"
142 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/oss.conf"
143 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/phone.conf"
144 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/privacy.conf"
145 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/queues.conf"
146 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/res_odbc.conf"
147 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/res_snmp.conf"
148 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/rpt.conf"
149 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/rtp.conf"
150 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/say.conf"
151 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/sip.conf"
152 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/sip_notify.conf"
153 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/skinny.conf"
154 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/sla.conf"
155 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/smdi.conf"
156 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/telcordia-1.adsi"
157 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/udptl.conf"
158 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/users.conf"
159 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/voicemail.conf"
160 CONFFILES_$
{PN
} += "${sysconfdir}/asterisk/vpb.conf"
161 CONFFILES_$
{PN
} += "${sysconfdir}/logrotate.d/asterisk"
163 SRC_URI
[md5sum
] = "f5fdaa7e4a6d9b8dfc9e2bef8ee81681"
164 SRC_URI
[sha256sum
] = "e78e73de5d9b920070b778cbb2ab077119a86a71a59755d67aa2c3a82b4239c4"