mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-04 20:29:09 +01:00
network/airpwn: Fixes for gcc and linker, cleanups.
Changed maintainer Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
parent
e561d757d3
commit
8794eb3068
2 changed files with 14 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue