Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[ebuild request] live ebuild for aircrack-ng
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
barul
Guru
Guru


Joined: 28 May 2010
Posts: 430

PostPosted: Thu Jul 14, 2011 8:08 pm    Post subject: [ebuild request] live ebuild for aircrack-ng Reply with quote

Hi there. I think it's unnecessary to make an aircrack-ng presentation, everybody knows it. I think it could be a good idea to make a live ebuild of it, no?
Back to top
View user's profile Send private message
Gef
Apprentice
Apprentice


Joined: 17 May 2008
Posts: 180
Location: France

PostPosted: Fri Jul 15, 2011 1:39 pm    Post subject: Reply with quote

Code:
--- /usr/portage/net-wireless/aircrack-ng/aircrack-ng-1.1.ebuild   2010-04-29 23:12:40.000000000 +0200
+++ aircrack-ng-9999.ebuild   2011-07-15 15:39:22.099755467 +0200
@@ -10,7 +10,13 @@
 
 DESCRIPTION="WLAN tools for breaking 802.11 WEP/WPA keys"
 HOMEPAGE="http://www.aircrack-ng.org"
-SRC_URI="http://download.aircrack-ng.org/${PN}-${MY_PV}.tar.gz"
+
+if [[ ${PV} == "9999" ]] ; then
+   ESVN_REPO_URI="http://trac.aircrack-ng.org/svn/trunk"
+   inherit subversion
+else
+   SRC_URI=http://download.aircrack-ng.org/${PN}-${MY_PV}.tar.gz
+fi
 
 LICENSE="GPL-2"
 SLOT="0"
@@ -34,7 +40,7 @@
 }
 
 src_prepare() {
-   epatch "${FILESDIR}/${P}-respect_LDFLAGS.patch"
+   #epatch "${FILESDIR}/${PN}-1.1-respect_LDFLAGS.patch" #applied upstream in r1786, see http://trac.aircrack-ng.org/ticket/608
    epatch "${FILESDIR}/${PN}-1.0_rc4-fix_build.patch"
 }

Delivered.
_________________
Laptop : Gentoo ~amd64
(remote) Server : Gentoo amd64
Back to top
View user's profile Send private message
barul
Guru
Guru


Joined: 28 May 2010
Posts: 430

PostPosted: Sun Jul 17, 2011 3:23 pm    Post subject: Reply with quote

Well, I put it in a file named test.patch, which is now in /usr/portage/net-wireless/aircrack-ng/ directory. I ran patch -p0 < test.patch, and got it :
Code:
Hunk #2 FAILED at 34.
1 out of 2 hunks FAILED -- saving rejects to file /usr/portage/net-wireless/aircrack-ng/aircrack-ng-1.1.ebuild.rej


The .rej file contains :
Code:
***************
*** 40,46 ****
  }

  src_prepare() {
-    #epatch "${FILESDIR}/${PN}-1.1-respect_LDFLAGS.patch" #applied upstream in r1786, see http://trac.aircrack-ng.org/ticket/608
     epatch "${FILESDIR}/${PN}-1.0_rc4-fix_build.patch"
  }

--- 34,40 ----
  }

  src_prepare() {
+    epatch "${FILESDIR}/${P}-respect_LDFLAGS.patch"
     epatch "${FILESDIR}/${PN}-1.0_rc4-fix_build.patch"
  }


I don't why thoses lines cannot be added. Thanks in advance!
Back to top
View user's profile Send private message
Gef
Apprentice
Apprentice


Joined: 17 May 2008
Posts: 180
Location: France

PostPosted: Sun Jul 17, 2011 3:50 pm    Post subject: Reply with quote

Code:

--- aircrack-ng-1.1.ebuild   2010-04-29 23:12:40.000000000 +0200
+++ aircrack-ng-9999.ebuild   2011-07-17 17:48:00.996414199 +0200
@@ -10,11 +10,17 @@
 
 DESCRIPTION="WLAN tools for breaking 802.11 WEP/WPA keys"
 HOMEPAGE="http://www.aircrack-ng.org"
-SRC_URI="http://download.aircrack-ng.org/${PN}-${MY_PV}.tar.gz"
+
+if [[ ${PV} == "9999" ]] ; then
+   ESVN_REPO_URI="http://trac.aircrack-ng.org/svn/trunk"
+   inherit subversion
+else
+   SRC_URI=http://download.aircrack-ng.org/${PN}-${MY_PV}.tar.gz
+fi
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS=""
 IUSE="+sqlite kernel_linux kernel_FreeBSD"
 
 DEPEND="dev-libs/openssl
@@ -34,7 +40,7 @@
 }
 
 src_prepare() {
-   epatch "${FILESDIR}/${P}-respect_LDFLAGS.patch"
+   #epatch "${FILESDIR}/${PN}-1.1-respect_LDFLAGS.patch" #applied upstream in r1786, see http://trac.aircrack-ng.org/ticket/608
    epatch "${FILESDIR}/${PN}-1.0_rc4-fix_build.patch"
 }


Does this patch works for you ? Anyway, you should not work under /usr/portage, but within a local overlay.
_________________
Laptop : Gentoo ~amd64
(remote) Server : Gentoo amd64
Back to top
View user's profile Send private message
barul
Guru
Guru


Joined: 28 May 2010
Posts: 430

PostPosted: Sun Jul 17, 2011 4:19 pm    Post subject: Reply with quote

No, it didn't worked. BTW you're right, I'm now in my local overlay.
So I did a patch file test.patch with the code you pasted, and here the ouput of : patch -p0 < test.patch :
Code:
cyborg aircrack-ng # patch -p0 < test.patch
patching file aircrack-ng-1.1.ebuild
Hunk #2 FAILED at 40.
1 out of 2 hunks FAILED -- saving rejects to file aircrack-ng-1.1.ebuild.rej


The .rej file :
Code:
***************
*** 34,40 ****
  }
 
  src_prepare() {
-    epatch "${FILESDIR}/${P}-respect_LDFLAGS.patch"
     epatch "${FILESDIR}/${PN}-1.0_rc4-fix_build.patch"
  }
 
--- 40,46 ----
  }
 
  src_prepare() {
+    #epatch "${FILESDIR}/${PN}-1.1-respect_LDFLAGS.patch" #applied upstream in r1786, see http://trac.aircrack-ng.org/ticket/608
     epatch "${FILESDIR}/${PN}-1.0_rc4-fix_build.patch"
  }
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum