source: trunk/dports/net/dibbler/Portfile

Last change on this file was 121269, checked in by jeremyhu@…, 3 years ago

misc: Cleanup configure.cxx_stdlib related logic now that we can assume base 2.3 or newer

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
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: Portfile 121269 2014-06-21 20:18:42Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                dibbler
7version             1.0.0RC1
8categories          net
9platforms           darwin
10license             GPL-2
11maintainers         free.fr:fclaire
12
13installs_libs       no
14
15description         A portable DHCPv6
16long_description    Dibbler is a portable DHCPv6 implementation. It \
17                    supports stateful (i.e. IPv6 address granting and \
18                    IPv6 prefix delegation) as well as stateless (i.e. \
19                    option granting) autoconfiguration for IPv6.
20homepage            http://klub.com.pl/dhcpv6/
21
22master_sites        http://klub.com.pl/dhcpv6/dibbler/
23checksums           rmd160  5f8a70f46e9497b9cceab6cf04a2e05259ab075e \
24                    sha256  4d29b5436cd97e5e5c7afb2278ec608bf5adb9c451e9628066f2e943164d3f74
25
26patch.pre_args      -p1
27patchfiles          0-enable-prefix.patch \
28                    1-correct-man-pages.patch
29post-patch {
30    reinplace "s|__PREFIX__|${prefix}|g" \
31        Misc/Portable.h \
32        Port-bsd/lowlevel-bsd.c \
33        doc/examples/client.conf \
34        doc/examples/server.conf \
35        doc/man/dibbler-client.8 \
36        doc/man/dibbler-relay.8 \
37        doc/man/dibbler-server.8 \
38        scripts/notify-scripts/server-notify.sh
39}
40
41# TODO: Fix libc++ build.
42configure.cxx_stdlib libstdc++
43
44post-destroot {
45    xinstall -d -m 0755 ${destroot}${prefix}/share/examples
46    move ${destroot}${prefix}/share/doc/dibbler/examples \
47        ${destroot}${prefix}/share/examples/${name}
48
49    xinstall -d -m 0755 ${destroot}${prefix}/etc/dibbler
50    foreach conf {client.conf relay.conf server.conf} {
51        ln -s ../../../share/examples/${name}/${conf} \
52            ${destroot}${prefix}/etc/dibbler/${conf}.sample
53    }
54}
55destroot.keepdirs       ${destroot}${prefix}/var/lib/dibbler \
56                        ${destroot}${prefix}/var/log/dibbler
57
58startupitem.create      yes
59startupitem.executable  ${prefix}/sbin/dibbler-server run
60
61livecheck.type          regex
62livecheck.url           ${master_sites}
63livecheck.regex         ${name}-(\[\[\:alnum:\].\]+)\\.tar\\.gz
64
65notes "
66Before using Dibbler, make copies of the appropriate sample\
67configuration files and edit as necessary.
68
69    sudo ditto ${prefix}/etc/${name}/client.conf{.sample,}
70    sudo ditto ${prefix}/etc/${name}/server.conf{.sample,}
71    sudo ditto ${prefix}/etc/${name}/relay.conf{.sample,}
72"
Note: See TracBrowser for help on using the repository browser.