blob: 018f4c40c9be3fec293af3d51addffd15cf479a6 (
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
39
40
41
42
43
44
45
46
47
48
49
50
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-radio/ax25-tools/ax25-tools-0.0.8-r1.ebuild,v 1.8 2006/03/19 22:45:45 joshuabaergen Exp $
inherit eutils check-kernel
DESCRIPTION="Basic AX.25 (Amateur Radio) administrative tools and daemons"
HOMEPAGE="http://ax25.sourceforge.net/"
SRC_URI="mirror://sourceforge/ax25/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc"
IUSE="X"
DEPEND="virtual/libc
sys-libs/zlib
>=dev-libs/libax25-0.0.5
X? ( || ( x11-libs/libX11 virtual/x11 ) )"
src_compile() {
# If X is disabled, do not build smdiag
local COMPFLAGS=""
if is_2_6_kernel ; then
epatch ${FILESDIR}/ax25-tools-soundmodem.patch
fi
use X || COMPFLAGS="--without-x"
econf ${COMPFLAGS} || die
emake || die
}
src_install() {
make DESTDIR=${D} install installconf || die
rm -rf ${D}/usr/share/doc/ax25-tools
dodoc AUTHORS ChangeLog NEWS README tcpip/ttylinkd.README \
user_call/README.user_call yamdrv/README.yamdrv dmascc/README.dmascc \
ax25-tools/ttylinkd.INSTALL
exeinto /etc/init.d ; newexe ${FILESDIR}/ax25d.rc ax25d
newexe ${FILESDIR}/mheardd.rc mheardd
newexe ${FILESDIR}/netromd.rc netromd
newexe ${FILESDIR}/rip98d.rc rip98d
newexe ${FILESDIR}/rxecho.rc rxecho
newexe ${FILESDIR}/ttylinkd.rc ttylinkd
}
|