Skip to contentSkip to conversation

aircrack-ng: new package

PATCH New Laurent Cans 6 participants 14 messages Feb 8, 2013 – Feb 12, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 aircrack-ng: new package

Aircrack-ng is a set of tools for auditing wireless security.

Although the last version is 1.1, I choose to package last svn version due to a fixed bug which fix a failed compilation.

---
 package/Config.in                  |    1 +
 package/aircrack-ng/Config.in      |    9 +++++++++
 package/aircrack-ng/aircrack-ng.mk |   34 ++++++++++++++++++++++++++++++++++
 3 files changed, 44 insertions(+)
 create mode 100644 package/aircrack-ng/Config.in
 create mode 100644 package/aircrack-ng/aircrack-ng.mk
package/Config.in +1 -0
index 8588951..c820d68 100644
@@ -612,6 +612,7 @@ source "package/sound-theme-freedesktop/Config.in"
 endmenu
 
 menu "Networking applications"
+source "package/aircrack-ng/Config.in"
 source "package/argus/Config.in"
 source "package/arptables/Config.in"
 source "package/avahi/Config.in"
package/aircrack-ng/Config.in new file +9 -0
new file mode 100644
index 0000000..1efa8e6
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_AIRCRACK_NG
+	bool "aircrack-ng"
+	depends on BR2_LARGEFILE
+	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_WI
+	help
+	  A set of tools for auditing wireless networks
+
+	  http://www.aircrack-ng.org/
package/aircrack-ng/aircrack-ng.mk new file +34 -0
new file mode 100644
index 0000000..29f638c
@@ -0,0 +1,34 @@
+#############################################################
+#
+# Aircrack-ng
+#
+#############################################################
+AIRCRACK_NG_VERSION = 2245
+AIRCRACK_NG_SITE = http://trac.aircrack-ng.org/svn/trunk
+AIRCRACK_NG_SITE_METHOD = svn
+AIRCRACK_NG_LICENSE = GPLv2
+AIRCRACK_NG_LICENSE_FILES = LICENSE
+AIRCRACK_NG_DEPENDENCIES = openssl
+
+ifeq($(BR2_PACKAGE_SQLITE),y)
+      AIRCRACK_NG_OPTS = sqlite=true
+      AIRCRACK_NG_DEPENDENCIES += sqlite
+endif
+
+define AIRCRACK_NG_BUILD_CMDS
+      $(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" -C $(@D) $(AIRCRACK_NG_OPTS) all
+endef
+
+define AIRCRACK_NG_CLEAN_CMDS
+      $(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" -C $(@D) $(AIRCRACK_NG_OPTS) clean
+endef
+
+define AIRCRACK_NG_INSTALL_TARGET_CMDS
+      $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) $(AIRCRACK_NG_OPTS) install
+endef
+
+define AIRCRACK_NG_UNINSTALL_TARGET_CMDS
+      $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) $(AIRCRACK_NG_OPTS) uninstall
+endef
+
+$(eval $(generic-package))
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 1/1 aircrack-ng: new package

package/aircrack-ng/Config.in line 5

Quoted 1 line · Laurent Cans
package/aircrack-ng/Config.in new file +1 -0
+	select BR2_PACKAGE_WI

WI?
There's no such package in buildroot.
And it's not in DEPENDENCIES either...
Regards.

#2 lore raw

PATCH 1/1 aircrack-ng: new package

Hi

Spelling mistake : BR2_PACKAGE_IW

This error was hidden by my test configuration which has this option selected

I will fix this this

2013/2/8 Gustavo Zacarias <[email protected]>:

Quoted 9 lines · Laurent Cans
Quoted 2 lines

+ select BR2_PACKAGE_WI

WI?
There's no such package in buildroot.
And it's not in DEPENDENCIES either...
Regards.

#3 lore raw

PATCH 1/1 aircrack-ng: new package

In reply to Laurent Cans

Dear Laurent Cans,

Thanks, this looks pretty good; A few comments below.

Quoted 3 lines · Laurent Cans

Aircrack-ng is a set of tools for auditing wireless security.

Although the last version is 1.1, I choose to package last svn version due to a fixed bug which fix a failed compilation.

Please wrap lines at ~80 columns.

Quoted 6 lines
package/aircrack-ng/Config.in new file +0 -0
new file mode 100644
index 0000000..1efa8e6

package/aircrack-ng/Config.in line 9

