summaryrefslogtreecommitdiff
blob: 62fb7d2e32c56cea28a7a9394196776c306eb08b (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
36
37
38
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-radio/ax25-apps/ax25-apps-0.0.6-r1.ebuild,v 1.11 2009/10/21 16:03:21 maekke Exp $

DESCRIPTION="Basic AX.25 (Amateur Radio) user tools, additional daemons"
HOMEPAGE="http://ax25.sourceforge.net/"
SRC_URI="mirror://sourceforge/ax25/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~ppc x86"
IUSE=""

RDEPEND=">=dev-libs/libax25-0.0.7"
DEPEND="${RDEPEND}
	!media-sound/listen
	!dev-tinyos/listen"

src_install() {
	emake DESTDIR="${D}" install installconf || die

	newinitd "${FILESDIR}"/ax25ipd.rc ax25ipd
	newinitd "${FILESDIR}"/ax25mond.rc ax25mond
	newinitd "${FILESDIR}"/ax25rtd.rc ax25rtd

	# Make the documentation installation more Gentoo-like
	rm -rf "${D}"/usr/share/doc/ax25-apps
	dodoc AUTHORS NEWS README \
		ax25ipd/README.ax25ipd ax25rtd/README.ax25rtd \
		ax25ipd/HISTORY.ax25ipd ax25rtd/TODO.ax25rtd

	# FIXME: Configuration protect logic for the ax25rtd cache
	#   or move these files
	# Moving might require changes to ax25rtd/ax25rtctl
	insinto /var/lib/ax25/ax25rtd
	newins "${FILESDIR}"/ax25rtd.blank ax25_route
	newins "${FILESDIR}"/ax25rtd.blank ip_route
}