Ticket #19042: Portfile

File Portfile, 2.2 KB (added by cr@…, 16 years ago)

new version with corrected variant description

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id$
3
4PortSystem          1.0
5
6name                aiccu
7version             20070115
8revision            2
9categories          net ipv6
10platforms           darwin
11maintainers         23bit.net:cr
12
13description         Automatic IPv6 Connectivity Configuration Utility
14long_description    AICCU makes it very easy for SixXS users to get IPv6 connectivity \
15                    everywhere they want. It uses the TIC (Tunnel Information & Control) \
16                    protocol to request the information needed to setup a tunnel through \
17                    which the connectivity is created. \
18                    It supports 6in4 static (RFC 2893), 6in4 heartbeat (RFC 2893 + \
19                    draft-massar-v6ops-heartbeat) and AYIYA (draft-massar-v6ops-ayiya) \
20                    tunnel protocols.
21homepage            http://www.sixxs.net/tools/aiccu/
22
23master_sites        http://www.sixxs.net/archive/sixxs/aiccu/unix/
24distname            aiccu_${version}
25
26checksums           md5 c9bcc83644ed788e22a7c3f3d4021350 \
27                    sha1 7b3c51bfe291c777e74b2688e9339b4fb72e6a39 \
28                    rmd160 9415899c98c1f7e84b9711017b82a3a0ea2ae9de
29
30depends_lib         port:tuntaposx
31
32set kext_dir        ${prefix}/Library/Extensions
33set pid_file        ${prefix}/var/run/${name}.pidfile
34set conf_file       ${prefix}/etc/aiccu.conf
35
36worksrcdir          aiccu
37patchfiles          Makefile.patch aiccu_conf.patch
38
39pre-configure {
40        reinplace "s|#pidfile /var/run/aiccu.pid|pidfile ${pid_file}|" \
41          ${worksrcpath}/doc/aiccu.conf
42}
43use_configure       no
44
45build.args-append   MPPREFIX=${prefix}
46
47destroot.args       DESTDIR=${destroot}${prefix}
48destroot.destdir    ${destroot}${prefix}
49
50startupitem.create      yes
51startupitem.pidfile     clean ${pid_file}
52startupitem.start       "kextstat -lb foo.tun || kextload  ${kext_dir}/tun.kext ; \
53                         ${prefix}/sbin/aiccu start ${conf_file}"
54startupitem.stop        "${prefix}/sbin/aiccu stop ${conf_file}"
55startupitem.netchange   yes
56
57variant gnutls description {TIC server transport encryption} {
58    depends_lib-append  port:gnutls
59    patchfiles-append   gnutls.patch
60}
61