Quoted 9 lines
package/aircrack-ng/Config.in new file +9 -0
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_AIRCRACK_NG
+	bool "aircrack-ng"
+	depends on BR2_LARGEFILE
+	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_WI
+	help
+	  A set of tools for auditing wireless networks
+
+	  http://www.aircrack-ng.org/

Since your package depends on BR2_LARGEFILE, you must add a comment:

comment "aircrack-ng needs a toolchain with largefile support"
depends on !BR2_LARGEFILE

Like we do for all other packages.

package/aircrack-ng/aircrack-ng.mk line 6

Quoted 12 lines
package/aircrack-ng/aircrack-ng.mk new file +6 -0
new file mode 100644
index 0000000..29f638c
@@ -0,0 +1,34 @@
+#############################################################
+#
+# Aircrack-ng
+#
+#############################################################
+AIRCRACK_NG_VERSION = 2245

One empty line between the header and the first variable definition.

package/aircrack-ng/aircrack-ng.mk line 9

Quoted 3 lines
package/aircrack-ng/aircrack-ng.mk new file +3 -0
+AIRCRACK_NG_SITE = http://trac.aircrack-ng.org/svn/trunk
+AIRCRACK_NG_SITE_METHOD = svn
+AIRCRACK_NG_LICENSE = GPLv2

License is GPLv2+

package/aircrack-ng/aircrack-ng.mk line 16

Quoted 7 lines
package/aircrack-ng/aircrack-ng.mk new file +7 -0
+AIRCRACK_NG_LICENSE_FILES = LICENSE
+AIRCRACK_NG_DEPENDENCIES = openssl
+
+ifeq($(BR2_PACKAGE_SQLITE),y)
+      AIRCRACK_NG_OPTS = sqlite=true
+      AIRCRACK_NG_DEPENDENCIES += sqlite
+endif

The src/Makefile contains:

ifeq ($(subst TRUE,true,$(filter TRUE true,$(sqlite) $(SQLITE))),true)
LIBSQL = -L/usr/local/lib -lsqlite3
else

	LIBSQL		=

endif

This -L/usr/local/lib isn't really nice since this is not where sqlite will be installed, and it may cause issues when cross-compiling.

package/aircrack-ng/aircrack-ng.mk line 20

Quoted 4 lines
package/aircrack-ng/aircrack-ng.mk new file +4 -0
+
+define AIRCRACK_NG_BUILD_CMDS
+      $(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" -C $(@D) $(AIRCRACK_NG_OPTS) all
+endef

Use $(TARGET_CONFIGURE_OPTS) :

	$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) $(AIRCRACK_NG_OPTS) all

And ditto for the other commands.

Best regards,

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#4 lore raw

PATCH 1/1 aircrack-ng: new package

Am 08.02.2013 16:32, schrieb Thomas Petazzoni:

Quoted 32 lines

Dear Laurent Cans,

Thanks, this looks pretty good; A few comments below.

Quoted 3 lines · Laurent Cans

Aircrack-ng is a set of tools for auditing wireless security.

Although the last version is 1.1, I choose to package last svn version due to a fixed bug which fix a failed compilation.

Please wrap lines at ~80 columns.

Quoted 6 lines
package/aircrack-ng/Config.in new file +0 -0
new file mode 100644
index 0000000..1efa8e6

package/aircrack-ng/Config.in line 9

Quoted 9 lines
package/aircrack-ng/Config.in new file +9 -0
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_AIRCRACK_NG
+	bool "aircrack-ng"
+	depends on BR2_LARGEFILE
+	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_WI
+	help
+	  A set of tools for auditing wireless networks
+
+	  http://www.aircrack-ng.org/

Since your package depends on BR2_LARGEFILE, you must add a comment:

comment "aircrack-ng needs a toolchain with largefile support"
depends on !BR2_LARGEFILE

Like we do for all other packages.

Quoted 13 lines

package/aircrack-ng/aircrack-ng.mk line 6

Quoted 12 lines
package/aircrack-ng/aircrack-ng.mk new file +6 -0
new file mode 100644
index 0000000..29f638c
@@ -0,0 +1,34 @@
+#############################################################
+#
+# Aircrack-ng
+#
+#############################################################
+AIRCRACK_NG_VERSION = 2245

One empty line between the header and the first variable definition.

Someone should fix this in the manual. I'll do this and provide a patch.

Regards

Stephan

Quoted 37 lines

