macchanger: use debian patches
The project hasn't been updated for 8 years and there are some important bugs to be fixed. Closes: https://github.com/void-linux/void-packages/issues/36245
This commit is contained in:
parent
fdfa9e9125
commit
fa773fef06
1 changed files with 18 additions and 4 deletions
|
@ -1,13 +1,27 @@
|
||||||
# Template file for 'macchanger'
|
# Template file for 'macchanger'
|
||||||
pkgname=macchanger
|
pkgname=macchanger
|
||||||
version=1.7.0
|
version=1.7.0
|
||||||
revision=3
|
revision=4
|
||||||
|
create_wrksrc=yes
|
||||||
|
build_wrksrc="macchanger-${version}"
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_script="./autogen.sh"
|
configure_script="./autogen.sh"
|
||||||
hostmakedepends="automake texinfo"
|
hostmakedepends="automake texinfo"
|
||||||
short_desc="Small utility to change your NIC's MAC address"
|
short_desc="Small utility to change your NIC's MAC address"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Duncaen <duncaen@voidlinux.org>"
|
||||||
license="GPL-3.0-or-later"
|
license="GPL-3.0-or-later"
|
||||||
homepage="http://www.gnu.org/software/macchanger"
|
homepage="http://www.gnu.org/software/macchanger"
|
||||||
distfiles="https://github.com/alobbs/macchanger/archive/${version}.tar.gz"
|
distfiles="https://github.com/alobbs/macchanger/archive/${version}.tar.gz
|
||||||
checksum=1d75c07a626321e07b48a5fe2dbefbdb98c3038bb8230923ba8d32bda5726e4f
|
http://deb.debian.org/debian/pool/main/m/macchanger/macchanger_1.7.0-5.4.debian.tar.xz"
|
||||||
|
checksum="1d75c07a626321e07b48a5fe2dbefbdb98c3038bb8230923ba8d32bda5726e4f
|
||||||
|
a5f48390eb4cb50f16898740e99e38671957a3d5360105986ff0ee41db46383f"
|
||||||
|
|
||||||
|
patch_args="-Np1 --directory=${build_wrksrc}"
|
||||||
|
|
||||||
|
post_patch() {
|
||||||
|
patch -Np1 -D "${build_wrksrc}" <../debian/patches/02-fix_usage_message.patch
|
||||||
|
patch -Np1 -D "${build_wrksrc}" <../debian/patches/06-update_OUI_list.patch
|
||||||
|
patch -Np1 -D "${build_wrksrc}" <../debian/patches/08-fix_random_MAC_choice.patch
|
||||||
|
patch -Np1 -D "${build_wrksrc}" <../debian/patches/check-random-device-read-errors.patch
|
||||||
|
patch -Np1 -D "${build_wrksrc}" <../debian/patches/verify-changed-MAC.patch
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue