[84885] trunk/dports/net/asterisk
ryandesign at macports.org
ryandesign at macports.org
Mon Oct 3 19:34:02 PDT 2011
Revision: 84885
http://trac.macports.org/changeset/84885
Author: ryandesign at macports.org
Date: 2011-10-03 19:33:59 -0700 (Mon, 03 Oct 2011)
Log Message:
-----------
asterisk: update to 1.6.2.18; remove jabber variant and make port always depend on iksemel since it is automatically used; add dependencies on libogg, libvorbis, lua, openldap, popt, portaudio, spandsp-devel, speex and sqlite3 which also get automatically used; fix build error when net-snmp is installed by disabling snmp support; install empty directories that asterisk will need; add home_sound_cache variant; install a sample conf file; see #29920
Modified Paths:
--------------
trunk/dports/net/asterisk/Portfile
Added Paths:
-----------
trunk/dports/net/asterisk/files/asterisk.conf.sample.in
Modified: trunk/dports/net/asterisk/Portfile
===================================================================
--- trunk/dports/net/asterisk/Portfile 2011-10-04 01:41:36 UTC (rev 84884)
+++ trunk/dports/net/asterisk/Portfile 2011-10-04 02:33:59 UTC (rev 84885)
@@ -4,7 +4,7 @@
PortSystem 1.0
name asterisk
-version 1.6.2.10
+version 1.6.2.18
categories net
platforms darwin
maintainers viagente.ca:marc.blanchet mr_bond openmaintainer
@@ -22,11 +22,21 @@
port:zlib \
port:bison \
port:curl \
+ port:iksemel \
+ port:libogg \
+ port:libvorbis \
+ port:lua \
+ port:openldap \
+ port:popt \
+ port:portaudio \
+ port:spandsp-devel \
+ port:speex \
+ port:sqlite3 \
port:wget
-checksums md5 50412a90942ae7306fb8dcc31a05c2ce \
- sha1 60877704de3b7ac6213eb4e0dac2c68a06a40658 \
- rmd160 c8aaf7444364ceab9a97030a3179fb2d6f0fb791
+checksums md5 acbe5c225d66dd9fb11ede2ba7cfd650 \
+ sha1 0bbe7039da52848ef54175fe9907aed03915629f \
+ rmd160 95769626b0acde1a1323d396f3f80923c629e402
startupitem.create yes
startupitem.netchange yes
@@ -36,17 +46,32 @@
patchfiles makeopts.in.diff menuselect_Makefile.diff
-configure.args --without-h323
+configure.args --without-h323 \
+ --without-netsnmp
build.env ASTCFLAGS=-I${prefix}/include \
ASTLDFLAGS=-L${prefix}/lib
-variant jabber description {Enable Jabber support} {
- depends_lib-append port:iksemel
+destroot.keepdirs ${destroot}${prefix}/var/log/asterisk \
+ ${destroot}${prefix}/var/run/asterisk \
+ ${destroot}${prefix}/var/spool/asterisk \
+ ${destroot}${prefix}/var/spool/asterisk/dictate \
+ ${destroot}${prefix}/var/spool/asterisk/meetme \
+ ${destroot}${prefix}/var/spool/asterisk/monitor \
+ ${destroot}${prefix}/var/spool/asterisk/outgoing \
+ ${destroot}${prefix}/var/spool/asterisk/system \
+ ${destroot}${prefix}/var/spool/asterisk/tmp \
+ ${destroot}${prefix}/var/spool/asterisk/voicemail
+
+variant home_sound_cache description {Use/Build sound file cache from .asterisk_sounds_cache in your home directory} {
+ configure.args-append --with-sounds-cache=~/.asterisk_sounds_cache
}
post-destroot {
- system "rsync -a $worksrcpath/configs/*.sample ${destroot}${prefix}/etc/asterisk"
- file mkdir "${destroot}${prefix}/var/run"
- file mkdir "${destroot}${prefix}/var/log/asterisk"
+ system "rsync -a ${worksrcpath}/configs/*.sample ${destroot}${prefix}/etc/asterisk"
+ xinstall -m 644 ${filespath}/asterisk.conf.sample.in ${destroot}${prefix}/etc/asterisk/asterisk.conf.sample
+ reinplace "s|@PREFIX@|${prefix}|g" ${destroot}${prefix}/etc/asterisk/asterisk.conf.sample
+ xinstall -d ${destroot}${prefix}/var/log/asterisk \
+ ${destroot}${prefix}/var/run/asterisk \
+ ${destroot}${prefix}/var/spool/asterisk/outgoing
}
Added: trunk/dports/net/asterisk/files/asterisk.conf.sample.in
===================================================================
--- trunk/dports/net/asterisk/files/asterisk.conf.sample.in (rev 0)
+++ trunk/dports/net/asterisk/files/asterisk.conf.sample.in 2011-10-04 02:33:59 UTC (rev 84885)
@@ -0,0 +1,43 @@
+[directories]
+astetcdir => @PREFIX@/etc/asterisk
+astmoddir => @PREFIX@/lib/asterisk/modules
+astvarlibdir => @PREFIX@/var/lib/asterisk
+astdatadir => @PREFIX@/var/lib/asterisk
+astagidir => @PREFIX@/var/lib/asterisk/agi-bin
+astspooldir => @PREFIX@/var/spool/asterisk
+astrundir => @PREFIX@/var/run/asterisk
+astlogdir => @PREFIX@/var/log/asterisk
+
+;[options]
+;verbose = 3
+;debug = 3
+;alwaysfork = yes ; same as -F at startup
+;nofork = yes ; same as -f at startup
+;quiet = yes ; same as -q at startup
+;timestamp = yes ; same as -T at startup
+;execincludes = yes ; support #exec in config files
+;console = yes ; Run as console (same as -c at startup)
+;highpriority = yes ; Run realtime priority (same as -p at startup)
+;initcrypto = yes ; Initialize crypto keys (same as -i at startup)
+;nocolor = yes ; Disable console colors
+;dontwarn = yes ; Disable some warnings
+;dumpcore = yes ; Dump core on crash (same as -g at startup)
+;languageprefix = yes ; Use the new sound prefix path syntax
+;internal_timing = yes
+;systemname = my_system_name ; prefix uniqueid with a system name for global uniqueness issues
+;maxcalls = 10 ; Maximum amount of calls allowed
+;maxload = 0.9 ; Asterisk stops accepting new calls if the load average exceed this limit
+;cache_record_files = yes ; Cache recorded sound files to another directory during recording
+;record_cache_dir = /tmp ; Specify cache directory (used in cnjunction with cache_record_files)
+;transmit_silence_during_record = yes ; Transmit SLINEAR silence while a channel is being recorded
+;transmit_silence = yes ; Transmit SLINEAR silence while a channel is being recorded or DTMF is being generated
+;transcode_via_sln = yes ; Build transcode paths via SLINEAR, instead of directly
+;runuser = asterisk ; The user to run as
+;rungroup = asterisk ; The group to run as
+
+; Changing the following lines may compromise your security.
+;[files]
+;astctlpermissions = 0660
+;astctlowner = root
+;astctlgroup = root
+;astctl = asterisk.ctl
Property changes on: trunk/dports/net/asterisk/files/asterisk.conf.sample.in
___________________________________________________________________
Added: svn:eol-style
+ native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111003/79898cc4/attachment-0001.html>
More information about the macports-changes
mailing list