macchanger: initial commit, v1.7.0
This commit is contained in:
parent
979addb3b9
commit
d2d1dd0897
13
macchanger/.footprint
Normal file
13
macchanger/.footprint
Normal file
@ -0,0 +1,13 @@
|
||||
drwxr-xr-x root/root etc/
|
||||
drwxr-xr-x root/root etc/rc.d/
|
||||
-rwxr-x--- root/root etc/rc.d/macchanger
|
||||
drwxr-xr-x root/root usr/
|
||||
drwxr-xr-x root/root usr/bin/
|
||||
-rwxr-xr-x root/root usr/bin/macchanger
|
||||
drwxr-xr-x root/root usr/share/
|
||||
drwxr-xr-x root/root usr/share/macchanger/
|
||||
-rw-r--r-- root/root usr/share/macchanger/OUI.list
|
||||
-rw-r--r-- root/root usr/share/macchanger/wireless.list
|
||||
drwxr-xr-x root/root usr/share/man/
|
||||
drwxr-xr-x root/root usr/share/man/man1/
|
||||
-rw-r--r-- root/root usr/share/man/man1/macchanger.1.gz
|
6
macchanger/.signature
Normal file
6
macchanger/.signature
Normal file
@ -0,0 +1,6 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF37gO6n5InRUr4E887HZBVNxvxUrEsFOC+ctKPWH2d8sywfyff99uZJkA2A9lg55Psq6LjWX/gdYEOV3eF+HK5QQ=
|
||||
SHA256 (Pkgfile) = eef9c8d0912e5124b1371f8456d5e510c47f1b3f611939c50254616915f0bd23
|
||||
SHA256 (.footprint) = f21f745c9b7b902500438b68aee91de7417d88484bee43d4ae67d510da122e40
|
||||
SHA256 (macchanger-1.7.0.tar.gz) = 1d75c07a626321e07b48a5fe2dbefbdb98c3038bb8230923ba8d32bda5726e4f
|
||||
SHA256 (macchanger.rc) = d4e4bcaae734c1950299a1497748489f235e5d4c8990b69bd1cb3da99bf45b46
|
29
macchanger/Pkgfile
Normal file
29
macchanger/Pkgfile
Normal file
@ -0,0 +1,29 @@
|
||||
# Description: Change your NIC's MAC address
|
||||
# URL: https://www.gnu.org/software/macchanger
|
||||
# Maintainer: Alexandr Savca, alexandrsavca89 at gmail dot com
|
||||
|
||||
name=macchanger
|
||||
version=1.7.0
|
||||
release=1
|
||||
source=(https://github.com/alobbs/$name/archive/$version/$name-$version.tar.gz
|
||||
$name.rc)
|
||||
|
||||
build() {
|
||||
cd $name-$version
|
||||
|
||||
#https://bugs.archlinux.org/task/59021
|
||||
sed -i 's|/dev/hwrng|/dev/random|' src/main.c
|
||||
|
||||
./autogen.sh
|
||||
|
||||
# Don't build unnecessary docs with unnecessary dependencies
|
||||
sed -i 's/SUBDIRS = src data doc/SUBDIRS = src data/' Makefile.in
|
||||
|
||||
./configure --prefix=/usr --mandir=/usr/share/man
|
||||
|
||||
make V=1
|
||||
make DESTDIR=$PKG install
|
||||
|
||||
# service
|
||||
install -m 0750 -D $SRC/$name.rc $PKG/etc/rc.d/$name
|
||||
}
|
38
macchanger/macchanger.rc
Normal file
38
macchanger/macchanger.rc
Normal file
@ -0,0 +1,38 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# /etc/rc.d/macchanger: start/stop mac interface changing
|
||||
#
|
||||
|
||||
# To see your available devices run "ip link"
|
||||
DEV=wlp1s0
|
||||
|
||||
# Leave it empty for a random mac address
|
||||
MAC=
|
||||
|
||||
case $1 in
|
||||
start)
|
||||
/sbin/ip link set $DEV down
|
||||
case $MAC in
|
||||
"") /usr/bin/macchanger --random $DEV ;;
|
||||
*) /usr/bin/macchanger --mac=$MAC $DEV ;;
|
||||
esac
|
||||
/sbin/ip link set $DEV up
|
||||
;;
|
||||
stop)
|
||||
/sbin/ip link set $DEV down
|
||||
/usr/bin/macchanger --permanent $DEV
|
||||
/sbin/ip link set $DEV up
|
||||
;;
|
||||
restart)
|
||||
$0 stop
|
||||
$0 start
|
||||
;;
|
||||
status)
|
||||
/usr/bin/macchanger --show $DEV
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 [start|stop|restart|status]"
|
||||
;;
|
||||
esac
|
||||
|
||||
# End of file
|
Loading…
x
Reference in New Issue
Block a user