Ticket #29920: Portfile-asterisk.1.6.2.19.diff

File Portfile-asterisk.1.6.2.19.diff, 2.7 KB (added by stefan.van.der.eijk@…, 13 years ago)

up to 1.6.2.19

  • Portfile

    old new  
    44PortSystem          1.0
    55
    66name                asterisk
    7 version             1.6.2.10
     7version             1.6.2.19
    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     5dfb9352bacfa7f4dc2ef72cb83715c2 \
     28                    sha1    a81b426fa5146696abfdacd171f31f48aa976eb7 \
     29                    rmd160  89710872034d9ebaa54d66ed0d7f5f6724caa780
    3030
    3131startupitem.create      yes
    3232startupitem.netchange   yes
     
    3434
    3535universal_variant   no
    3636
     37patchfiles          makeopts.in.diff menuselect_Makefile.diff
     38
    3739configure.args      --without-h323
    3840
    3941build.env           ASTCFLAGS=-I${prefix}/include \
    4042                    ASTLDFLAGS=-L${prefix}/lib
    4143
     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
    4255variant jabber description {Enable Jabber support} {
    4356    depends_lib-append port:iksemel
    4457}
    4558
     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
    4663post-destroot {
    47     system "rsync -a $worksrcpath/configs/*.sample ${destroot}${prefix}/etc/asterisk"
    48     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"
    4968    file mkdir "${destroot}${prefix}/var/log/asterisk"
     69    file mkdir "${destroot}${prefix}/var/spool/asterisk/outgoing"
    5070}