| 106 | variant snmp description { snmp support } { |
| 107 | depends_lib-append port:net-snmp |
| 108 | configure.args-delete --without-netsnmp |
| 109 | configure.args-append --with-netsnmp=${prefix} |
| 110 | } |
| 111 | |
| 112 | variant libpri description { libpri support } { |
| 113 | depends_lib-append port:libpri |
| 114 | configure.args-append --with-pri=${prefix} |
| 115 | } |
| 116 | |
| 117 | variant dahdi description { dahdi support } { |
| 118 | depends_lib-append port:dahdi |
| 119 | configure.args-append --with-dahdi=${prefix} |
| 120 | } |
| 121 | |
| 122 | variant ldap description { ldap support } { |
| 123 | depends_lib-append port:openldap |
| 124 | configure.args-append --with-ldap=${prefix} |
| 125 | } |
| 126 | |
| 127 | ## https://issues.asterisk.org/jira/browse/ASTERISK-22459 |
| 128 | variant libiodbc description { use libiodbc for ODBC access } { |
| 129 | depends_lib-append port:libiodbc |
| 130 | } |
| 131 | |
| 132 | variant unixodbc description { use unixodbc for ODBC access } { |
| 133 | depends_lib-append port:unixODBC |
| 134 | } |
| 135 | |
75 | | system "rsync -a ${worksrcpath}/configs/*.sample ${destroot}${prefix}/etc/asterisk" |
76 | | xinstall -m 644 ${filespath}/asterisk.conf.sample.in ${destroot}${prefix}/etc/asterisk/asterisk.conf.sample |
77 | | reinplace "s|@PREFIX@|${prefix}|g" ${destroot}${prefix}/etc/asterisk/asterisk.conf.sample |
78 | | xinstall -d ${destroot}${prefix}/var/log/asterisk \ |
| 137 | xinstall -d ${destroot}${prefix}/share/examples/${name} |
| 138 | system "rsync -a ${worksrcpath}/configs/*.sample ${destroot}${prefix}/share/examples/${name}/" |
| 139 | xinstall -m 644 ${filespath}/asterisk.conf.sample.in ${destroot}${prefix}/share/examples/${name}/asterisk.conf.sample |
| 140 | reinplace "s|@PREFIX@|${prefix}|g" ${destroot}${prefix}/share/examples/${name}/asterisk.conf.sample |
| 141 | xinstall -d -o asterisk -g asterisk ${destroot}${prefix}/var/log/asterisk \ |
| 145 | |
| 146 | post-activate { |
| 147 | foreach f [glob -directory ${prefix}/share/examples/${name} *.sample] { |
| 148 | set fname [file tail $f] |
| 149 | set fname trimright .sample |
| 150 | if ![file exists ${prefix}/etc/${name}/${fname} ] { |
| 151 | copy ${f} ${prefix}/etc/${name}/${fname} |
| 152 | } |
| 153 | } |
| 154 | } |
| 155 | |
| 156 | if {${subport} eq ${name}} { |
| 157 | |
| 158 | livecheck.type regex |
| 159 | livecheck.url ${homepage}/downloads/asterisk/all-asterisk-versions |
| 160 | livecheck.regex "<p>Latest Version - (\\d+(?:\\.\\d+)*)</p>" |
| 161 | #livecheck.regex "Asterisk 12 - Standard</a></p><p><a class=\"download-link-blue\" href=\"http://downloads.asterisk.org/pub/telephony/asterisk/ChangeLog-12-current\">ChangeLog</a></p><p>Latest Version - (\\d+(?:\\.\\d+)*)</p>" |
| 162 | } |
| 163 | |
| 164 | subport ${name}11 { |
| 165 | description An Open Source PBX and telephony toolkit - Certified |
| 166 | version 11.6-cert7 |
| 167 | master_sites http://downloads.asterisk.org/pub/telephony/certified-asterisk/ |
| 168 | distname certified-asterisk-${version} |
| 169 | |
| 170 | checksums rmd160 901db627c27f524fd9760f22bac92deb47d1d2dd \ |
| 171 | sha256 21cf51e2097f62953ccb7490a30357c88d473ad897774f92e36db0047036064d |
| 172 | |
| 173 | livecheck.type regex |
| 174 | livecheck.url ${homepage}/downloads/asterisk/all-asterisk-versions |
| 175 | livecheck.regex "Certified Asterisk 11</a></p><p><a class=\"download-link-blue\" href=\"http://downloads.asterisk.org/pub/telephony/certified-asterisk/ChangeLog-11.\\d+-current\">ChangeLog</a></p><p>Latest Version - (\\d+(?:\\.\\d+-cert\\d+)*)</p>" |
| 176 | } |
| 177 | |
| 178 | subport ${name}-devel { |
| 179 | version 13.0.0-beta3 |
| 180 | |
| 181 | checksums rmd160 8d8ac4bd824f7f36374f39287fee6a541cff5fe3 \ |
| 182 | sha256 1c6ae3280ad037f86c9b03bd9c56c08756404109019b3481304b2a902f47f00b |
| 183 | |
| 184 | livecheck.type regex |
| 185 | livecheck.url ${homepage}/downloads/asterisk/all-asterisk-versions |
| 186 | livecheck.regex "Asterisk 13 - LTS</a></p><p><a class=\"download-link-blue\" href=\"http://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLog-13.*?\">ChangeLog</a></p><p>Latest Version - (\\d+(?:\\.\\d+)*(?:-beta\\d+)*)</p>" |
| 187 | } |
| 188 | |
| 189 | subport ${name}1 { |
| 190 | description An Open Source PBX and telephony toolkit - Certified 1.8 |
| 191 | version 1.8.15-cert7 |
| 192 | master_sites http://downloads.asterisk.org/pub/telephony/certified-asterisk/ |
| 193 | distname certified-asterisk-${version} |
| 194 | |
| 195 | checksums rmd160 d43110e7d496dfbb5b282110b057036b07d48e54 \ |
| 196 | sha256 9027442d22cb01557fb4a5fc4a90a3386692f0f1db1fadd4ad018969c42d3b8f |
| 197 | |
| 198 | livecheck.type none |
| 199 | } |
| 200 | |