aircrack-ng: add new package
PATCH 1/3 aircrack-ng: add new package
Signed-off-by Armin Kuster <[email protected]>
--- recipes-security/aircrack-ng/aircrack-ng_1.2.bb | 37 ++++++++++++++++++++++ .../aircrack-ng/files/fixup_cflags.patch | 28 ++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 recipes-security/aircrack-ng/aircrack-ng_1.2.bb create mode 100644 recipes-security/aircrack-ng/files/fixup_cflags.patch
recipes-security/aircrack-ng/aircrack-ng_1.2.bb new file +37 -0
@@ -0,0 +1,37 @@ +SUMMARY = "Aircrack-ng is a set of tools for auditing wireless networks" +DESCRIPTION = "Aircrack-ng is an 802.11 WEP and WPA-PSK keys cracking program that can recover keys once enough data packets have been captured. It implements the standard FMS attack along with some optimizations like KoreK attacks, as well as the PTW attack, thus making the attack much faster compared to other WEP cracking tools." +SECTION = "security" +LICENSE = "GPL-2.0" + +LIC_FILES_CHKSUM = "file://LICENSE;beginline=1;endline=2;md5=1fbd81241fe252ec0f5658a521ab7dd8" + +DEPENDS = "libnl openssl sqlite3 libpcre libpcap" +RC = "rc2" +SRC_URI = "http://download.aircrack-ng.org/${BP}-${RC}.tar.gz \ + file://fixup_cflags.patch" + +SRC_URI[md5sum] = "ebe9d537f06f4d6956213af09c4476da" +SRC_URI[sha256sum] = "ba5b3eda44254efc5b7c9f776eb756f7cc323ad5d0813c101e92edb483d157e9" + +inherit autotools-brokensep pkgconfig + +S = "${WORKDIR}/${BP}-rc2" + +PACKAGECONFIG ?= "" +CFLAGS += " -I${S}/src/include" + +OEMAKE_EXTRA = "sqlite=true experimental=true pcre=true \ + prefix=${prefix} \ + " + +do_compile () { + make ${OEMAKE_EXTRA} TOOL_PREFIX=${TARGET_SYS}- +} + +do_install () { + make DESTDIR=${D} ${OEMAKE_EXTRA} ext_scripts=true install +} + +FILES_${PN} += "/usr/local/" + +RDEPENDS_${PN} = "libpcap"
recipes-security/aircrack-ng/files/fixup_cflags.patch new file +28 -0
@@ -0,0 +1,28 @@ +Upstream Status: Iinappropriate + +Issues do to build env. + +Signed-off-by: Armin Kuster <[email protected]> + +Index: aircrack-ng-1.2-rc2/src/Makefile +=================================================================== +--- aircrack-ng-1.2-rc2.orig/src/Makefile ++++ aircrack-ng-1.2-rc2/src/Makefile +@@ -3,8 +3,6 @@ include $(AC_ROOT)/common.mak + + TEST_DIR = $(AC_ROOT)/test + +-CFLAGS += -Iinclude +- + iCC = $(shell find /opt/intel/cc/*/bin/icc) + iCFLAGS = -w -mcpu=pentiumpro -march=pentiumpro $(COMMON_CFLAGS) + iOPTFLAGS = -O3 -ip -ipo -D_FILE_OFFSET_BITS=64 +@@ -102,7 +100,7 @@ endif + + + ifeq ($(subst TRUE,true,$(filter TRUE true,$(sqlite) $(SQLITE))),true) +- LIBSQL = -L/usr/local/lib -lsqlite3 ++ LIBSQL = -lsqlite3 + else + LIBSQL = + endif
Signature · 1 line
2.3.5
PATCH 2/3 python-pycrypto: add new package
adding crypto package for use by scampy.
I will remove once it is moved to meta-python
Signed-off-by Armin Kuster <[email protected]>
--- .../python/python-pycrypto/cross-compiling.patch | 23 +++++++++++++++ recipes-devtools/python/python-pycrypto_2.6.1.bb | 33 ++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 recipes-devtools/python/python-pycrypto/cross-compiling.patch create mode 100644 recipes-devtools/python/python-pycrypto_2.6.1.bb
recipes-devtools/python/python-pycrypto/cross-compiling.patch new file +23 -0
@@ -0,0 +1,23 @@ +Index: pycrypto-2.6/setup.py +=================================================================== +--- pycrypto-2.6.orig/setup.py ++++ pycrypto-2.6/setup.py +@@ -271,7 +271,8 @@ class PCTBuildConfigure(Command): + if not os.path.exists("config.status"): + if os.system("chmod 0755 configure") != 0: + raise RuntimeError("chmod error") +- cmd = "sh configure" # we use "sh" here so that it'll work on mingw32 with standard python.org binaries ++ host = os.environ.get("HOST_SYS") ++ cmd = "ac_cv_func_malloc_0_nonnull=yes sh configure --host " + host # we use "sh" here so that it'll work on mingw32 with standard python.org binaries + if self.verbose < 1: + cmd += " -q" + if os.system(cmd) != 0: +@@ -370,7 +371,7 @@ kw = {'name':"pycrypto", + 'ext_modules': plat_ext + [ + # _fastmath (uses GNU mp library) + Extension("Crypto.PublicKey._fastmath", +- include_dirs=['src/','/usr/include/'], ++ include_dirs=['src/'], + libraries=['gmp'], + sources=["src/_fastmath.c"]), +
recipes-devtools/python/python-pycrypto_2.6.1.bb new file +33 -0
@@ -0,0 +1,33 @@ +DESCRIPTION = "Cryptographic modules for Python." +HOMEPAGE = "http://www.pycrypto.org/" +SECTION = "devel/python" +LICENSE = "PSFv2" +LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=35f354d199e8cb7667b059a23578e63d" + +SRCNAME = "pycrypto" + +SRC_URI = "https://pypi.python.org/packages/source/p/${SRCNAME}/${SRCNAME}-${PV}.tar.gz \ + file://cross-compiling.patch" + +SRC_URI[md5sum] = "55a61a054aa66812daf5161a0d5d7eda" +SRC_URI[sha256sum] = "f2ce1e989b272cfcb677616763e0a2e7ec659effa67a88aa92b3a65528f60a3c" + +S = "${WORKDIR}/${SRCNAME}-${PV}" + +inherit distutils + +export STAGING_INCDIR +export STAGING_LIBDIR +export BUILD_SYS +export HOST_SYS + +inherit autotools autotools-brokensep distutils + +DEPENDS += " gmp" + +# We explicitly call distutils_do_install, since we want it to run, but +# *don't* want the autotools install to run, since this package doesn't +# provide a "make install" target. +do_install() { + distutils_do_install +}
Signature · 1 line
2.3.5
PATCH 3/3 scapy: add new package
In reply to Armin KusterSigned-off-by Armin Kuster <[email protected]>
--- recipes-security/scapy/scapy_2.3.1.bb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 recipes-security/scapy/scapy_2.3.1.bb
recipes-security/scapy/scapy_2.3.1.bb new file +17 -0
@@ -0,0 +1,17 @@ +SUMMARY = "Network scanning and manipulation tool" +DESCRIPTION = "Scapy is a powerful interactive packet manipulation program. It is able to forge or decode packets of a wide number of protocols, send them on the wire, capture them, match requests and replies, and much more. It can easily handle most classical tasks like scanning, tracerouting, probing, unit tests, attacks or network discovery (it can replace hping, 85% of nmap, arpspoof, arp-sk, arping, tcpdump, tethereal, p0f, etc.). It also performs very well at a lot of other specific tasks that most other tools can't handle, like sending invalid frames, injecting your own 802.11 frames, combining technics (VLAN hopping+ARP cache poisoning, VOIP decoding on WEP encrypted channel, ...), etc." +SECTION = "security" +LICENSE = "GPLv2" + +LIC_FILES_CHKSUM = "file://bin/scapy;beginline=9;endline=13;md5=1d5249872cc54cd4ca3d3879262d0c69" + +SRC_URI = "https://bitbucket.org/secdev/${PN}/downloads/${BP}.zip" + +SRC_URI[md5sum] = "a30d828e59801d1d092219b349f1da9e" +SRC_URI[sha256sum] = "8972c02e39a826a10c02c2bdd5025f7251dce9589c57befd9bb55c65f02e4934" + +inherit setuptools + +RDEPENDS_${PN} = "tcpdump python-subprocess python-compression python-netclient \ + python-netserver python-pydoc python-pkgutil python-shell \ + python-threading python-numbers python-pycrypto"
Signature · 1 line
2.3.5