source: trunk/dports/net/quagga/Portfile @ 54391

Last change on this file since 54391 was 54391, checked in by ryandesign@…, 10 years ago

quagga: new port, version 0.99.14; see #20424

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.2 KB
Line 
1# $Id: Portfile 54391 2009-07-26 11:59:17Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            quagga
6version         0.99.14
7categories      net
8platforms       darwin
9maintainers     nzbox.com:mike openmaintainer
10description     Collection of Routing daemons for OSPF BGP and RIP
11long_description    Quagga is a routing software suite, providing implementations \
12                of OSPFv2, OSPFv3, RIP v1 and v2, RIPng and BGP-4 for Unix \
13                platforms, particularly FreeBSD, Linux, Solaris and NetBSD. \
14                Quagga is a fork of GNU Zebra which was developed by Kunihiro \
15                Ishiguro. The Quagga tree aims to build a more involved community \
16                around Quagga than the current centralised model of GNU Zebra. \
17                This port installs the binaries, but does not include startup \
18                items, it should be considered experimental.
19
20homepage        http://quagga.net/about.php
21master_sites    http://quagga.net/download/
22
23checksums       md5     3a075fd5e26ec6d52f4a51b14a2d3c2c \
24                sha1    5c182a70987957b968b92251ab81b886647292a4 \
25                rmd160  48ab35063c91c1e8e180f791ec2db65a9b10c53c
26
27patchfiles      quagga-patch1.diff \
28                quagga-patch2.diff \
29                quagga-patch3.diff
30
31depends_lib     port:readline
32
33configure.args  --localstatedir=${prefix}/var/run/quagga \
34                --sysconfdir=${prefix}/etc/quagga \
35                --mandir=${prefix}/share/man \
36                --enable-vty-group=staff
37
38pre-destroot {
39    addgroup quagga
40    set gid [existsgroup quagga]
41    adduser quagga gid=${gid} realname=Quagga home=${prefix}/var/quagga
42}
43
44post-destroot {
45    xinstall -o quagga -g quagga -m 755 -d \
46        ${destroot}${prefix}/var/run/quagga ${destroot}${prefix}/etc/quagga \
47        ${destroot}${prefix}/var/quagga/logs
48}
49
50post-activate {
51    # Make sure initial conf files are present and setup correctly
52    foreach f { bgpd.conf ospf6d.conf ospfd.conf ripd.conf ripngd.conf zebra.conf } {
53        if {![file exists ${prefix}/etc/quagga/${f}]} {
54            file copy ${prefix}/etc/quagga/${f}.sample \
55                ${prefix}/etc/quagga/${f}
56        }
57    }
58
59    ui_msg "******************************************************"
60    ui_msg "* The routing protocol daemons are in ${prefix}/sbin"
61    ui_msg "* bgpd ospfd ospf6d ripd ripng isisd zebra"
62    ui_msg "* These have not been well tested on Mac OS X (yet)"
63    ui_msg "* The man files for the above are in section 8"
64    ui_msg "* The sample configs in ${prefix}/etc/quagga"
65    ui_msg "* sudo cp <daemon>.conf.sample <daemon>.conf"
66    ui_msg "* and edit as needed."
67    ui_msg "* No Startup Items have been made (yet)"
68    ui_msg "* As an example to start one of the daemons use"
69    ui_msg "* sudo ospfd -d"
70    ui_msg "* These drop root privileges and run as quagga/quagga"
71    ui_msg "* To manage these daemons use"
72    ui_msg "* telnet localhost:2604"
73    ui_msg "* For more info see http://quagga.net/about.php"
74    ui_msg "* To stop one of the daemons use e.g."
75    ui_msg "* sudo kill `cat ${prefix}/var/run/quagga/ospfd.pid`"
76    ui_msg "******************************************************"
77}
78
79destroot.keepdirs   ${destroot}${prefix}/var/run/quagga \
80                    ${destroot}${prefix}/var/quagga/logs
Note: See TracBrowser for help on using the repository browser.