Ticket #19020: Portfile

File Portfile, 2.1 KB (added by cr@…, 16 years ago)
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            1
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
38
39pre-configure {
40        reinplace "s|#pidfile /var/run/aiccu.pid|pidfile ${pid_file}|" \
41          ${worksrcpath}/doc/aiccu.conf
42}
43use_configure       no
44
45destroot.args       DESTDIR=${destroot}${prefix}
46destroot.destdir    ${destroot}${prefix}
47
48startupitem.create      yes
49startupitem.pidfile     clean ${pid_file}
50startupitem.start       "kextstat -lb foo.tun || kextload  ${kext_dir}/tun.kext ; \
51                         ${prefix}/sbin/aiccu start ${conf_file}"
52startupitem.stop        "${prefix}/sbin/aiccu stop ${conf_file}"
53startupitem.netchange   yes
54