wok-current annotate airoscript-ng/receipt @ rev 24463

updated dar (2.6.7 -> 2.7.3)
author Hans-G?nter Theisgen
date Thu Feb 17 07:23:25 2022 +0100 (2022-02-17)
parents 104a2a2e5484
children 9b180a3071fb
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"
pascal@20671 9 WEB_SITE="https://airoscript.aircrack-ng.org/"
slaxemulator@13168 10 TARBALL="$PACKAGE-${VERSION%rc3}-3.tar.gz"
slaxemulator@7524 11 WGET_URL="http://airoscript.googlecode.com/files/$TARBALL"
slaxemulator@7524 12
pascal@15201 13 DEPENDS="bash"
pascal@15201 14
pascal@24391 15 # What is the latest version available today?
pascal@24391 16 current_version()
pascal@24391 17 {
pascal@24453 18 wget -O - https://www.aircrack-ng.org/ 2>/dev/null | \
pascal@24453 19 sed '/aircrack-ng/!d;/tar/!d;s|.*ng-||;s|.tar.*||;q'
pascal@24391 20 }
pascal@24391 21
slaxemulator@7524 22 # Rules to configure and make the package.
slaxemulator@7524 23 compile_rules()
slaxemulator@7524 24 {
slaxemulator@13168 25 # Remove broken install parts
slaxemulator@13168 26 sed -i '/install-docs \\/ d' Makefile-Linux
slaxemulator@13168 27 sed -i '/install-locale \\/ d' Makefile-Linux
slaxemulator@13168 28 sed -i '/install-desktop \\/ d' Makefile-Linux
slaxemulator@13168 29 make -j1 DESTDIR=$DESTDIR \
slaxemulator@13168 30 prefix=usr \
slaxemulator@13168 31 picdir=$DESTDIR/usr/share/pixmaps/ \
slaxemulator@13168 32 appdir=$DESTDIR/usr/share/applications/ \
slaxemulator@13168 33 etcdir=$DESTDIR/etc/$PACKAGE install
slaxemulator@13168 34 # Patch config - replace "usr/local" by "usr"
slaxemulator@13168 35 sed -i 's/usr\/local/usr/g' $DESTDIR/etc/$PACKAGE/airoscript-ng_advanced.conf
slaxemulator@13168 36
slaxemulator@13168 37 # Patch executable to find config files
slaxemulator@13168 38 sed -i 's/etc\//etc\/airoscript-ng\//g' $DESTDIR/usr/sbin/$PACKAGE
al@19264 39
al@19275 40 cook_pick_manpages $src/src/airoscript-ng.1
slaxemulator@7524 41 }
slaxemulator@7524 42
slaxemulator@7524 43 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@7524 44 genpkg_rules()
slaxemulator@7524 45 {
slaxemulator@7524 46 mkdir -p $fs/usr/share
pascal@15201 47 cp -a $install/usr/sbin $fs/usr
pascal@15201 48 cp -a $install/usr/share/airoscript-ng $fs/usr/share
pascal@15201 49 cp -a $install/etc $fs
slaxemulator@7524 50 }