source: trunk/dports/net/asterisknow/Portfile

Last change on this file was 71533, checked in by ryandesign@…, 7 years ago

In the interest that all portfiles exemplify correct portfile writing techniques, remove slash before ${prefix} which is not needed because ${prefix} already begins with a slash

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# $Id: Portfile 71533 2010-09-15 20:26:12Z ryandesign@macports.org $
2
3PortSystem              1.0
4
5name                    asterisknow
6version                 2.0
7categories              net
8platforms               darwin
9maintainers             gmail.com:stefan.van.der.eijk
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/
19worksrcdir              ${version}
20
21configure.args          --localstatedir=${prefix}/var --sysconfdir=${prefix}/etc/asterisk
22
23depends_run     port:asterisk
24
25post-destroot {
26        file mkdir ${destroot}${prefix}/var/lib/asterisk/gui_backups
27        file mkdir ${destroot}${prefix}/var/lib/asterisk/static-http/private/bkps
28}
29
30post-patch {
31        reinplace "s|\"/etc|\"${prefix}/etc|g" ${worksrcpath}/scripts/detectdahdi.sh
32        reinplace "s|\"/var|\"${prefix}/var|g" ${worksrcpath}/scripts/dldsoundpack
33        reinplace "s|\ /var|\ ${prefix}/var|g" ${worksrcpath}/scripts/dldsoundpack
34        reinplace "s|\"/etc|\"${prefix}/etc|g" ${worksrcpath}/scripts/editmisdn.sh
35        reinplace "s|\"/etc|\"${prefix}/etc|g" ${worksrcpath}/scripts/editzap.sh
36        reinplace "s|\"/var|\"${prefix}/var|g" ${worksrcpath}/scripts/listfiles
37        reinplace "s|\"/var|\"${prefix}/var|g" ${worksrcpath}/scripts/mastercsvexists
38        reinplace "s|\ /var|\ ${prefix}/var|g" ${worksrcpath}/scripts/mastercsvexists
39        reinplace "s|\"/etc|\"${prefix}/etc|g" ${worksrcpath}/scripts/registerg729.sh
40        reinplace "s|/bin|/usr/bin|g" ${worksrcpath}/scripts/takebackup
41        reinplace "s|\ /etc/asterisk|\ ${prefix}/etc/asterisk|g" ${worksrcpath}/scripts/takebackup
42        reinplace "s|\ /var|\ ${prefix}/var|g" ${worksrcpath}/scripts/takebackup
43        reinplace "s|\ /etc|\ ${prefix}/etc|g" ${worksrcpath}/config/js/index.js
44        reinplace "s|\'/etc|\'${prefix}/etc|g" ${worksrcpath}/config/js/index.js
45        reinplace "s|\'/var|\'${prefix}/var|g" ${worksrcpath}/config/js/index.js
46}
Note: See TracBrowser for help on using the repository browser.