Ticket #24391: Portfile

File Portfile, 1.8 KB (added by stefan.van.der.eijk@…, 14 years ago)

1.6.2.14

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id$
3
4PortSystem          1.0
5
6name                asterisk
7version             1.6.2.14
8categories          net
9platforms           darwin
10maintainers         viagente.ca:marc.blanchet mr_bond openmaintainer
11
12description         An Open Source PBX and telephony toolkit
13long_description    Asterisk is an open source PBX and telephony toolkit.  It \
14                    provides the ability to develop telephony applications on top of internet \
15                    telephony (Voice over IP) as well as traditional telephony connectivity (PSTN).
16               
17homepage            http://www.asterisk.org
18master_sites        http://downloads.digium.com/pub/asterisk/releases/
19                   
20depends_lib         port:ncurses \
21                    port:openssl \
22                    port:zlib \
23                    port:bison \
24                    port:curl \
25                    port:wget
26
27checksums           md5     4f0414c9b2d449222b2fc7096cbaffe7 \
28                    sha1    452b5b9200b9ac82679102516cb7cbf006c1bd9a \
29                    rmd160  96024982e8e298c5ec61c5e3d6322a788060df51
30
31startupitem.create      yes
32startupitem.netchange   yes
33startupitem.executable  ${prefix}/sbin/asterisk -d
34
35universal_variant   no
36
37configure.args      --without-h323
38
39build.env           ASTCFLAGS=-I${prefix}/include \
40                    ASTLDFLAGS=-L${prefix}/lib
41
42variant jabber description {Enable Jabber support} {
43    depends_lib-append port:iksemel
44}
45
46post-destroot {
47    system "rsync -a $worksrcpath/configs/*.sample ${destroot}${prefix}/etc/asterisk"
48    file mkdir "${destroot}${prefix}/var/run"
49    file mkdir "${destroot}${prefix}/var/log/asterisk"
50}