# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/asterisk/asterisk.conf # Copyright (C) 2004 - 2025 The T2 SDE Project # Copyright (C) 1998 - 2004 ROCK Linux Project # SPDX-License-Identifier: GPL-2.0 # --- T2-COPYRIGHT-END --- if [ $prefix_auto = 1 ]; then prefix="opt/asterisk" set_confopt fi # we need to build the configuration tool natively # code shared with asterisk-addons if atstage cross; then asterisk_build_menuselect() { ( cd menuselect CC=$HOST_CC CPP=cpp RANLIB=ranlib \ ./configure --build $arch_build eval $MAKE ) } hook_add preconf 5 "asterisk_build_menuselect" fi export CONFIG_LIBXML2="$root/usr/bin/xml2-config" var_append confopt ' ' --with-sounds-cache=$builddir var_append makeopt ' ' ASTLIBDIR=$libdir var_append makeopt ' ' ASTVARLIBDIR=$datadir var_append makeopt ' ' ASTETCDIR=$sysconfdir var_append makeopt ' ' ASTSPOOLDIR=$localstatedir/spool var_append makeopt ' ' ASTLOGDIR=$localstatedir/log var_append makeopt ' ' ASTHEADERDIR=$includedir/asterisk var_append makeopt ' ' ASTBINDIR=$bindir var_append makeopt ' ' ASTSBINDIR=$sbindir var_append makeopt ' ' ASTVARRUNDIR=$localstatedir/run var_append makeopt ' ' ASTMANDIR=$mandir makeinstopt="$makeopt DESTDIR=$root install samples" var_append GCC_WRAPPER_INSERT ' ' -I/opt/postgresql/include var_append GCC_WRAPPER_INSERT ' ' -L/opt/postgresql/lib