wok-next annotate airoscript-ng/receipt @ rev 20976
Follow recent changes in the Python renames
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Sep 25 17:35:51 2018 +0300 (2018-09-25) |
parents | 11b5e93cb5f2 |
children | f48456621a9d |
rev | line source |
---|---|
slaxemulator@7524 | 1 # SliTaz package receipt. |
slaxemulator@7524 | 2 |
slaxemulator@7524 | 3 PACKAGE="airoscript-ng" |
slaxemulator@13168 | 4 VERSION="1.2rc3" |
slaxemulator@7524 | 5 CATEGORY="network" |
slaxemulator@7524 | 6 SHORT_DESC="Airoscript ng" |
slaxemulator@7524 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@15201 | 8 LICENSE="GPL2" |
al@20906 | 9 #WEB_SITE="https://code.google.com/archive/p/airoscript/" |
al@20906 | 10 WEB_SITE="http://airoscript.aircrack-ng.org/" |
slaxemulator@13168 | 11 TARBALL="$PACKAGE-${VERSION%rc3}-3.tar.gz" |
al@20906 | 12 WGET_URL="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/airoscript/$TARBALL" |
slaxemulator@7524 | 13 |
pascal@15201 | 14 DEPENDS="bash" |
pascal@15201 | 15 |
slaxemulator@7524 | 16 # Rules to configure and make the package. |
slaxemulator@7524 | 17 compile_rules() |
slaxemulator@7524 | 18 { |
slaxemulator@13168 | 19 # Remove broken install parts |
slaxemulator@13168 | 20 sed -i '/install-docs \\/ d' Makefile-Linux |
slaxemulator@13168 | 21 sed -i '/install-locale \\/ d' Makefile-Linux |
slaxemulator@13168 | 22 sed -i '/install-desktop \\/ d' Makefile-Linux |
slaxemulator@13168 | 23 make -j1 DESTDIR=$DESTDIR \ |
slaxemulator@13168 | 24 prefix=usr \ |
slaxemulator@13168 | 25 picdir=$DESTDIR/usr/share/pixmaps/ \ |
slaxemulator@13168 | 26 appdir=$DESTDIR/usr/share/applications/ \ |
slaxemulator@13168 | 27 etcdir=$DESTDIR/etc/$PACKAGE install |
slaxemulator@13168 | 28 # Patch config - replace "usr/local" by "usr" |
slaxemulator@13168 | 29 sed -i 's/usr\/local/usr/g' $DESTDIR/etc/$PACKAGE/airoscript-ng_advanced.conf |
slaxemulator@13168 | 30 |
slaxemulator@13168 | 31 # Patch executable to find config files |
slaxemulator@13168 | 32 sed -i 's/etc\//etc\/airoscript-ng\//g' $DESTDIR/usr/sbin/$PACKAGE |
al@19264 | 33 |
al@19275 | 34 cook_pick_manpages $src/src/airoscript-ng.1 |
slaxemulator@7524 | 35 } |
slaxemulator@7524 | 36 |
slaxemulator@7524 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@7524 | 38 genpkg_rules() |
slaxemulator@7524 | 39 { |
slaxemulator@7524 | 40 mkdir -p $fs/usr/share |
pascal@15201 | 41 cp -a $install/usr/sbin $fs/usr |
pascal@15201 | 42 cp -a $install/usr/share/airoscript-ng $fs/usr/share |
pascal@15201 | 43 cp -a $install/etc $fs |
slaxemulator@7524 | 44 } |