summaryrefslogtreecommitdiff
blob: b7e79e406989b25bdb5d96905db05c52cbf8922a (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/macchanger/macchanger-1.3.0-r1.ebuild,v 1.7 2004/07/24 13:58:11 eldad Exp $

DESCRIPTION="Utility for viewing/manipulating the MAC address of network interfaces"
HOMEPAGE="http://www.alobbs.com/macchanger"
LICENSE="GPL-2"

SRC_URI="ftp://ftp.gnu.org/gnu/macchanger/${P}.tar.gz"
KEYWORDS="x86 ppc sparc"
IUSE=""
SLOT="0"

DEPEND="virtual/libc"


src_compile() {
	# Shared data is installed below /lib, see Bug #57046
	econf \
		--bindir=/sbin \
		--datadir=/lib \
		|| die "configure failed"
	emake || die "build failed"
}

src_install() {
	make DESTDIR=${D} install || die "install failed"

	dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README

	dodir /usr/bin
	dosym /sbin/macchanger /usr/bin/macchanger
	dosym /lib/macchanger /usr/share/macchanger
}