You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-analyzer/macchanger/macchanger-1.5.0-r1.ebuild

41 lines
1.1 KiB

# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/macchanger/macchanger-1.5.0-r1.ebuild,v 1.6 2009/09/23 18:20:49 patrick Exp $
DESCRIPTION="Utility for viewing/manipulating the MAC address of network interfaces"
OUI_DATE="20051212"
OUI_FILE="OUI.list-${OUI_DATE}"
HOMEPAGE="http://www.alobbs.com/macchanger"
SRC_URI="mirror://gnu/macchanger/${P}.tar.gz
mirror://gentoo/${OUI_FILE}.gz"
LICENSE="GPL-2"
KEYWORDS="amd64 ppc sparc x86"
IUSE=""
SLOT="0"
DEPEND=""
src_unpack() {
unpack ${P}.tar.gz
zcat ${DISTDIR}/${OUI_FILE}.gz >${S}/data/OUI.list || die "Failed to update OUI list"
}
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 ChangeLog NEWS README
dodir /usr/bin
dosym /sbin/macchanger /usr/bin/macchanger
dosym /lib/macchanger /usr/share/macchanger
}