Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=multilib.git;a=commitdiff;h=a4955c96b3a5d4de6481e6414d82850f2c494055

commit a4955c96b3a5d4de6481e6414d82850f2c494055
Author: crazy <[email protected]>
Date:   Sat Feb 10 23:56:46 2018 +0100

wepdecrypt-0.8-3-x86_64

* rebuild with tc
* fix makedepends=()
* added an patch to fix compile errors

diff --git a/source/network-extra/wepdecrypt/FrugalBuild 
b/source/network-extra/wepdecrypt/FrugalBuild
index 4479beb..0d30306 100644
--- a/source/network-extra/wepdecrypt/FrugalBuild
+++ b/source/network-extra/wepdecrypt/FrugalBuild
@@ -4,15 +4,16 @@

pkgname=wepdecrypt
pkgver=0.8
-pkgrel=2
+pkgrel=3
pkgdesc="Enhanced version of WepAttack a tool for breaking 802.11 WEP keys"
depends=('fltk' 'openssl>=1.0.1' 'libpcap')
+makedepends+=('x11-protos')
backup=('etc/wepdecrypt.conf')
groups=('network-extra')
-archs=('i686' 'x86_64')
+archs=('x86_64')
Finclude sourceforge
-source=("${source[@]}" fltkVersionCheck.patch)
+source+=(fixes.patch)
sha1sums=('8f75e70ee27d7486a90e9ae631020c2f622ee48e' \
-          '85bdf5eca0464c1fca5ca8cf87d67d45df4e6ba8')
+          '3c27b7d3b4bd6a4965064803562cf0540d30c91e')

# optimization OK
diff --git a/source/network-extra/wepdecrypt/fixes.patch 
b/source/network-extra/wepdecrypt/fixes.patch
new file mode 100644
index 0000000..b65e527
--- /dev/null
+++ b/source/network-extra/wepdecrypt/fixes.patch
@@ -0,0 +1,45 @@
+diff -Naur wepdecrypt-0.8/configure wepdecrypt-0.8-p/configure
+--- wepdecrypt-0.8/configure   2006-07-09 01:53:20.000000000 +0200
++++ wepdecrypt-0.8-p/configure 2018-02-10 23:50:13.636205080 +0100
+@@ -2915,7 +2915,7 @@
+               FIELD2=`$FLTK_CONFIG --version | awk -F . '{print $2}'`;
+               FIELD3=`$FLTK_CONFIG --version | awk -F . '{print $3}'`;
+
+-              if test $FIELD1 -le 1 -a $FIELD3 -lt 6; then
++              if test $FIELD1 -le 1 -a $FIELD2 -lt 1; then
+                       echo -e "\nconfigure: error: fltk-version must be 1.1.6 
or greater!\n"; exit -1;
+               fi
+               if test $FIELD1 -lt 1; then
+diff -Naur wepdecrypt-0.8/src/Makefile wepdecrypt-0.8-p/src/Makefile
+--- wepdecrypt-0.8/src/Makefile        2006-07-09 01:48:08.000000000 +0200
++++ wepdecrypt-0.8-p/src/Makefile      2018-02-10 23:51:23.737345235 +0100
+@@ -6,15 +6,12 @@
+ wepdecrypt:   wepdecrypt.o rc4.o wepfilter.o log.o modes.o misc.o verify.o 
keygen.o localkeygen.o wepserver.o wepclient.o md5_digest.o
+       $(LD) $(LDFLAGS) -o $@ wepdecrypt.o rc4.o wepfilter.o log.o \
+       modes.o misc.o md5_digest.o  wepserver.o wepclient.o verify.o keygen.o 
localkeygen.o $(LIBS)
+-      @if [ -f wepdecrypt.exe ]; then         strip.exe wepdecrypt.exe; echo 
"strip.exe wepdecrypt.exe";      else            strip wepdecrypt; echo "strip 
wepdecrypt"; fi
+
+ gwepdecrypt: gwepdecrypt.cpp
+-      $(FLTK) --compile gwepdecrypt.cpp
+-      @if [ -f gwepdecrypt.exe ]; then                strip.exe 
gwepdecrypt.exe; echo "strip.exe gwepdecrypt.exe";    else            strip 
gwepdecrypt; echo "strip gwepdecrypt"; fi
++      $(CXX) $(LDFLAGS) $(CFLAGS) -I. -o $@ gwepdecrypt.cpp $(shell 
fltk-config --cflags --ldflags) $(LIBS)
+
+ wkeygen: wkeygen.c
+-      $(LD) $(LDFLAGS) $(CFLAGS) $(LIBS) -o $@ wkeygen.c
+-      @if [ -f wkeygen.exe ]; then            strip wkeygen.exe; echo "strip 
wkeygen.exe";    else            strip wkeygen; echo "strip wkeygen"; fi
++      $(LD) $(LDFLAGS) $(CFLAGS) -o $@ wkeygen.c $(LIBS)
+
+ wepdecrypt.o: wepdecrypt.c wepdecrypt.h
+       $(CC) $(CFLAGS) -c -o $@ wepdecrypt.c
+diff -Naur wepdecrypt-0.8/src/wepclient.c wepdecrypt-0.8-p/src/wepclient.c
+--- wepdecrypt-0.8/src/wepclient.c     2006-07-09 01:48:08.000000000 +0200
++++ wepdecrypt-0.8-p/src/wepclient.c   2018-02-10 23:50:43.697265183 +0100
+@@ -75,7 +75,7 @@
+ int server_connection(unsigned char * server_host, int port, char * 
packet_file, unsigned char * init_key, unsigned char * end_key, unsigned char * 
decrypted_key, unsigned char * bssid, unsigned char * mode ,int option){
+       int sd, read_bytes, write_bytes, i, fd;
+       char file[11]="local.dump";
+-      unsigned char buffer[149], digest[16];
++      unsigned char buffer[150], digest[16];
+       struct sockaddr_in dest;
+       struct in_addr *host_ip;
+       struct hostent *host;
diff --git a/source/network-extra/wepdecrypt/fltkVersionCheck.patch 
b/source/network-extra/wepdecrypt/fltkVersionCheck.patch
deleted file mode 100644
index 149c3ea..0000000
--- a/source/network-extra/wepdecrypt/fltkVersionCheck.patch
+++ /dev/null
@@ -1,16 +0,0 @@
- configure |    2 +-
- 1 files changed, 1 insertions(+), 1 deletions(-)
-
-diff --git a/configure b/configure
-index 12fa395..258b157 100755
---- a/configure
-+++ b/configure
-@@ -2915,7 +2915,7 @@ fi
-               FIELD2=`$FLTK_CONFIG --version | awk -F . '{print $2}'`;
-               FIELD3=`$FLTK_CONFIG --version | awk -F . '{print $3}'`;
-
--              if test $FIELD1 -le 1 -a $FIELD3 -lt 6; then
-+              if test $FIELD1 -le 1 -a $FIELD2 -lt 1; then
-                       echo -e "\nconfigure: error: fltk-version must be 1.1.6 
or greater!\n"; exit -1;
-               fi
-               if test $FIELD1 -lt 1; then
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to