是否有方法在安装时指定星号目录或从源指定男性星号?

时间:2012-10-27 10:37:12

标签: asterisk

我的星号安装(1.8.12.0,mac osx 10.8.2)具有以下默认目录:

* Directories
-------------
Configuration file:          
Configuration directory:     /usr/local/etc/asterisk
Module directory:            /Library/Application Support/Asterisk/Modules/modules
Spool directory:             /var/spool/asterisk
Log directory:               /Library/Logs/Asterisk
Run/Sockets directory:       /Library/Application Support/Asterisk/Run
PID file:                    /Library/Application Support/Asterisk/Run/asterisk.pid
VarLib directory:            /Library/Application Support/Asterisk
Data directory:              /Library/Application Support/Asterisk
ASTDB:                       /Library/Application Support/Asterisk/astdb
IAX2 Keys directory:         /Library/Application Support/Asterisk/keys
AGI Scripts directory:       /Library/Application Support/Asterisk/agi-bin

但asterisk.conf中的目录部分是模板:

[directories](!)
astetcdir => /usr/local/etc/asterisk
astmoddir => /Library/Application Support/Asterisk/Modules/modules
astvarlibdir => /Library/Application Support/Asterisk
astdbdir => /Library/Application Support/Asterisk
astkeydir => /Library/Application Support/Asterisk
astdatadir => /Library/Application Support/Asterisk
astagidir => /Library/Application Support/Asterisk/agi-bin
astspooldir => /var/spool/asterisk
astrundir => /Library/Application Support/Asterisk/Run
astlogdir => /Library/Logs/Asterisk

目标:在Debian / Ubuntu安装上设置directoies默认值:

* Directories
-------------
Configuration file:          
Configuration directory:     /etc/asterisk
Module directory:            /usr/lib/asterisk/modules
Spool directory:             /var/spool/asterisk
Log directory:               /var/log/asterisk
Run/Sockets directory:       /var/run/asterisk
PID file:                    /var/run/asterisk/asterisk.pid
VarLib directory:            /var/lib/asterisk
Data directory:              /var/lib/asterisk
ASTDB:                       /var/lib/asterisk/astdb
IAX2 Keys directory:         /var/lib/asterisk/keys
AGI Scripts directory:       /var/lib/asterisk/agi-bin

asterisk.conf中的目录:

[directories]
astetcdir=>/etc/asterisk
astmoddir=>/usr/lib/asterisk/modules
astvarlibdir=>/var/lib/asterisk
astdbdir=>/var/lib/asterisk
astkeydir=>/var/lib/asterisk
astdatadir=>/var/lib/asterisk
astagidir=>/var/lib/asterisk/agi-bin
astspooldir=>/var/spool/asterisk
astrundir=>/var/run/asterisk
astlogdir=>/var/log/asterisk

如何在安装/配置步骤中设置目录设置?

还有一件事:我找到了文件,名称为asterisk.pc,位于/ usr / local / lib / pkgconfig /:

install_prefix=
version_number=999999
etcdir=/usr/local/etc/asterisk
libdir=/Library/Application Support/Asterisk/Modules
varlibdir=/Library/Application Support/Asterisk
varrundir=/Library/Application Support/Asterisk/Run
spooldir=/var/spool/asterisk
logdir=/Library/Logs/Asterisk
confpath=/usr/local/etc/asterisk/asterisk.conf
moddir=/Library/Application Support/Asterisk/Modules/modules
agidir=/Library/Application Support/Asterisk/agi-bin

Name: asterisk
Description: Open Source PBX and telephony toolkit
Version: SVN-branch-1.8-r375325
Libs:
Cflags: -I/usr/include/libxml2-g3 -D__Darwin__

这是什么?此文件是在安装或配置后创建的吗?

1 个答案:

答案 0 :(得分:1)

回答我的问题: 做def。 dirs你需要配置带参数的星号: - prefix = / --exec_prefix = / usr

(参见映射https://docs.google.com/spreadsheet/ccc?key=0ArO2cmv04QLpdHR0UVZaNzJMR2tKNTFJdjlnSkc2RFE

的参数