# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/asterisk/asterisk.conf # Copyright (C) 2004 - 2022 The T2 SDE Project # Copyright (C) 1998 - 2004 ROCK Linux Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2. # --- T2-COPYRIGHT-NOTE-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 extraconfopt " " "--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"