Ticket #25442: Portfile

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

1.6.2.10

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.10
8revision        1
9categories          net
10platforms           darwin
11maintainers         viagente.ca:marc.blanchet mr_bond openmaintainer
12
13description         An Open Source PBX and telephony toolkit
14long_description    Asterisk is an open source PBX and telephony toolkit.  It \
15                    provides the ability to develop telephony applications on top of internet \
16                    telephony (Voice over IP) as well as traditional telephony connectivity (PSTN).
17               
18homepage            http://www.asterisk.org
19master_sites        http://downloads.digium.com/pub/asterisk/releases/
20                   
21depends_lib         port:ncurses \
22                    port:openssl \
23                    port:zlib \
24                    port:bison \
25                    port:curl \
26                    port:wget
27
28checksums           md5     50412a90942ae7306fb8dcc31a05c2ce \
29                    sha1    60877704de3b7ac6213eb4e0dac2c68a06a40658 \
30                    rmd160  c8aaf7444364ceab9a97030a3179fb2d6f0fb791
31
32startupitem.create      yes
33startupitem.netchange   yes
34startupitem.executable  ${prefix}/sbin/asterisk -d
35
36universal_variant   no
37
38configure.args      --without-h323
39
40build.env           ASTCFLAGS=-I${prefix}/include \
41                    ASTLDFLAGS=-L${prefix}/lib
42                   
43variant jabber description {Enable Jabber support} {
44    depends_lib-append port:iksemel
45}
46
47post-destroot {
48    system "rsync -a $worksrcpath/configs/*.sample ${destroot}/${prefix}/etc/asterisk"
49    file mkdir "${destroot}/${prefix}/var/run"
50    file mkdir "${destroot}/${prefix}/var/log/asterisk"
51}