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 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name dibbler |
---|
7 | version 0.8.4 |
---|
8 | categories net |
---|
9 | platforms darwin |
---|
10 | license GPL-2 |
---|
11 | maintainers free.fr:fclaire |
---|
12 | |
---|
13 | description Dibbler is a portable DHCPv6 implementation |
---|
14 | |
---|
15 | long_description Dibbler is a portable DHCPv6 implementation. It supports stateful \ |
---|
16 | (i.e. IPv6 address granting and IPv6 prefix delegation) as well as \ |
---|
17 | stateless (i.e. option granting) autoconfiguration for IPv6. \ |
---|
18 | Currently Linux 2.4 or later and Windows XP or later are supported. \ |
---|
19 | It features easy to use install packages (Clickable Windows installer \ |
---|
20 | and RPM and DEB packages for Linux) and extensive documentation \ |
---|
21 | (both for users as well as developers). Dibbler is developed under \ |
---|
22 | GNU GPL licence. It means that it is free for all, including commercial usage. |
---|
23 | |
---|
24 | homepage http://klub.com.pl/dhcpv6/ |
---|
25 | master_sites http://klub.com.pl/dhcpv6/dibbler/ |
---|
26 | |
---|
27 | checksums rmd160 40b61d3289cd00e9c11d3efc47439291771a4990 \ |
---|
28 | sha256 90382709200b6f1c4d403aceeedb52fd5633cfb71c7df3742062ddfe8b71c013 |
---|
29 | |
---|
30 | #depends_build port:gcc47 |
---|
31 | #configure.compiler macports-gcc-4.7 |
---|
32 | |
---|
33 | |
---|
34 | set dibvardir ${prefix}/var/lib/dibbler |
---|
35 | set dibetcdir ${prefix}/etc/dibbler |
---|
36 | set diblogdir ${prefix}/var/log/dibbler |
---|
37 | |
---|
38 | patchfiles patch-Port-bsd-lowlevel-bsd.c.diff \ |
---|
39 | patch-doc-examples-client.conf.diff \ |
---|
40 | patch-doc-examples-server.conf.diff \ |
---|
41 | patch-prefix.diff |
---|
42 | |
---|
43 | post-patch { |
---|
44 | reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/Port-bsd/lowlevel-bsd.c \ |
---|
45 | ${worksrcpath}/Misc/Portable.h \ |
---|
46 | ${worksrcpath}/Misc/Portable.h.in \ |
---|
47 | ${worksrcpath}/doc/examples/client.conf \ |
---|
48 | ${worksrcpath}/doc/examples/server.conf \ |
---|
49 | ${worksrcpath}/doc/man/dibbler-client.8 \ |
---|
50 | ${worksrcpath}/doc/man/dibbler-relay.8 \ |
---|
51 | ${worksrcpath}/doc/man/dibbler-server.8 \ |
---|
52 | ${worksrcpath}/scripts/notify-scripts/client-notify-bsd.sh \ |
---|
53 | ${worksrcpath}/scripts/notify-scripts/server-notify.sh |
---|
54 | } |
---|
55 | |
---|
56 | destroot.keepdirs ${destroot}${dibvardir} \ |
---|
57 | ${destroot}${dibetcdir} \ |
---|
58 | ${destroot}${diblogdir} |
---|
59 | |
---|
60 | startupitem.create yes |
---|
61 | startupitem.start "${prefix}/sbin/dibbler-server start" |
---|
62 | startupitem.stop "${prefix}/sbin/dibbler-server stop" |
---|
63 | startupitem.restart "${prefix}/sbin/dibbler-server stop && ${prefix}/sbin/dibbler-server start" |
---|
64 | startupitem.pidfile clean ${dibvardir}/server.pid |
---|
65 | |
---|
66 | post-destroot { |
---|
67 | xinstall -d ${destroot}${dibvardir} |
---|
68 | } |
---|
69 | |
---|
70 | livecheck.type regex |
---|
71 | livecheck.url ${master_sites} |
---|
72 | livecheck.regex ${name}-(\[0-9.a-\]+)\\.tar.gz |
---|
73 | |
---|