Ticket #29920: Portfile-asterisk.diff
File Portfile-asterisk.diff, 2.6 KB (added by funnymanva@…, 13 years ago) |
---|
-
Portfile
old new 4 4 PortSystem 1.0 5 5 6 6 name asterisk 7 version 1.6.2.1 07 version 1.6.2.18 8 8 categories net 9 9 platforms darwin 10 10 maintainers viagente.ca:marc.blanchet mr_bond openmaintainer … … 24 24 port:curl \ 25 25 port:wget 26 26 27 checksums md5 50412a90942ae7306fb8dcc31a05c2ce\28 sha1 60877704de3b7ac6213eb4e0dac2c68a06a40658\29 rmd160 c8aaf7444364ceab9a97030a3179fb2d6f0fb79127 checksums md5 acbe5c225d66dd9fb11ede2ba7cfd650 \ 28 sha1 0bbe7039da52848ef54175fe9907aed03915629f \ 29 rmd160 95769626b0acde1a1323d396f3f80923c629e402 30 30 31 31 startupitem.create yes 32 32 startupitem.netchange yes … … 41 41 build.env ASTCFLAGS=-I${prefix}/include \ 42 42 ASTLDFLAGS=-L${prefix}/lib 43 43 44 destroot.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 44 55 variant jabber description {Enable Jabber support} { 45 56 depends_lib-append port:iksemel 46 57 } 47 58 59 variant 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 48 63 post-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" 51 68 file mkdir "${destroot}${prefix}/var/log/asterisk" 69 file mkdir "${destroot}${prefix}/var/spool/asterisk/outgoing" 52 70 }