package/aircrack-ng/aircrack-ng.mk line 9

Quoted 4 lines
package/aircrack-ng/aircrack-ng.mk new file +3 -0
+AIRCRACK_NG_SITE = http://trac.aircrack-ng.org/svn/trunk
+AIRCRACK_NG_SITE_METHOD = svn
+AIRCRACK_NG_LICENSE = GPLv2

License is GPLv2+

package/aircrack-ng/aircrack-ng.mk line 16

Quoted 7 lines
package/aircrack-ng/aircrack-ng.mk new file +7 -0
+AIRCRACK_NG_LICENSE_FILES = LICENSE
+AIRCRACK_NG_DEPENDENCIES = openssl
+
+ifeq($(BR2_PACKAGE_SQLITE),y)
+      AIRCRACK_NG_OPTS = sqlite=true
+      AIRCRACK_NG_DEPENDENCIES += sqlite
+endif

The src/Makefile contains:

ifeq ($(subst TRUE,true,$(filter TRUE true,$(sqlite) $(SQLITE))),true)
LIBSQL = -L/usr/local/lib -lsqlite3
else

	LIBSQL		=

endif

This -L/usr/local/lib isn't really nice since this is not where sqlite will be installed, and it may cause issues when cross-compiling.

package/aircrack-ng/aircrack-ng.mk line 20

Quoted 4 lines
package/aircrack-ng/aircrack-ng.mk new file +4 -0
+
+define AIRCRACK_NG_BUILD_CMDS
+      $(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" -C $(@D) $(AIRCRACK_NG_OPTS) all
+endef

Use $(TARGET_CONFIGURE_OPTS) :

	$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) $(AIRCRACK_NG_OPTS) all

And ditto for the other commands.

Best regards,

Thomas

Signature · 4 lines
reLinux     -    Stephan Hoffmann
Am Schmidtgrund 124    50765 K?ln
Tel. +49.221.95595-19    Fax: -64
www.reLinux.de     sho at reLinux.de
#5 lore raw

PATCH 1/1 aircrack-ng: new package

In reply to Thomas Petazzoni
Quoted 3 lines · Thomas Petazzoni

Dear Laurent Cans,

Thanks, this looks pretty good; A few comments below.

Yep, don't be discouraged by the large amount of feedback :-)

Quoted 4 lines · Laurent Cans
Quoted 3 lines

Aircrack-ng is a set of tools for auditing wireless security.

Although the last version is 1.1, I choose to package last svn version due to a fixed bug which fix a failed compilation.

It would be good to repeat this comment in the .mk file. That helps to
see if a certain packaged upstream version is in fact more recent than what is already there.

[snip]

Quoted 2 lines

package/aircrack-ng/aircrack-ng.mk line 14

Quoted 2 lines
package/aircrack-ng/aircrack-ng.mk new file +2 -0
+ifeq($(BR2_PACKAGE_SQLITE),y)
+      AIRCRACK_NG_OPTS = sqlite=true

I prefer AIRCRACK_NG_MAKE_OPTS.

Quoted 2 lines

package/aircrack-ng/aircrack-ng.mk line 16

Quoted 2 lines
package/aircrack-ng/aircrack-ng.mk new file +2 -0
+      AIRCRACK_NG_DEPENDENCIES += sqlite
+endif

I would add an else branch that explicitly sets sqlite=false, to make
sure it doesn't leak in through the environment.

Quoted 11 lines

The src/Makefile contains:

ifeq ($(subst TRUE,true,$(filter TRUE true,$(sqlite) $(SQLITE))),true)
LIBSQL = -L/usr/local/lib -lsqlite3
else

	LIBSQL		=

endif

This -L/usr/local/lib isn't really nice since this is not where sqlite will be installed, and it may cause issues when cross-compiling.

The solution is simple:

AIRCRACK_NG_MAKE_OPTS += LIBSQL="-lsqlite3"

(no -L is needed because libsqlite3.a is in the default library search path).

Quoted 9 lines

package/aircrack-ng/aircrack-ng.mk line 20

Quoted 5 lines
package/aircrack-ng/aircrack-ng.mk new file +4 -0
+
+define AIRCRACK_NG_BUILD_CMDS
+      $(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" -C $(@D) $(AIRCRACK_NG_OPTS) all
+endef

Use $(TARGET_CONFIGURE_OPTS) :

	$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) $(AIRCRACK_NG_OPTS) all

