source: trunk/dports/net/quagga/Portfile

Last change on this file was 99345, checked in by jmr@…, 5 years ago

quagga: update homepage and master_sites

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