From b6841e13a28aed25da27b0d03c75c9912d29a300 Mon Sep 17 00:00:00 2001 From: DTB Date: Mon, 25 Sep 2023 16:18:18 -0400 Subject: [PATCH] macchanger --- Makefile | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/Makefile b/Makefile index f7db7d1..36507a6 100644 --- a/Makefile +++ b/Makefile @@ -82,6 +82,33 @@ $(HOME)/.fonts/unscii-16-full.ttf: curl -o $(HOME)/.fonts/unscii-16-full.ttf.tmp http://viznut.fi/unscii/unscii-16-full.ttf mv $(HOME)/.fonts/unscii-16-full.ttf.tmp $(HOME)/.fonts/unscii-16-full.ttf +# I never finished this because I realized it needed OpenJDK. Fuck Java. +# depends on +# apk:chimerautils (on Chimera Linux) +# apk:curl +$(PREFIX)/src/arduino18: + # the person that made the tarball used the absolute file location in + # the sha512 file, so it looks like + # [sum] /home/user/dir/tarball.tar.xz + # so filter out the file locations before diffing + curl -L https://github.com/arduino/Arduino/releases/download/1.8.19/arduino-1.8.19.tar.xz \ + >"$(PREFIX)"/src/arduino-1.8.19.tar.xz + curl -L https://github.com/arduino/Arduino/releases/download/1.8.19/arduino-1.8.19.tar.xz.sha512 \ + | sed 's/ .*//' \ + >"$(PREFIX)"/src/arduino-1.8.19.tar.xz.sha512 + sha512sum arduino-1.8.19.tar.xz \ + | sed 's/ .*//' \ + >"$(PREFIX)"/src/arduino-1.8.19.tar.xz.sha512.local + # if the sums differ the makefile will terminate + cat arduino-1.8.19.tar.xz.sha512 $(PREFIX)/src/arduino-1.8.19.tar.xz.sha512.local \ + | uniq \ + | wc -l \ + | xargs echo \ + | xargs test 1 = + xz -cd "$(PREFIX)"/src/arduino-1.8.19.tar.xz \ + | tar -C "$(PREFIX)" x + mv "$(PREFIX)"/arduino-1.8.19 "$(PREFIX)"/arduino18 + $(PREFIX)/bin/bar: git clone https://github.com/LemonBoy/bar.git $(PREFIX)/src/bar $(MAKE) -C $(PREFIX)/src/bar PREFIX=$(PREFIX) install @@ -109,6 +136,16 @@ $(PREFIX)/bin/git-filter-repo: git clone https://github.com/newren/git-filter-repo.git $(PREFIX)/src/git-filter-repo $(INSTALL) -Dm0755 $(PREFIX)/src/git-filter-repo/git-filter-repo $(PREFIX)/bin/git-filter-repo +# depends on +# apk:git +# apk:texinfo +$(PREFIX)/bin/macchanger: + git clone https://github.com/alobbs/macchanger.git "$(PREFIX)"/src/macchanger + sh -c 'cd "$(PREFIX)"/src/macchanger; ./autogen.sh --prefix=/usr/local/' + # https://github.com/alobbs/macchanger/issues/14 + sed -i .orig -e 's/caddr_t/void */' "$(PREFIX)"/src/macchanger/src/netinfo.c + $(MAKE) -C "$(PREFIX)"/src/macchanger install + # nmap 7.80 is the last Free nmap release # depends on apk:linux-headers # had to # ln -s /bin/gmake /usr/local/bin/make