summaryrefslogtreecommitdiff
blob: 1e514b22ffa9028a45f5d256b964a9d40d2063d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

inherit eutils

DESCRIPTION="Generate access-lists for Cisco/Juniper routers"
HOMEPAGE="http://www.lexa.ru/snar/bgpq.html"
SRC_URI="http://snar.spb.ru/prog/bgpq/${P}.tgz"

LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"

DEPEND="sys-devel/flex"
RDEPEND=""

src_prepare() {
	# Respect CFLAGS and LDFLAGS
	sed -i \
		-e '/^CFLAGS+=/s/+=-g /=/' \
		-e '/^LDADD/s/@LIBS@/@LDFLAGS@ @LIBS@/' \
		Makefile.in || die 'sed on Makefile.in failed'

	epatch_user
}

src_install() {
	dobin bgpq
	doman bgpq.8
	dodoc CHANGES
	dohtml *.html
}