Skip to content

Commit

Permalink
macchanger: use debian patches
Browse files Browse the repository at this point in the history
The project hasn't been updated for 8 years and there are some
important bugs to be fixed.

Closes: void-linux#36245
  • Loading branch information
Duncaen authored and Eloitor committed Jul 4, 2022
1 parent ea5dbff commit 9ab147e
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions srcpkgs/macchanger/template
Original file line number Diff line number Diff line change
@@ -1,13 +1,27 @@
# Template file for 'macchanger'
pkgname=macchanger
version=1.7.0
revision=3
revision=4
create_wrksrc=yes
build_wrksrc="macchanger-${version}"
build_style=gnu-configure
configure_script="./autogen.sh"
hostmakedepends="automake texinfo"
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"
homepage="http://www.gnu.org/software/macchanger"
distfiles="https://github.com/alobbs/macchanger/archive/${version}.tar.gz"
checksum=1d75c07a626321e07b48a5fe2dbefbdb98c3038bb8230923ba8d32bda5726e4f
distfiles="https://github.com/alobbs/macchanger/archive/${version}.tar.gz
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
}

0 comments on commit 9ab147e

Please sign in to comment.