wok view airoscript-ng/receipt @ rev 24980
Update some wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun May 08 09:19:55 2022 +0000 (2022-05-08) |
parents | 241fb98cab1c |
children | 41a539cfe5f8 |
line source
1 # SliTaz package receipt.
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://airoscript.aircrack-ng.org/"
10 TARBALL="$PACKAGE-${VERSION%rc3}-3.tar.gz"
11 WGET_URL="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/$PACKAGE/$TARBALL"
13 DEPENDS="bash"
15 # What is the latest version available today?
16 current_version()
17 {
18 wget -O - https://www.aircrack-ng.org/ 2>/dev/null | \
19 sed '/aircrack-ng/!d;/tar/!d;s|.*ng-||;s|.tar.*||;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 # Remove broken install parts
26 sed -i '/install-docs \\/ d' Makefile-Linux
27 sed -i '/install-locale \\/ d' Makefile-Linux
28 sed -i '/install-desktop \\/ d' Makefile-Linux
29 make -j1 DESTDIR=$DESTDIR \
30 prefix=usr \
31 picdir=$DESTDIR/usr/share/pixmaps/ \
32 appdir=$DESTDIR/usr/share/applications/ \
33 etcdir=$DESTDIR/etc/$PACKAGE install
34 # Patch config - replace "usr/local" by "usr"
35 sed -i 's/usr\/local/usr/g' $DESTDIR/etc/$PACKAGE/airoscript-ng_advanced.conf
37 # Patch executable to find config files
38 sed -i 's/etc\//etc\/airoscript-ng\//g' $DESTDIR/usr/sbin/$PACKAGE
40 cook_pick_manpages $src/src/airoscript-ng.1
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr/share
47 cp -a $install/usr/sbin $fs/usr
48 cp -a $install/usr/share/airoscript-ng $fs/usr/share
49 cp -a $install/etc $fs
50 }