If it works, I prefer to put the TARGET_CONFIGURE_OPTS in the
environment instead:

$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) $(AIRCRACK_NG_MAKE_OPTS) all

That gives the Makefile the possibility to append to CFLAGS and LDFLAGS, if necessary. However, some Makefiles unconditionally set CFLAGS or LDFLAGS (or even CC), in that case passing through the environment doesn't work.

Regards,
Arnout

Quoted 6 lines

And ditto for the other commands.

Best regards,

Thomas

Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
#6 lore raw

PATCH 1/1 aircrack-ng: new package

Arnout, Thomas,

I tried to use $(TARGET_CONFIGURE_OPTS) passed by variable or by environment but the 2 methods fails.

What is the correct methode to handle this?
- Correct package makefiles
- Don't use $(TARGET_CONFIGURE_OPTS) but CC and LD fixed by variable
- Another solution

Best regards,

Laurent

2013/2/8 Arnout Vandecappelle <[email protected]>:

Quoted 103 lines · Thomas Petazzoni
Quoted 4 lines

Dear Laurent Cans,

Thanks, this looks pretty good; A few comments below.

Yep, don't be discouraged by the large amount of feedback :-)

Quoted 6 lines · Laurent Cans
Quoted 5 lines

Aircrack-ng is a set of tools for auditing wireless security.

Although the last version is 1.1, I choose to package last svn version due to a fixed bug which fix a failed compilation.

It would be good to repeat this comment in the .mk file. That helps to see
if a certain packaged upstream version is in fact more recent than what is already there.

[snip]

Quoted 2 lines

package/aircrack-ng/aircrack-ng.mk line 14

Quoted 2 lines
package/aircrack-ng/aircrack-ng.mk new file +2 -0
+ifeq($(BR2_PACKAGE_SQLITE),y)
+      AIRCRACK_NG_OPTS = sqlite=true

I prefer AIRCRACK_NG_MAKE_OPTS.

Quoted 2 lines

package/aircrack-ng/aircrack-ng.mk line 16

Quoted 2 lines
package/aircrack-ng/aircrack-ng.mk new file +2 -0
+      AIRCRACK_NG_DEPENDENCIES += sqlite
+endif

I would add an else branch that explicitly sets sqlite=false, to make sure
it doesn't leak in through the environment.

Quoted 11 lines

The src/Makefile contains:

ifeq ($(subst TRUE,true,$(filter TRUE true,$(sqlite) $(SQLITE))),true)
LIBSQL = -L/usr/local/lib -lsqlite3
else
LIBSQL =
endif

This -L/usr/local/lib isn't really nice since this is not where sqlite will be installed, and it may cause issues when cross-compiling.

The solution is simple:

AIRCRACK_NG_MAKE_OPTS += LIBSQL="-lsqlite3"

(no -L is needed because libsqlite3.a is in the default library search path).

Quoted 11 lines
Quoted 6 lines
package/aircrack-ng/aircrack-ng.mk new file +3 -0
+
+define AIRCRACK_NG_BUILD_CMDS
+      $(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" -C $(@D)

$(AIRCRACK_NG_OPTS) all
+endef

Use $(TARGET_CONFIGURE_OPTS) :

        $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) $(AIRCRACK_NG_OPTS) all

If it works, I prefer to put the TARGET_CONFIGURE_OPTS in the environment
instead:

$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) $(AIRCRACK_NG_MAKE_OPTS) all

That gives the Makefile the possibility to append to CFLAGS and LDFLAGS, if necessary. However, some Makefiles unconditionally set CFLAGS or LDFLAGS (or even CC), in that case passing through the environment doesn't work.

Regards,
Arnout

Quoted 6 lines

And ditto for the other commands.

Best regards,

Thomas

--

Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
#7 lore raw

PATCH 1/1 aircrack-ng: new package

Quoted 5 lines · Laurent CANS

Arnout, Thomas,

I tried to use $(TARGET_CONFIGURE_OPTS) passed by variable or by environment but the 2 methods fails.

Quoted 8 lines

What is the correct methode to handle this?
- Correct package makefiles
- Don't use $(TARGET_CONFIGURE_OPTS) but CC and LD fixed by variable
- Another solution

Best regards,

Laurent

Laurent,

First of all, please don't top-post, but cut down the quoted message to
the relevant parts and reply under them, like below.

Quoted 4 lines

