summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD12
1 files changed, 8 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 798872ae456..e48426481df 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
# Contributor: boteium
pkgname=sniffjoke
-pkgver=20170815
+pkgver=20170814
pkgrel=1
license=("GPL")
pkgdesc="An internet client running SniffJoke injects in the transmission flow some packets able to seriously disturb passive analysis like sniffing, \
@@ -12,13 +12,17 @@ source=('https://github.com/vecna/sniffjoke/archive/master.zip' )
md5sums=('SKIP')
build() {
- cd $srcdir/sniffjoke-master/
+ cd "$srcdir/sniffjoke-master/"
mkdir -p build
cd build
- cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINSTALL_SBINDIR=/usr/sbin -DSYSCONFDIR=/etc/sniffjoke ..
+ cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINSTALL_SBINDIR=/usr/bin -DSYSCONFDIR=/etc/sniffjoke ..
make
}
package(){
- cd $srcdir/sniffjoke-master/build
+ cd "$srcdir/sniffjoke-master/build"
make DESTDIR=$pkgdir install
+
+ cd "$pkgdir/usr/"
+ mv "./sbin/sniffjoke" ./bin/
+ rmdir sbin
}