1
0
Fork 0

macchanger

This commit is contained in:
dtb 2023-09-25 16:18:18 -04:00
parent adc43caf97
commit b6841e13a2
1 changed files with 37 additions and 0 deletions

View File

@ -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