wok-next view airoscript-ng/receipt @ rev 21017

Some maintenance
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Oct 16 16:46:05 2018 +0300 (2018-10-16)
parents a3c581bf52b8
children d5aab818505e
line source
1 # SliTaz package receipt v2.
3 PACKAGE="airoscript-ng"
4 VERSION="1.2rc3"
5 CATEGORY="network"
6 SHORT_DESC="Airoscript ng"
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL2"
9 #WEB_SITE="https://code.google.com/archive/p/airoscript/"
10 WEB_SITE="http://airoscript.aircrack-ng.org/"
12 TARBALL="$PACKAGE-${VERSION%rc3}-3.tar.gz"
13 WGET_URL="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/airoscript/$TARBALL"
15 compile_rules() {
16 # Remove broken install parts
17 sed -i '/install-docs \\/ d' Makefile-Linux
18 sed -i '/install-locale \\/ d' Makefile-Linux
19 sed -i '/install-desktop \\/ d' Makefile-Linux
21 make -j1 \
22 DESTDIR=$DESTDIR \
23 prefix=usr \
24 picdir=$DESTDIR/usr/share/pixmaps/ \
25 appdir=$DESTDIR/usr/share/applications/ \
26 etcdir=$DESTDIR/etc/$PACKAGE \
27 install || return 1
29 # Patch config - replace "usr/local" by "usr"
30 sed -i 's/usr\/local/usr/g' $DESTDIR/etc/$PACKAGE/airoscript-ng_advanced.conf
32 # Patch executable to find config files
33 sed -i 's/etc\//etc\/airoscript-ng\//g' $DESTDIR/usr/sbin/$PACKAGE
35 cook_pick_manpages $src/src/airoscript-ng.1
36 }
38 genpkg_rules() {
39 mkdir -p $fs/usr/share
40 cp -a $install/usr/sbin $fs/usr
41 cp -a $install/usr/share/airoscript-ng $fs/usr/share
42 cp -a $install/etc $fs
43 DEPENDS="bash"
44 }