mirror of
https://github.com/coolsnowwolf/packages.git
synced 2025-05-01 01:03:34 +08:00
aircrack-ng: Update to 1.6
Also add missing dependence.
This commit is contained in:
parent
422768a6b8
commit
9c6e4e4a7d
96
libs/hwloc/Makefile
Normal file
96
libs/hwloc/Makefile
Normal file
@ -0,0 +1,96 @@
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=hwloc
|
||||
PKG_VERSION:=2.1.0
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||
PKG_SOURCE_URL:=https://download.open-mpi.org/release/$(PKG_NAME)/v2.1
|
||||
PKG_HASH:=19429752f772cf68321196970ffb10dafd7e02ab38d2b3382b157c78efd10862
|
||||
|
||||
PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
|
||||
PKG_LICENSE:=BSD-3-Clause
|
||||
PKG_LICENSE_FILES:=COPYING
|
||||
PKG_INSTALL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/hwloc/Default
|
||||
SECTION:=libs
|
||||
CATEGORY:=Libraries
|
||||
TITLE:=Portable Hardware Locality
|
||||
URL:=https://www.open-mpi.org/projects/hwloc/
|
||||
endef
|
||||
|
||||
define Package/hwloc/Default/description
|
||||
The Portable Hardware Locality (hwloc) software package provides a
|
||||
portable abstraction (across OS, versions, architectures, ...) of the
|
||||
hierarchical topology of modern architectures, including NUMA memory
|
||||
nodes, sockets, shared caches, cores and simultaneous multithreading. It
|
||||
also gathers various system attributes such as cache and memory
|
||||
information as well as the locality of I/O devices such as network
|
||||
interfaces, InfiniBand HCAs or GPUs.
|
||||
endef
|
||||
|
||||
define Package/hwloc-utils
|
||||
$(call Package/hwloc/Default)
|
||||
SECTION:=utils
|
||||
CATEGORY:=Utilities
|
||||
TITLE+= utilities
|
||||
DEPENDS+= +libhwloc +libncurses
|
||||
endef
|
||||
|
||||
define Package/hwloc-utils/description
|
||||
$(call Package/hwloc/Default/description)
|
||||
This package contains the hwloc utilities.
|
||||
endef
|
||||
|
||||
define Package/libhwloc
|
||||
$(call Package/hwloc/Default)
|
||||
SECTION:=libs
|
||||
CATEGORY:=Libraries
|
||||
TITLE+= libraries
|
||||
DEPENDS+=+libpciaccess
|
||||
endef
|
||||
|
||||
define Package/libhwloc/description
|
||||
$(call Package/hwloc/Default/description)
|
||||
This package contains the hwloc libraries.
|
||||
endef
|
||||
|
||||
CONFIGURE_ARGS += \
|
||||
--disable-libxml2 \
|
||||
--disable-libudev
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) $(STAGING_DIR)/usr/include
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/hwloc.h $(STAGING_DIR)/usr/include/
|
||||
$(INSTALL_DIR) $(STAGING_DIR)/usr/include/hwloc
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/hwloc/*.h $(STAGING_DIR)/usr/include/hwloc/
|
||||
$(INSTALL_DIR) $(STAGING_DIR)/usr/include/hwloc/autogen
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/hwloc/autogen/*.h $(STAGING_DIR)/usr/include/hwloc/autogen/
|
||||
$(INSTALL_DIR) $(STAGING_DIR)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib* $(STAGING_DIR)/usr/lib/
|
||||
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
||||
$(INSTALL_DATA) \
|
||||
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
|
||||
$(1)/usr/lib/pkgconfig
|
||||
endef
|
||||
|
||||
define Package/hwloc-utils/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
|
||||
endef
|
||||
|
||||
define Package/libhwloc/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,hwloc-utils))
|
||||
$(eval $(call BuildPackage,libhwloc))
|
59
libs/libpciaccess/Makefile
Normal file
59
libs/libpciaccess/Makefile
Normal file
@ -0,0 +1,59 @@
|
||||
# Copyright (C) 2019 Lucian Cristian <lucian.cristian@gmail.com>
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=libpciaccess
|
||||
PKG_VERSION:=0.16
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE_URL:=https://www.x.org/releases/individual/lib/
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||
PKG_HASH:=214c9d0d884fdd7375ec8da8dcb91a8d3169f263294c9a90c575bf1938b9f489
|
||||
|
||||
PKG_MAINTAINER:= Lucian Cristian <lucian.cristian@gmail.com>
|
||||
PKG_LICENSE_FILES:=COPYING
|
||||
|
||||
PKG_INSTALL:=1
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/libpciaccess
|
||||
SECTION:=libs
|
||||
CATEGORY:=Libraries
|
||||
TITLE:=Generic PCI access library
|
||||
URL:=https://xorg.freedesktop.org/
|
||||
endef
|
||||
|
||||
CONFIGURE_ARGS += \
|
||||
--prefix=/usr
|
||||
|
||||
TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) \
|
||||
$(1)/usr/include \
|
||||
$(1)/usr/lib
|
||||
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/usr/include/* \
|
||||
$(1)/usr/include/
|
||||
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/usr/lib/{pkgconfig,*.so*} \
|
||||
$(1)/usr/lib/
|
||||
endef
|
||||
|
||||
define Package/libpciaccess/install
|
||||
$(INSTALL_DIR) \
|
||||
$(1)/usr/lib
|
||||
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/usr/lib/*.so* \
|
||||
$(1)/usr/lib/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,libpciaccess))
|
34
net/aircrack-ng/Config.in
Normal file
34
net/aircrack-ng/Config.in
Normal file
@ -0,0 +1,34 @@
|
||||
if PACKAGE_aircrack-ng
|
||||
|
||||
comment "SSL support"
|
||||
|
||||
choice
|
||||
prompt "Select SSL library"
|
||||
default AIRCRACK_NG_OPENSSL
|
||||
|
||||
config AIRCRACK_NG_OPENSSL
|
||||
bool "openssl"
|
||||
|
||||
config AIRCRACK_NG_GCRYPT
|
||||
bool "gcrypt"
|
||||
endchoice
|
||||
|
||||
config AIRCRACK_NG_OPTIMIZE_SPEED
|
||||
bool "Optimize for speed"
|
||||
default n
|
||||
help
|
||||
This enables additional optimization and
|
||||
increases performance considerably at the
|
||||
expense of binary size.
|
||||
|
||||
comment "Miscellaneous"
|
||||
|
||||
config AIRCRACK_NG_HWLOC
|
||||
bool "Hwloc support"
|
||||
default n
|
||||
|
||||
config AIRCRACK_NG_SQLITE3
|
||||
bool "Sqlite3 support"
|
||||
default n
|
||||
|
||||
endif
|
@ -8,62 +8,105 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=aircrack-ng
|
||||
PKG_VERSION:=1.2-rc1
|
||||
PKG_RELEASE:=2
|
||||
PKG_LICENSE:=GPL-2.0
|
||||
PKG_VERSION:=1.6
|
||||
PKG_RELEASE:=1
|
||||
PKG_LICENSE:=GPL-2.0-or-later
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
PKG_CPE_ID:=cpe:/a:aircrack-ng:aircrack-ng
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://download.aircrack-ng.org/ \
|
||||
http://archive.aircrack-ng.org/aircrack-ng/$(PKG_VERSION)/
|
||||
PKG_HASH:=cf3134521e1c3d7aed4e384e3e5e7b6959e2d485bd1554474608a3a9328e35fd
|
||||
PKG_SOURCE_URL:=https://download.aircrack-ng.org/
|
||||
PKG_HASH:=4f0bfd486efc6ea7229f7fbc54340ff8b2094a0d73e9f617e0a39f878999a247
|
||||
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
PKG_INSTALL:=1
|
||||
|
||||
PKG_MAINTAINER:=Rick Farina <zerochaos@gentoo.org>
|
||||
|
||||
PKG_FIXUP:=autoreconf
|
||||
|
||||
PKG_CONFIG_DEPENDS:= \
|
||||
CONFIG_AIRCRACK_NG_GCRYPT \
|
||||
CONFIG_AIRCRACK_NG_OPENSSL \
|
||||
\
|
||||
CONFIG_AIRCRACK_NG_OPTIMIZE_SPEED \
|
||||
\
|
||||
CONFIG_AIRCRACK_NG_HWLOC \
|
||||
CONFIG_AIRCRACK_NG_SQLITE3
|
||||
|
||||
include $(INCLUDE_DIR)/uclibc++.mk
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/aircrack-ng
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=+libpcap +libpthread +libopenssl +libnl-core +libnl-genl +zlib
|
||||
DEPENDS:=+AIRCRACK_NG_HWLOC:libhwloc +libpcap +libpcre +libpthread $(CXX_DEPENDS)
|
||||
DEPENDS += +AIRCRACK_NG_OPENSSL:libopenssl
|
||||
DEPENDS += +AIRCRACK_NG_GCRYPT:libgcrypt
|
||||
DEPENDS += +AIRCRACK_NG_SQLITE3:libsqlite3
|
||||
DEPENDS += +libnl-core +libnl-genl +zlib
|
||||
TITLE:=WLAN tools (without airmon-ng) for breaking 802.11 WEP/WPA keys
|
||||
URL:=http://www.aircrack-ng.org/
|
||||
SUBMENU:=wireless
|
||||
URL:=https://www.aircrack-ng.org/
|
||||
SUBMENU:=Wireless
|
||||
endef
|
||||
|
||||
define Package/aircrack-ng/description
|
||||
WLAN tools for breaking 802.11 WEP/WPA keys
|
||||
endef
|
||||
|
||||
define Package/aircrack-ng/config
|
||||
source "$(SOURCE)/Config.in"
|
||||
endef
|
||||
|
||||
define Package/airmon-ng
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=+wireless-tools +ethtool +procps-ng +CONFIG_PCI_SUPPORT:pciutils +CONFIG_USB_SUPPORT:usbutils
|
||||
TITLE:=Bash script designed to turn wireless cards into monitor mode.
|
||||
URL:=http://www.aircrack-ng.org/
|
||||
SUBMENU:=wireless
|
||||
SUBMENU:=Wireless
|
||||
endef
|
||||
|
||||
define Package/airmon-ng/description
|
||||
Bash script designed to turn wireless cards into monitor mode.
|
||||
endef
|
||||
|
||||
TARGET_CFLAGS += -std=gnu89
|
||||
define Build/Prepare
|
||||
$(call Build/Prepare/Default)
|
||||
echo "$(PKG_VERSION)_rev$(PKG_SOURCE_VERSION)" > $(PKG_BUILD_DIR)/VERSION
|
||||
endef
|
||||
|
||||
MAKE_FLAGS += prefix=/usr \
|
||||
libnl=true \
|
||||
sqlite=false \
|
||||
unstable=false \
|
||||
OSNAME=Linux
|
||||
CONFIGURE_ARGS += \
|
||||
--disable-silent-rules \
|
||||
--enable-shared \
|
||||
--with-experimental \
|
||||
--with-libpcap-include=$(STAGING_DIR)/usr/include \
|
||||
--with-libpcap-lib=$(STAGING_DIR)/usr/lib \
|
||||
--without-opt \
|
||||
\
|
||||
PYTHON=$(PYTHON) \
|
||||
\
|
||||
$(if $(CONFIG_AIRCRACK_NG_OPENSSL),,--without-openssl) \
|
||||
$(if $(CONFIG_AIRCRACK_NG_GCRYPT),--with-gcrypt,--without-gcrypt) \
|
||||
$(if $(CONFIG_AIRCRACK_NG_HWLOC),--enable-hwloc,--disable-hwloc) \
|
||||
$(if $(CONFIG_AIRCRACK_NG_SQLITE3),--with-sqlite3=$(STAGING_DIR)/usr,--without-sqlite3)
|
||||
|
||||
TARGET_CFLAGS += -Wall -Wextra -ffunction-sections -fdata-sections
|
||||
|
||||
ifeq ($(CONFIG_AIRCRACK_NG_OPTIMIZE_SPEED),y)
|
||||
TARGET_CFLAGS := $(filter-out -O%,$(TARGET_CFLAGS)) -O3
|
||||
endif
|
||||
|
||||
TARGET_LDFLAGS+= \
|
||||
-Wl,--gc-sections
|
||||
|
||||
define Package/aircrack-ng/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
|
||||
$(INSTALL_DIR) $(1)/usr/sbin
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
|
||||
rm -f $(1)/usr/sbin/airmon-ng
|
||||
endef
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user