/[gentoo-x86]/net-misc/quagga/quagga-0.99.22.4.ebuild
Gentoo

Contents of /net-misc/quagga/quagga-0.99.22.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Thu Jul 23 14:02:02 2015 UTC (4 years, 2 months ago) by pinkbyte
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
Drop old

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 0x60C0742D1F357D42)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/quagga-0.99.22.4.ebuild,v 1.9 2013/10/31 07:41:25 pinkbyte Exp $
4
5 EAPI="5"
6
7 CLASSLESS_BGP_PATCH=ht-20040304-classless-bgp.patch
8
9 AUTOTOOLS_AUTORECONF=1
10 inherit autotools-utils eutils flag-o-matic multilib pam readme.gentoo user
11
12 DESCRIPTION="A free routing daemon replacing Zebra supporting RIP, OSPF and BGP"
13 HOMEPAGE="http://quagga.net/"
14 SRC_URI="mirror://nongnu/${PN}/${P}.tar.xz
15 bgpclassless? ( http://hasso.linux.ee/stuff/patches/quagga/${CLASSLESS_BGP_PATCH} )"
16
17 LICENSE="GPL-2"
18 SLOT="0"
19 KEYWORDS="alpha amd64 arm hppa ppc ~s390 sparc x86"
20 IUSE="bgpclassless caps doc elibc_glibc ipv6 multipath ospfapi pam +readline snmp tcp-zebra"
21
22 COMMON_DEPEND="
23 caps? ( sys-libs/libcap )
24 snmp? ( net-analyzer/net-snmp )
25 readline? (
26 sys-libs/readline
27 pam? ( sys-libs/pam )
28 )
29 !elibc_glibc? ( dev-libs/libpcre )"
30 DEPEND="${COMMON_DEPEND}
31 app-arch/xz-utils
32 >=sys-devel/libtool-2.2.4"
33 RDEPEND="${COMMON_DEPEND}
34 sys-apps/openrc
35 sys-apps/iproute2"
36
37 PATCHES=( "${FILESDIR}/${P}-ipctl-forwarding.patch" )
38
39 DISABLE_AUTOFORMATTING=1
40 DOC_CONTENTS="Sample configuration files can be found in /usr/share/doc/${PF}/samples
41 You have to create config files in /etc/quagga before
42 starting one of the daemons.
43
44 You can pass additional options to the daemon by setting the EXTRA_OPTS
45 variable in their respective file in /etc/conf.d
46
47 Starting from version 0.99.18, quagga no longer supports the realms patch.
48 The patch was abandoned upstream and once again didn't apply; it needs a
49 dedicated maintainer, if it is still necessary."
50
51 pkg_setup() {
52 enewgroup quagga
53 enewuser quagga -1 -1 /var/empty quagga
54 }
55
56 src_prepare() {
57 # Classless prefixes for BGP
58 # http://hasso.linux.ee/doku.php/english:network:quagga
59 use bgpclassless && epatch "${DISTDIR}/${CLASSLESS_BGP_PATCH}"
60
61 autotools-utils_src_prepare
62 }
63
64 src_configure() {
65 append-flags -fno-strict-aliasing
66
67 # do not build PDF docs
68 export ac_cv_prog_PDFLATEX=no
69 export ac_cv_prog_LATEXMK=no
70
71 local myeconfargs=(
72 --enable-user=quagga
73 --enable-group=quagga
74 --enable-vty-group=quagga
75 --with-cflags="${CFLAGS}"
76 --sysconfdir=/etc/quagga
77 --enable-exampledir=/usr/share/doc/${PF}/samples
78 --localstatedir=/run/quagga
79 --disable-static
80 --disable-pie
81 $(use_enable caps capabilities)
82 $(usex snmp '--enable-snmp' '' '' '')
83 $(use_enable !elibc_glibc pcreposix)
84 $(use_enable tcp-zebra)
85 $(use_enable doc)
86 $(usex multipath $(use_enable multipath) '' '=0' '')
87 $(usex ospfapi '--enable-opaque-lsa --enable-ospf-te --enable-ospfclient' '' '' '')
88 $(use_enable readline vtysh)
89 $(use_with pam libpam)
90 $(use_enable ipv6)
91 $(use_enable ipv6 babeld) # babeld does not build properly with USE="-ipv6", bug #446289
92 $(use_enable ipv6 ripngd)
93 $(use_enable ipv6 ospf6d)
94 $(use_enable ipv6 rtadv)
95 )
96 autotools-utils_src_configure
97 }
98
99 src_install() {
100 autotools-utils_src_install
101 readme.gentoo_create_doc
102
103 keepdir /etc/quagga
104 fowners root:quagga /etc/quagga
105 fperms 0770 /etc/quagga
106
107 # install zebra as a file, symlink the rest
108 newinitd "${FILESDIR}"/quagga-services.init.3 zebra
109
110 for service in ripd ospfd bgpd $(use ipv6 && echo babeld ripngd ospf6d); do
111 dosym zebra /etc/init.d/${service}
112 done
113
114 use readline && newpamd "${FILESDIR}/quagga.pam" quagga
115
116 insinto /etc/logrotate.d
117 newins redhat/quagga.logrotate quagga
118 }

  ViewVC Help
Powered by ViewVC 1.1.20