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.4RC1 |
---|
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 6e07129b00aca7a17f57a94c87bcd998e9d72682 \ |
---|
28 | sha256 2dde4242d8b281418ff875a7c97fd88d18deaf1165d03c04877281998d3e57b1 |
---|
29 | |
---|
30 | #depends_build port:gcc47 |
---|
31 | #configure.compiler macports-gcc-4.7 |
---|
32 | |
---|
33 | set dibvardir ${prefix}/var/lib/dibbler |
---|
34 | set dibetcdir ${prefix}/etc/dibbler |
---|
35 | set diblogdir ${prefix}/var/log/dibbler |
---|
36 | |
---|
37 | patchfiles patch-Port-bsd-lowlevel-bsd.c.diff \ |
---|
38 | patch-Misc-Portable.h.diff \ |
---|
39 | patch-Misc-Portable.h.in.diff \ |
---|
40 | patch-doc-dibbler-user-config-client.tex.diff \ |
---|
41 | patch-doc-dibbler-user-features.tex.diff \ |
---|
42 | patch-doc-dibbler-user-usage.tex.diff \ |
---|
43 | patch-doc-examples-client.conf.diff \ |
---|
44 | patch-doc-examples-server.conf.diff \ |
---|
45 | patch-doc-man-dibbler-client.8.diff \ |
---|
46 | patch-doc-man-dibbler-relay.8.diff \ |
---|
47 | patch-doc-man-dibbler-server.8.diff \ |
---|
48 | patch-scripts-notify-scripts-client-notify-bsd.sh.diff \ |
---|
49 | patch-scripts-notify-scripts-server-notify.sh.diff |
---|
50 | |
---|
51 | post-patch { |
---|
52 | reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/Port-bsd/lowlevel-bsd.c \ |
---|
53 | ${worksrcpath}/Misc/Portable.h \ |
---|
54 | ${worksrcpath}/Misc/Portable.h.in \ |
---|
55 | ${worksrcpath}/doc/dibbler-user-config-client.tex \ |
---|
56 | ${worksrcpath}/doc/dibbler-user-features.tex \ |
---|
57 | ${worksrcpath}/doc/dibbler-user-usage.tex \ |
---|
58 | ${worksrcpath}/doc/examples/client.conf \ |
---|
59 | ${worksrcpath}/doc/examples/server.conf \ |
---|
60 | ${worksrcpath}/doc/man/dibbler-client.8 \ |
---|
61 | ${worksrcpath}/doc/man/dibbler-relay.8 \ |
---|
62 | ${worksrcpath}/doc/man/dibbler-server.8 \ |
---|
63 | ${worksrcpath}/scripts/notify-scripts/client-notify-bsd.sh \ |
---|
64 | ${worksrcpath}/scripts/notify-scripts/server-notify.sh |
---|
65 | } |
---|
66 | |
---|
67 | destroot.keepdirs ${destroot}${dibvardir} \ |
---|
68 | ${destroot}${dibetcdir} \ |
---|
69 | ${destroot}${diblogdir} |
---|
70 | |
---|
71 | startupitem.create yes |
---|
72 | startupitem.start "${prefix}/sbin/dibbler-server start" |
---|
73 | startupitem.stop "${prefix}/sbin/dibbler-server stop" |
---|
74 | startupitem.restart "${prefix}/sbin/dibbler-server stop && ${prefix}/sbin/dibbler-server start" |
---|
75 | startupitem.pidfile clean ${dibvardir}/server.pid |
---|
76 | |
---|
77 | post-destroot { |
---|
78 | xinstall -d ${destroot}${dibvardir} |
---|
79 | } |
---|
80 | |
---|
81 | livecheck.type regex |
---|
82 | livecheck.url ${master_sites} |
---|
83 | livecheck.regex ${name}-(\[0-9.a-\]+)\\.tar.gz |
---|
84 | |
---|