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.1.1 |
---|
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 | patchfiles 20090420__bug14930.diff |
---|
19 | |
---|
20 | depends_lib port:ncurses \ |
---|
21 | port:openssl \ |
---|
22 | port:zlib \ |
---|
23 | port:bison \ |
---|
24 | port:curl \ |
---|
25 | port:wget |
---|
26 | |
---|
27 | checksums md5 7e4dccc79c504ae497ff42062279905d \ |
---|
28 | sha1 cd976cf05ba4c4b53b50e7af69fd6d684f070f86 \ |
---|
29 | rmd160 2fd9fc82a3f9cf23bbe2ed974b008a7a5bfdd570 |
---|
30 | |
---|
31 | startupitem.create yes |
---|
32 | startupitem.netchange yes |
---|
33 | startupitem.executable ${prefix}/sbin/asterisk -d |
---|
34 | |
---|
35 | #configure.args --localstatedir=${prefix}/var --sysconfdir=${prefix}/etc/ \ |
---|
36 | configure.args --without-h323 --without-zaptel |
---|
37 | |
---|
38 | build.env ASTCFLAGS=-I${prefix}/include \ |
---|
39 | ASTLDFLAGS=-L${prefix}/lib |
---|
40 | |
---|
41 | post-destroot { |
---|
42 | system "rsync -a $worksrcpath/configs/*.sample ${destroot}/${prefix}/etc/asterisk" |
---|
43 | file mkdir "${destroot}/${prefix}/var/run" |
---|
44 | file mkdir "${destroot}/${prefix}/var/log/asterisk" |
---|
45 | } |
---|