summaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
Diffstat (limited to 'network')
-rw-r--r--network/airpwn/airpwn.SlackBuild16
-rw-r--r--network/airpwn/airpwn.info4
2 files changed, 14 insertions, 6 deletions
diff --git a/network/airpwn/airpwn.SlackBuild b/network/airpwn/airpwn.SlackBuild
index 00b1e91715..a2ed6189cd 100644
--- a/network/airpwn/airpwn.SlackBuild
+++ b/network/airpwn/airpwn.SlackBuild
@@ -1,8 +1,8 @@
#!/bin/sh
# Slackware build script for airpwn
-
# Written by Larry Hajali <larryhaja[at]gmail[dot]com>
+# and Klaatu <klaatu@member.fsf.no.psam.org>
PRGNAM=airpwn
VERSION=${VERSION:-1.4}
@@ -54,12 +54,12 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# Remove some unneeded directories and change a file to Unix.
+# Remove unneeded directories and change a file to Unix
find . -type d -name "CVS" | xargs rm -rf {} \;
find . -type d -name ".cvs" | xargs rm -rf {} \;
sed -i 's/\r//g' content/ftp_resp
-# First we need to install lorcon
+# first install lorcon
cd lorcon
CFLAGS="$SLKCFLAGS" \
./configure \
@@ -74,7 +74,11 @@ cd lorcon
make install DESTDIR=$PKG
cd ..
-# Fix airpwn files so we can use it with a Python version other than 2.4.
+sed -i 's/#include <unistd.h>/#include <unistd.h> #include <wep.h>/' keygen.c
+echo "sed change made"
+ls -lh keygen.c
+
+# Fix airpwn files so we can use Python versions other than 2.4
PYTHON_VERSION1=$(python -c 'import sys; print sys.version[:3]')
PYTHON_VERSION2=$(echo $PYTHON_VERSION1 | tr . _)
@@ -95,6 +99,10 @@ CPPFLAGS="-I${PKG}/usr/include" \
--mandir=/usr/man \
--build=$ARCH-slackware-linux
+# fix what libs we link to
+sed -i 's/-lnet/-lnet -lssl -lexpat -lcrypto/' Makefile
+
+# build airpwn
make
make install DESTDIR=$PKG
diff --git a/network/airpwn/airpwn.info b/network/airpwn/airpwn.info
index 03734de637..7c8bf62072 100644
--- a/network/airpwn/airpwn.info
+++ b/network/airpwn/airpwn.info
@@ -6,5 +6,5 @@ MD5SUM="c5538f5eadc2afa0bf3e873c4bfa2513"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="libnet"
-MAINTAINER="Larry Hajali"
-EMAIL="larryhaja[at]gmail[dot]com"
+MAINTAINER="Klaatu"
+EMAIL="klaatu@member.fsf.org"