| 1 | # $Id: Portfile 37263 2008-06-01 22:06:23Z mr_bond@macports.org $ |
|---|
| 2 | |
|---|
| 3 | PortSystem 1.0 |
|---|
| 4 | |
|---|
| 5 | name asterisknow |
|---|
| 6 | version 2.0 |
|---|
| 7 | categories net |
|---|
| 8 | platforms darwin |
|---|
| 9 | maintainers stefan.van.der.eijk@gmail.com |
|---|
| 10 | |
|---|
| 11 | description GUI for configuring Asterisk |
|---|
| 12 | long_description Asterisk in minutes. The most popular open source PBX software, \ |
|---|
| 13 | Asterisk, can now be easily configured with a graphical interface. \ |
|---|
| 14 | AsteriskNOW. |
|---|
| 15 | |
|---|
| 16 | homepage http://www.asterisknow.org |
|---|
| 17 | fetch.type svn |
|---|
| 18 | svn.url http://svn.digium.com/svn/asterisk-gui/branches/2.0/ |
|---|
| 19 | #svn.tag 4955 |
|---|
| 20 | worksrcdir ${version} |
|---|
| 21 | |
|---|
| 22 | configure.args --localstatedir=${prefix}/var --sysconfdir=${prefix}/etc/asterisk |
|---|
| 23 | |
|---|
| 24 | post-destroot { |
|---|
| 25 | file mkdir ${destroot}/${prefix}/var/lib/asterisk/gui_backups |
|---|
| 26 | file mkdir ${destroot}/${prefix}/var/lib/asterisk/static-http/private/bkps |
|---|
| 27 | } |
|---|
| 28 | |
|---|
| 29 | post-patch { |
|---|
| 30 | reinplace "s|\"/etc|\"${prefix}/etc|g" ${worksrcpath}/scripts/detectdahdi.sh |
|---|
| 31 | reinplace "s|\"/var|\"${prefix}/var|g" ${worksrcpath}/scripts/dldsoundpack |
|---|
| 32 | reinplace "s|\ /var|\ ${prefix}/var|g" ${worksrcpath}/scripts/dldsoundpack |
|---|
| 33 | reinplace "s|\"/etc|\"${prefix}/etc|g" ${worksrcpath}/scripts/editmisdn.sh |
|---|
| 34 | reinplace "s|\"/etc|\"${prefix}/etc|g" ${worksrcpath}/scripts/editzap.sh |
|---|
| 35 | reinplace "s|\"/var|\"${prefix}/var|g" ${worksrcpath}/scripts/listfiles |
|---|
| 36 | reinplace "s|\"/var|\"${prefix}/var|g" ${worksrcpath}/scripts/mastercsvexists |
|---|
| 37 | reinplace "s|\ /var|\ ${prefix}/var|g" ${worksrcpath}/scripts/mastercsvexists |
|---|
| 38 | reinplace "s|\"/etc|\"${prefix}/etc|g" ${worksrcpath}/scripts/registerg729.sh |
|---|
| 39 | reinplace "s|/bin|/usr/bin|g" ${worksrcpath}/scripts/takebackup |
|---|
| 40 | reinplace "s|\ /etc/asterisk|\ ${prefix}/etc/asterisk|g" ${worksrcpath}/scripts/takebackup |
|---|
| 41 | reinplace "s|\ /var|\ ${prefix}/var|g" ${worksrcpath}/scripts/takebackup |
|---|
| 42 | reinplace "s|\ /etc|\ ${prefix}/etc|g" ${worksrcpath}/config/js/index.js |
|---|
| 43 | reinplace "s|\'/etc|\'${prefix}/etc|g" ${worksrcpath}/config/js/index.js |
|---|
| 44 | reinplace "s|\'/var|\'${prefix}/var|g" ${worksrcpath}/config/js/index.js |
|---|
| 45 | } |
|---|