wok-current annotate aircrack-ng/receipt @ rev 14507
Add get-src2pkg
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue May 14 07:26:31 2013 +0200 (2013-05-14) |
parents | 0b4cf0d9e1b5 |
children | f4c22f009037 |
rev | line source |
---|---|
pascal@1033 | 1 # SliTaz package receipt. |
pascal@1033 | 2 |
pascal@1033 | 3 PACKAGE="aircrack-ng" |
slaxemulator@5388 | 4 VERSION="1.1" |
pascal@1033 | 5 CATEGORY="network" |
pascal@1033 | 6 SHORT_DESC="802.11 WEP and WPA-PSK keys cracking program." |
pascal@1033 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@1033 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@1033 | 9 WEB_SITE="http://www.aircrack-ng.org/" |
pascal@1033 | 10 WGET_URL="http://download.aircrack-ng.org/$TARBALL" |
slaxemulator@13169 | 11 DEPENDS="aircrack-ng-oui iw openssl sqlite zlib pylorcon" |
slaxemulator@13169 | 12 BUILD_DEPENDS="sqlite-dev pylorcon openssl-dev" |
pascal@1033 | 13 |
pascal@1033 | 14 # Rules to configure and make the package. |
pascal@1033 | 15 compile_rules() |
pascal@1033 | 16 { |
pascal@1033 | 17 cd $src |
gokhlayeh@8615 | 18 sed -i s#/usr/local#/usr#g common.mak || return 1 |
gokhlayeh@8615 | 19 sed -i s#/man/man1#/share/man/man1# common.mak || return 1 |
erjo@5896 | 20 |
erjo@5896 | 21 # fix build with gcc45 |
gokhlayeh@8615 | 22 sed -i s/-Werror// common.mak || return 1 |
erjo@5896 | 23 |
slaxemulator@13169 | 24 make SQLITE=true unstable=true && |
slaxemulator@13169 | 25 make SQLITE=true unstable=true DESTDIR=$DESTDIR install |
slaxemulator@13169 | 26 sed -i 's|/usr/local||g' $DESTDIR/usr/sbin/airodump-ng-oui-update |
pascal@1033 | 27 } |
pascal@1033 | 28 |
pascal@1033 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1033 | 30 genpkg_rules() |
pascal@1033 | 31 { |
pascal@1033 | 32 mkdir -p $fs/usr |
pankso@4055 | 33 cp -a $_pkg/usr/bin $fs/usr |
pankso@4055 | 34 cp -a $_pkg/usr/sbin $fs/usr |
pascal@1033 | 35 } |
pascal@1033 | 36 |