summaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorklatuu <klaatu@member.fsf.org>2012-09-10 13:43:34 +0200
committerRobby Workman <rworkman@slackbuilds.org>2012-09-10 16:35:38 -0500
commit8794eb3068cf366a32989138e736e74a56499bd1 (patch)
treed92414a8a55e01a845120f7a085c179a07c8d416 /network
parente561d757d3a87f1303d1a8f8e1063d72664dae80 (diff)
downloadslackbuilds-8794eb3068cf366a32989138e736e74a56499bd1.tar.gz
network/airpwn: Fixes for gcc and linker, cleanups.
Changed maintainer Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
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"