source: trunk/dports/net/miredo/Portfile

Last change on this file was 113965, checked in by macsforever2000@…, 4 years ago

mnick has retired.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# -*- coding: utf-8; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: Portfile 113965 2013-11-26 20:23:14Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                miredo
7version             1.2.2
8revision            1
9maintainers         nomaintainer
10
11categories          net
12description         Miredo is an open-source Teredo IPv6 tunneling software
13long_description    ${description}. \
14                    It includes functional implementations of all components of the Teredo \
15                    specification (client, relay and server). It is meant to provide IPv6 \
16                    connectivity even from behind NAT devices
17
18platforms           darwin
19license             GPL-2
20
21homepage            http://www.remlab.net/miredo/
22master_sites        http://www.remlab.net/files/miredo/
23
24use_bzip2           yes
25
26checksums           md5     a04a40c4b42869968e00495636ff6d82 \
27                    sha1    9facd2ef23ae7a9969dfbe179a6c3ebddd87a2cc \
28                    rmd160  16c9ec08d5ae935027a49153dc44745e2cc916c7
29
30patchfiles          patch-nosignal.diff
31use_parallel_build  no
32
33depends_lib-append  port:judy port:tuntaposx
34
35# run as miredo user
36set miredo_user     miredo
37set miredo_group    miredo
38configure.args-append   --enable-miredo-user
39
40startupitem.create      yes
41startupitem.executable  ${prefix}/sbin/miredo -c ${prefix}/etc/miredo/miredo.conf \
42                            -p ${prefix}/var/run/${name}.pid --foreground
43
44post-destroot {
45    # Renaming of interface isn't supported
46    reinplace "s|^InterfaceName|#InterfaceName|" ${destroot}${prefix}/etc/miredo/miredo.conf
47
48    # Create user and group
49    addgroup ${miredo_group}
50    adduser ${miredo_user} gid=[existsgroup ${miredo_group}]
51}
52
53livecheck.type  regex
54livecheck.url   ${master_sites}
55livecheck.regex <a href=\"${name}-(.*)${extract.suffix}\">
Note: See TracBrowser for help on using the repository browser.