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.
50 lines
1.4 KiB
50 lines
1.4 KiB
1 year ago
|
# Copyright 1999-2023 Gentoo Authors
|
||
5 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
1 year ago
|
EAPI=8
|
||
5 years ago
|
|
||
|
DESCRIPTION="Utility for viewing/manipulating the MAC address of network interfaces"
|
||
|
OUI_DATE="20091029" # Generated with tools/IEEE_OUI.py in the source
|
||
|
OUI_FILE="OUI.list-${OUI_DATE}"
|
||
|
HOMEPAGE="https://github.com/alobbs/macchanger"
|
||
|
SRC_URI="
|
||
|
https://github.com/alobbs/macchanger/releases/download/${PV/_p*}/${P/_p*}.tar.gz
|
||
|
mirror://debian/pool/main/m/${PN}/${PN}_${PV/_p*}-$(ver_cut 5).$(ver_cut 7).debian.tar.xz
|
||
|
"
|
||
|
LICENSE="GPL-2"
|
||
2 years ago
|
KEYWORDS="amd64 arm arm64 ppc ppc64 ~riscv sparc x86"
|
||
5 years ago
|
SLOT="0"
|
||
1 year ago
|
IUSE="split-usr"
|
||
5 years ago
|
|
||
|
PATCHES=(
|
||
|
"${FILESDIR}"/${PN}-1.7.0-fix-caddr_t.patch
|
||
|
"${WORKDIR}"/debian/patches/02-fix_usage_message.patch
|
||
|
"${WORKDIR}"/debian/patches/06-update_OUI_list.patch
|
||
|
"${WORKDIR}"/debian/patches/08-fix_random_MAC_choice.patch
|
||
|
"${WORKDIR}"/debian/patches/check-random-device-read-errors.patch
|
||
|
"${WORKDIR}"/debian/patches/verify-changed-MAC.patch
|
||
|
|
||
|
)
|
||
|
S=${WORKDIR}/${P/_p*}
|
||
|
|
||
|
src_configure() {
|
||
|
# Shared data is installed below /lib, see Bug #57046
|
||
|
econf \
|
||
1 year ago
|
--bindir="${EPREFIX}/sbin" \
|
||
5 years ago
|
--datadir="${EPREFIX}/lib"
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
default
|
||
|
|
||
|
newdoc "${WORKDIR}"/debian/changelog debian.changelog
|
||
|
|
||
1 year ago
|
# Can cleanup a while after bug #889922 is fixed
|
||
|
if use split-usr ; then
|
||
|
dodir /usr/bin
|
||
|
dosym -r /sbin/macchanger /usr/bin/macchanger
|
||
|
fi
|
||
|
|
||
5 years ago
|
dosym ../../lib/macchanger /usr/share/macchanger
|
||
|
}
|