mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
57 lines
1.4 KiB
Bash
57 lines
1.4 KiB
Bash
|
# Maintainer: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
|
||
|
|
||
|
pkgname=reaver-wps-svn
|
||
|
pkgver=113
|
||
|
pkgrel=1
|
||
|
pkgdesc="Brute force attack against Wifi Protected Setup (WPS) registrar PINs in order to recover WPA/WPA2 passphrases"
|
||
|
arch=('i686' 'x86_64' 'mips64el')
|
||
|
url="http://code.google.com/p/reaver-wps/"
|
||
|
license=('GPL')
|
||
|
depends=('libpcap' 'sqlite')
|
||
|
makedepends=('subversion')
|
||
|
provides=('reaver-wps')
|
||
|
conflicts=('reaver-wps')
|
||
|
|
||
|
_svntrunk='http://reaver-wps.googlecode.com/svn/trunk/'
|
||
|
_svnmod='reaver-wps'
|
||
|
|
||
|
build() {
|
||
|
cd "${srcdir}"
|
||
|
msg "Connecting to SVN server...."
|
||
|
|
||
|
if [[ -d "${_svnmod}/.svn" ]]; then
|
||
|
(cd "${_svnmod}" && svn up -r "${pkgver}")
|
||
|
else
|
||
|
svn co "${_svntrunk}" --config-dir ./ -r "${pkgver}" "${_svnmod}"
|
||
|
fi
|
||
|
|
||
|
msg "SVN checkout done or server timeout"
|
||
|
msg "Starting build..."
|
||
|
|
||
|
rm -rf "${srcdir}/${_svnmod}-build"
|
||
|
cp -r "${srcdir}/${_svnmod}" "${srcdir}/${_svnmod}-build"
|
||
|
cd "${srcdir}/${_svnmod}-build"
|
||
|
|
||
|
cd 'src'
|
||
|
|
||
|
./configure --prefix=/usr
|
||
|
make
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
cd "${srcdir}/${_svnmod}-build"
|
||
|
pushd src
|
||
|
install -dm755 "${pkgdir}/usr/bin/"
|
||
|
install -m755 reaver "${pkgdir}/usr/bin/"
|
||
|
install -m755 wash "${pkgdir}/usr/bin/"
|
||
|
install -dm755 "${pkgdir}/etc/reaver/"
|
||
|
install -m644 reaver.db "${pkgdir}/etc/reaver/"
|
||
|
popd
|
||
|
pushd docs
|
||
|
install -dm755 "${pkgdir}/usr/share/man/man1/"
|
||
|
install -m644 reaver.1.gz "${pkgdir}/usr/share/man/man1/"
|
||
|
popd
|
||
|
}
|
||
|
|
||
|
# vim:set ts=2 sw=2 et:
|