2013/2/8 Arnout Vandecappelle <[email protected]>:

Quoted 2 lines · Thomas Petazzoni
Quoted 1 line · Laurent Cans

[snip]

Quoted 12 lines
Quoted 12 lines
Quoted 10 lines
Quoted 5 lines
package/aircrack-ng/aircrack-ng.mk new file +3 -0
+
+define AIRCRACK_NG_BUILD_CMDS
+      $(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" -C $(@D)

$(AIRCRACK_NG_OPTS) all
+endef

Use $(TARGET_CONFIGURE_OPTS) :

         $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) $(AIRCRACK_NG_OPTS) all
Quoted 8 lines
Quoted 8 lines

If it works, I prefer to put the TARGET_CONFIGURE_OPTS in the environment
instead:

$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) $(AIRCRACK_NG_MAKE_OPTS) all

That gives the Makefile the possibility to append to CFLAGS and LDFLAGS, if necessary. However, some Makefiles unconditionally set CFLAGS or LDFLAGS (or even CC), in that case passing through the environment doesn't work.

If setting $(TARGET_CONFIGURE_OPTS) in the environment doesn't work,
then you can try setting it on the command line instead. If that doesn't work either, it indicates that something funny is done in the Makefile and it's important to find out what exactly. Probably it's a matter of CFLAGS or LDFLAGS that need to be set, but are now overridden from the command line.

In that case, the best option is to fix the Makefile (and upstream the
fix). A less preferred option is something like:

$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
CC="$(TARGET_CC)" LD="$(TARGET_LD)" $(AIRCRACK_NG_MAKE_OPTS) all

i.e. use the command line to force CC and LD and pass the things that the Makefile needs to have control over (CFLAGS and LDFLAGS) through the environment.

Regards,
Arnout

Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
#8 lore raw

PATCH 1/1 aircrack-ng: new package

In reply to Laurent Cans

Hi Laurent

You mean 1.1 did not compile with latest buildroot ?

Here's mine from 2012.05 days but ofcourse it needs fixing and cleanup ....

#############################################################
#

# aircrack-ng
#
#############################################################

AIRCRACK_NG_VERSION = 1.1
AIRCRACK_NG_SOURCE = aircrack-ng-$(AIRCRACK_NG_VERSION).tar.gz AIRCRACK_NG_SITE = http://download.aircrack-ng.org
AIRCRACK_NG_DEPENDENCIES = openssl sqlite

define AIRCRACK_NG_BUILD_CMDS

    $(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE)

CC="$(TARGET_CC)" CXX="$(TARGET_CXX)" LD="$(TARGET_LD)" -C $(@D) sqlite=true unstable=true strip
endef

define AIRCRACK_NG_INSTALL_TARGET_CMDS

    $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR)

sqlite=true unstable=true install
endef

$(eval $(call GENTARGETS))

8.2.2013 18:16, Laurent Cans kirjoitti:

Quoted 80 lines

Aircrack-ng is a set of tools for auditing wireless security.

Although the last version is 1.1, I choose to package last svn version due to a fixed bug which fix a failed compilation.

---
 package/Config.in                  |    1 +
 package/aircrack-ng/Config.in      |    9 +++++++++
 package/aircrack-ng/aircrack-ng.mk |   34 ++++++++++++++++++++++++++++++++++
 3 files changed, 44 insertions(+)
 create mode 100644 package/aircrack-ng/Config.in
 create mode 100644 package/aircrack-ng/aircrack-ng.mk
package/Config.in +1 -0
index 8588951..c820d68 100644
@@ -612,6 +612,7 @@ source "package/sound-theme-freedesktop/Config.in"
 endmenu
 
 menu "Networking applications"
+source "package/aircrack-ng/Config.in"
 source "package/argus/Config.in"
 source "package/arptables/Config.in"
 source "package/avahi/Config.in"
package/aircrack-ng/Config.in new file +9 -0
new file mode 100644
index 0000000..1efa8e6
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_AIRCRACK_NG
+	bool "aircrack-ng"
+	depends on BR2_LARGEFILE
+	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_WI
+	help
+	  A set of tools for auditing wireless networks
+
+	  http://www.aircrack-ng.org/
package/aircrack-ng/aircrack-ng.mk new file +34 -0
new file mode 100644
index 0000000..29f638c
@@ -0,0 +1,34 @@
+#############################################################
+#
+# Aircrack-ng
+#
+#############################################################
+AIRCRACK_NG_VERSION = 2245
+AIRCRACK_NG_SITE = http://trac.aircrack-ng.org/svn/trunk
+AIRCRACK_NG_SITE_METHOD = svn
+AIRCRACK_NG_LICENSE = GPLv2
+AIRCRACK_NG_LICENSE_FILES = LICENSE
+AIRCRACK_NG_DEPENDENCIES = openssl
+
+ifeq($(BR2_PACKAGE_SQLITE),y)
+      AIRCRACK_NG_OPTS = sqlite=true
+      AIRCRACK_NG_DEPENDENCIES += sqlite
+endif
+
+define AIRCRACK_NG_BUILD_CMDS
+      $(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" -C $(@D) $(AIRCRACK_NG_OPTS) all
+endef
+
+define AIRCRACK_NG_CLEAN_CMDS
+      $(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" -C $(@D) $(AIRCRACK_NG_OPTS) clean
+endef
+
+define AIRCRACK_NG_INSTALL_TARGET_CMDS
+      $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) $(AIRCRACK_NG_OPTS) install
+endef
+
+define AIRCRACK_NG_UNINSTALL_TARGET_CMDS
+      $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) $(AIRCRACK_NG_OPTS) uninstall
+endef
+
+$(eval $(generic-package))
#9 lore raw

PATCH 1/1 aircrack-ng: new package

2013/2/8 Stefan Fr?berg <[email protected]>:

Quoted 3 lines

Hi Laurent

You mean 1.1 did not compile with latest buildroot ?

I faced a problem with gcc4.5 referenced by the project with this issue :

http://trac.aircrack-ng.org/ticket/762

Quoted 111 lines

Here's mine from 2012.05 days but ofcourse it needs fixing and cleanup ....

#############################################################
#

# aircrack-ng
#
#############################################################

AIRCRACK_NG_VERSION = 1.1
AIRCRACK_NG_SOURCE = aircrack-ng-$(AIRCRACK_NG_VERSION).tar.gz AIRCRACK_NG_SITE = http://download.aircrack-ng.org
AIRCRACK_NG_DEPENDENCIES = openssl sqlite

define AIRCRACK_NG_BUILD_CMDS

    $(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE)

CC="$(TARGET_CC)" CXX="$(TARGET_CXX)" LD="$(TARGET_LD)" -C $(@D) sqlite=true unstable=true strip
endef

define AIRCRACK_NG_INSTALL_TARGET_CMDS

    $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR)

sqlite=true unstable=true install
endef

$(eval $(call GENTARGETS))

8.2.2013 18:16, Laurent Cans kirjoitti:

Quoted 80 lines

Aircrack-ng is a set of tools for auditing wireless security.

Although the last version is 1.1, I choose to package last svn version due to a fixed bug which fix a failed compilation.

---
 package/Config.in                  |    1 +
 package/aircrack-ng/Config.in      |    9 +++++++++
 package/aircrack-ng/aircrack-ng.mk |   34 ++++++++++++++++++++++++++++++++++
 3 files changed, 44 insertions(+)
 create mode 100644 package/aircrack-ng/Config.in
 create mode 100644 package/aircrack-ng/aircrack-ng.mk
package/Config.in +1 -0
index 8588951..c820d68 100644
@@ -612,6 +612,7 @@ source "package/sound-theme-freedesktop/Config.in"
 endmenu
 
 menu "Networking applications"
+source "package/aircrack-ng/Config.in"
 source "package/argus/Config.in"
 source "package/arptables/Config.in"
 source "package/avahi/Config.in"
