1 | # $Id: Portfile 37263 2008-06-01 22:06:23Z mr_bond@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name asterisk |
---|
6 | version 1.6.2.0-beta3 |
---|
7 | categories net |
---|
8 | platforms darwin |
---|
9 | maintainers viagente.ca:marc.blanchet mr_bond openmaintainer |
---|
10 | |
---|
11 | description An Open Source PBX and telephony toolkit |
---|
12 | long_description Asterisk is an open source PBX and telephony toolkit. It \ |
---|
13 | provides the ability to develop telephony applications on top of internet \ |
---|
14 | telephony (Voice over IP) as well as traditional telephony connectivity (PSTN). |
---|
15 | |
---|
16 | homepage http://www.asterisk.org |
---|
17 | master_sites http://downloads.digium.com/pub/asterisk/releases/ |
---|
18 | |
---|
19 | depends_lib port:ncurses \ |
---|
20 | port:openssl \ |
---|
21 | port:zlib \ |
---|
22 | port:bison \ |
---|
23 | port:curl \ |
---|
24 | port:wget |
---|
25 | |
---|
26 | checksums md5 53989aba01b046a67c6f7754d7a3abcd \ |
---|
27 | sha1 013f2e7df5de917e7ac46236185fd9d1d573199d |
---|
28 | |
---|
29 | configure.args --localstatedir=${prefix}/var --sysconfdir=${prefix}/etc/asterisk \ |
---|
30 | --without-h323 --without-dahdi --without-gtk --without-gtk2 --without-gmime \ |
---|
31 | --without-x11 |
---|
32 | |
---|
33 | build.env ASTCFLAGS=-I${prefix}/include \ |
---|
34 | ASTLDFLAGS=-L${prefix}/lib |
---|
35 | |
---|
36 | post-destroot { |
---|
37 | system "rsync -a $worksrcpath/configs/*.sample ${destroot}/${prefix}/etc/asterisk" |
---|
38 | file mkdir "${destroot}/${prefix}/var/run" |
---|
39 | file mkdir "${destroot}/${prefix}/var/run/asterisk" |
---|
40 | file mkdir "${destroot}/${prefix}/var/log/asterisk" |
---|
41 | } |
---|