mirror of
https://github.com/wiire-a/pixiewps.git
synced 2025-07-28 00:04:38 +02:00
Added an OpenWRT Makefile
Thanks to datahead.
This commit is contained in:
parent
f5e4bc0075
commit
571f5a55ba
33
Makefile
Normal file
33
Makefile
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
PKG_NAME:=pixiewps
|
||||||
|
PKG_RELEASE:=1.1
|
||||||
|
|
||||||
|
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
||||||
|
|
||||||
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
|
define Package/pixiewps
|
||||||
|
SECTION:=net
|
||||||
|
CATEGORY:=Network
|
||||||
|
SUBMENU:=wireless
|
||||||
|
TITLE:=An offline WPS Bruteforce utility
|
||||||
|
DEPENDS:=+libopenssl
|
||||||
|
URL:=https://github.com/wiire/pixiewps
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/pixiewps/description
|
||||||
|
An offline WPS Bruteforce utility
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Build/Prepare
|
||||||
|
mkdir -p $(PKG_BUILD_DIR)
|
||||||
|
$(CP) ./src/* $(PKG_BUILD_DIR)/
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/pixiewps/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/pixiewps $(1)/usr/bin/
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call BuildPackage,pixiewps))
|
@ -1,15 +1,15 @@
|
|||||||
CCFLAGS = -std=c99 -O3
|
CCFLAGS = -std=c99 -O3
|
||||||
LDFLAGS = -lssl -lcrypto
|
LDFLAGS = -lcrypto
|
||||||
|
|
||||||
TARGET = pixiewps
|
TARGET = pixiewps
|
||||||
PREFIX = $(DESTDIR)/usr/local
|
PREFIX = $(DESTDIR)/usr
|
||||||
BINDIR = $(PREFIX)/bin
|
BINDIR = $(PREFIX)/bin
|
||||||
|
|
||||||
all:
|
all:
|
||||||
$(CC) $(CCFLAGS) -o $(TARGET) $(TARGET).c random_r.c $(LDFLAGS)
|
$(CC) $(CCFLAGS) -o $(TARGET) $(TARGET).c random_r.c $(LDFLAGS)
|
||||||
|
|
||||||
install:
|
install:
|
||||||
install -D pixiewps $(BINDIR)/$(TARGET)
|
install -D $(TARGET) $(BINDIR)/$(TARGET)
|
||||||
install -m 755 $(TARGET) $(BINDIR)
|
install -m 755 $(TARGET) $(BINDIR)
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user