package/aircrack-ng/Config.in new file +9 -0
new file mode 100644
index 0000000..1efa8e6
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_AIRCRACK_NG
+     bool "aircrack-ng"
+     depends on BR2_LARGEFILE
+     select BR2_PACKAGE_OPENSSL
+     select BR2_PACKAGE_WI
+     help
+       A set of tools for auditing wireless networks
+
+       http://www.aircrack-ng.org/
package/aircrack-ng/aircrack-ng.mk new file +34 -0
new file mode 100644
index 0000000..29f638c
@@ -0,0 +1,34 @@
+#############################################################
+#
+# Aircrack-ng
+#
+#############################################################
+AIRCRACK_NG_VERSION = 2245
+AIRCRACK_NG_SITE = http://trac.aircrack-ng.org/svn/trunk
+AIRCRACK_NG_SITE_METHOD = svn
+AIRCRACK_NG_LICENSE = GPLv2
+AIRCRACK_NG_LICENSE_FILES = LICENSE
+AIRCRACK_NG_DEPENDENCIES = openssl
+
+ifeq($(BR2_PACKAGE_SQLITE),y)
+      AIRCRACK_NG_OPTS = sqlite=true
+      AIRCRACK_NG_DEPENDENCIES += sqlite
+endif
+
+define AIRCRACK_NG_BUILD_CMDS
+      $(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" -C $(@D) $(AIRCRACK_NG_OPTS) all
+endef
+
+define AIRCRACK_NG_CLEAN_CMDS
+      $(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" -C $(@D) $(AIRCRACK_NG_OPTS) clean
+endef
+
+define AIRCRACK_NG_INSTALL_TARGET_CMDS
+      $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) $(AIRCRACK_NG_OPTS) install
+endef
+
+define AIRCRACK_NG_UNINSTALL_TARGET_CMDS
+      $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) $(AIRCRACK_NG_OPTS) uninstall
+endef
+
+$(eval $(generic-package))
#10 lore raw

PATCH 1/1 aircrack-ng: new package

Hi Laurent

9.2.2013 0:38, Laurent CANS kirjoitti:

Quoted 7 lines

2013/2/8 Stefan Fr?berg <[email protected]>:

Quoted 3 lines

Hi Laurent

You mean 1.1 did not compile with latest buildroot ?

I faced a problem with gcc4.5 referenced by the project with this issue :

http://trac.aircrack-ng.org/ticket/762

Hmmm... I could swear that I was using 4.5 when compiling that 1.1 version ages ago. But i tried compiling
it with only 32-bit x86 target.

Regards
Stefan

#11 lore raw

PATCH 1/1 aircrack-ng: new package

9.2.2013 13:36, Stefan Fr?berg kirjoitti:

Quoted 10 lines

Hi Laurent

9.2.2013 0:38, Laurent CANS kirjoitti:

Quoted 7 lines

2013/2/8 Stefan Fr?berg <[email protected]>:

Quoted 3 lines

Hi Laurent

You mean 1.1 did not compile with latest buildroot ?

I faced a problem with gcc4.5 referenced by the project with this issue :

http://trac.aircrack-ng.org/ticket/762

Ah, but now I see it.
That -Werror thing.
I always define -Wno-error in my buildroot CFLAGS because
I hate it when people think that their code is perfect (it newer is, and neither is my code) and
stop compiling because warnings.
That's why my compilationg with 4.5 succeeded.

So lil patch to makefile to get rid of that Werror thing should be good to get it compiled
with any gcc.

Regards
Stefan

Quoted 12 lines

Hmmm... I could swear that I was using 4.5 when compiling that 1.1 version ages ago. But i tried compiling
it with only 32-bit x86 target.

Regards
Stefan

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

#12 lore raw

PATCH 1/1 aircrack-ng: new package

Dear Stefan Fr?berg,

Quoted 7 lines · Stefan Fr?berg

Ah, but now I see it.
That -Werror thing.
I always define -Wno-error in my buildroot CFLAGS because I hate it when people think that their code is perfect (it newer is, and neither is my code) and
stop compiling because warnings.
That's why my compilationg with 4.5 succeeded.

Indeed, if the reason the compilation fails is because of -Werror, then remove -Werror from the compilation flags, and use the stable 1.1 release rather than the SVN version.

Best regards,

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#13 lore raw

PATCH 1/1 aircrack-ng: new package

Hi Thomas

9.2.2013 14:01, Thomas Petazzoni kirjoitti:

Quoted 11 lines

Dear Stefan Fr?berg,

Quoted 7 lines · Stefan Fr?berg

Ah, but now I see it.
That -Werror thing.
I always define -Wno-error in my buildroot CFLAGS because I hate it when people think that their code is perfect (it newer is, and neither is my code) and
stop compiling because warnings.
That's why my compilationg with 4.5 succeeded.

Quoted 7 lines

Indeed, if the reason the compilation fails is because of -Werror, then remove -Werror from the compilation flags, and use the stable 1.1 release rather than the SVN version.

Best regards,

Thomas

I Agree.
It's always good to take the latest stable version (if there is any) as starting point and included in buildroot.
And after that is kosher, then maybe go for the latest and greatest bleeding edge version.

Regards
Stefan