blob: 1aa5414b43a665cc0f4b1eb6f9b029d52a544f2c (
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-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
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"
KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86"
SLOT="0"
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 \
--bindir="${EPREFIX}/sbin" \
--datadir="${EPREFIX}/lib"
}
src_install() {
default
newdoc "${WORKDIR}"/debian/changelog debian.changelog
dodir /usr/bin
dosym ../../sbin/macchanger /usr/bin/macchanger
dosym ../../lib/macchanger /usr/share/macchanger
}
|