Ticket #20084: Portfile

File Portfile, 1.9 KB (added by stefan.van.der.eijk@…, 15 years ago)
Line 
1# $Id: Portfile 37263 2008-06-01 22:06:23Z mr_bond@macports.org $
2
3PortSystem              1.0
4
5name                    asterisknow
6version                 2.0
7categories              net
8platforms               darwin
9maintainers             stefan.van.der.eijk@gmail.com
10
11description             GUI for configuring Asterisk
12long_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
16homepage                http://www.asterisknow.org
17fetch.type              svn
18svn.url                 http://svn.digium.com/svn/asterisk-gui/branches/2.0/
19#svn.tag                4955
20worksrcdir              ${version}
21
22configure.args          --localstatedir=${prefix}/var --sysconfdir=${prefix}/etc/asterisk
23
24post-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
29post-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}