summaryrefslogtreecommitdiff
blob: 3489b5ced17a835236b23f57693a5d09ce46c56b (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# 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.3 2003/09/11 01:39:53 msterret Exp $

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"
IUSE="X"

DEPEND="virtual/glibc
	sys-libs/zlib
	>=dev-libs/libax25-0.0.5
	X? ( virtual/x11 )"

src_compile() {
	# If X is disabled, do not build smdiag
	COMPFLAGS=""
	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 COPYING 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

}