Ticket #29920: Portfile-asterisk.diff

File Portfile-asterisk.diff, 2.6 KB (added by funnymanva@…, 13 years ago)

Port file patch

  • Portfile

    old new  
    44PortSystem          1.0
    55
    66name                asterisk
    7 version             1.6.2.10
     7version             1.6.2.18
    88categories          net
    99platforms           darwin
    1010maintainers         viagente.ca:marc.blanchet mr_bond openmaintainer
     
    2424                    port:curl \
    2525                    port:wget
    2626
    27 checksums           md5     50412a90942ae7306fb8dcc31a05c2ce \
    28                     sha1    60877704de3b7ac6213eb4e0dac2c68a06a40658 \
    29                     rmd160  c8aaf7444364ceab9a97030a3179fb2d6f0fb791
     27checksums           md5     acbe5c225d66dd9fb11ede2ba7cfd650 \
     28                    sha1    0bbe7039da52848ef54175fe9907aed03915629f \
     29                    rmd160  95769626b0acde1a1323d396f3f80923c629e402
    3030
    3131startupitem.create      yes
    3232startupitem.netchange   yes
     
    4141build.env           ASTCFLAGS=-I${prefix}/include \
    4242                    ASTLDFLAGS=-L${prefix}/lib
    4343
     44destroot.keepdirs   ${destroot}${prefix}/var/spool/asterisk \
     45                    ${destroot}${prefix}/var/spool/asterisk/dictate \
     46                    ${destroot}${prefix}/var/spool/asterisk/meetme \
     47                    ${destroot}${prefix}/var/spool/asterisk/monitor \
     48                    ${destroot}${prefix}/var/spool/asterisk/system \
     49                    ${destroot}${prefix}/var/spool/asterisk/tmp \
     50                    ${destroot}${prefix}/var/spool/asterisk/voicemail \
     51                    ${destroot}${prefix}/var/spool/asterisk/outgoing \
     52                    ${destroot}${prefix}/var/run/asterisk \
     53                    ${destroot}${prefix}/var/log/asterisk
     54
    4455variant jabber description {Enable Jabber support} {
    4556    depends_lib-append port:iksemel
    4657}
    4758
     59variant home_sound_cache description {Use/Build sound file cache from .asterisk_sounds_cache in your home directory} {
     60    configure.args-append --with-sounds-cache=~/.asterisk_sounds_cache
     61}
     62
    4863post-destroot {
    49     system "rsync -a $worksrcpath/configs/*.sample ${destroot}${prefix}/etc/asterisk"
    50     file mkdir "${destroot}${prefix}/var/run"
     64    system "rsync -a ${worksrcpath}/configs/*.sample ${destroot}${prefix}/etc/asterisk"
     65    file copy "${filespath}/asterisk.conf" "${destroot}${prefix}/etc/asterisk/asterisk.conf"
     66    reinplace "s|PREFIX|${prefix}|g" "${destroot}${prefix}/etc/asterisk/asterisk.conf"
     67    file mkdir "${destroot}${prefix}/var/run/asterisk"
    5168    file mkdir "${destroot}${prefix}/var/log/asterisk"
     69    file mkdir "${destroot}${prefix}/var/spool/asterisk/outgoing"
    5270}