wok rev 7524
Add airoscript-ng.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Dec 05 19:48:24 2010 +0000 (2010-12-05) |
parents | 450b08f0f623 |
children | a371908710d9 |
files | airoscript-ng/receipt airoscript-ng/stuff/config.patch airoscript-ng/stuff/makefile.patch airoscript-ng/stuff/path.patch |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/airoscript-ng/receipt Sun Dec 05 19:48:24 2010 +0000 1.3 @@ -0,0 +1,36 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="airoscript-ng" 1.7 +VERSION="1.0rc1" 1.8 +CATEGORY="network" 1.9 +SHORT_DESC="Airoscript ng" 1.10 +MAINTAINER="slaxemulator@gmail.com" 1.11 +DEPENDS="bash" 1.12 +SOURCE="Airoscript-ng" 1.13 +TARBALL="${SOURCE}${VERSION%rc1}.tgz" 1.14 +WEB_SITE="http://code.google.com/p/airoscript/" 1.15 +WGET_URL="http://airoscript.googlecode.com/files/$TARBALL" 1.16 + 1.17 +# Rules to configure and make the package. 1.18 +compile_rules() 1.19 +{ 1.20 + src=$WOK/$PACKAGE/${SOURCE%-ng} 1.21 + cd $src 1.22 + patch -Np0 -i ../stuff/path.patch 1.23 + patch -Np0 -i ../stuff/makefile.patch 1.24 + make -j1 prefix=$PWD/_pkg/usr install 1.25 +} 1.26 + 1.27 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.28 +genpkg_rules() 1.29 +{ 1.30 + _pkg=$WOK/$PACKAGE/Airoscript/_pkg 1.31 + mkdir -p $fs/usr/share 1.32 + cp -a $_pkg/usr/sbin $fs/usr 1.33 + cp -a $_pkg/usr/share/airoscript-ng $fs/usr/share 1.34 + cp -a $_pkg/usr/etc $fs/etc 1.35 + mv $fs/etc/screenrc $fs/usr/share/airoscript-ng/ 1.36 + cd $fs/etc 1.37 + patch -Np0 -i $WOK/$PACKAGE/stuff/config.patch 1.38 +} 1.39 +
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/airoscript-ng/stuff/config.patch Sun Dec 05 19:48:24 2010 +0000 2.3 @@ -0,0 +1,31 @@ 2.4 +--- airoscript-ng.conf.orig 2010-01-15 21:57:00.955875872 +0300 2.5 ++++ airoscript-ng.conf 2010-01-15 21:58:13.745874206 +0300 2.6 +@@ -61,8 +61,8 @@ 2.7 + # For example, in systems where you have compiled aircrack-ng 2.8 + # or in slax it'll be /usr/local/bin or BINDIR and SBINDIR 2.9 + # And, on some systems, mdk3 will be installed on /usr/local/bin/ 2.10 +- PREFIX="/usr/local" 2.11 +- AIRPREFIX="/usr/local" # This way we don't need to have airoscript in the same path as aircrack... 2.12 ++ PREFIX="/usr" 2.13 ++ AIRPREFIX="/usr" # This way we don't need to have airoscript in the same path as aircrack... 2.14 + 2.15 + BINDIR="$AIRPREFIX/bin/" 2.16 + SBINDIR="$AIRPREFIX/sbin/" 2.17 +@@ -78,7 +78,7 @@ 2.18 + MACCHANGER=$BINDIR"macchanger" 2.19 + 2.20 + # Fix to be able to use screenrc defined screenrc's 2.21 +- [[ "$SCREENRC" == "" ]] && SCREENRC="$PREFIX/share/airoscript/screenrc" 2.22 ++ [[ "$SCREENRC" == "" ]] && SCREENRC="$PREFIX/share/airoscript-ng/screenrc" 2.23 + 2.24 + FUNCTIONS="$PREFIX/share/airoscript-ng/functions.sh" 2.25 + IFUNCTIONS="$PREFIX/share/airoscript-ng/functions_internal.sh" 2.26 +@@ -92,7 +92,7 @@ 2.27 + iwconfig="iwconfig" 2.28 + 2.29 + # Path to optional binaries 2.30 +- MDK3="/usr/local/sbin/mdk3" 2.31 ++ MDK3="/usr/sbin/mdk3" 2.32 + 2.33 + # As i know, those are just used for spanish routers... 2.34 + JTD="jazzteldecrypter"
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/airoscript-ng/stuff/makefile.patch Sun Dec 05 19:48:24 2010 +0000 3.3 @@ -0,0 +1,13 @@ 3.4 +--- Makefile-Linux.orig 2010-01-15 21:45:21.791876742 +0300 3.5 ++++ Makefile-Linux 2010-01-15 21:48:54.509121551 +0300 3.6 +@@ -27,9 +27,7 @@ 3.7 + install: installdirs\ 3.8 + install-airoscript install-themes \ 3.9 + install-tools \ 3.10 +- install-docs \ 3.11 +- install-locale \ 3.12 +- post-install 3.13 ++ install-docs 3.14 + 3.15 + installdirs: 3.16 + @$(SHELL) $(srcdir)/mkinstalldirs $(bindir) $(datadir) \
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/airoscript-ng/stuff/path.patch Sun Dec 05 19:48:24 2010 +0000 4.3 @@ -0,0 +1,11 @@ 4.4 +--- Makefile 2010-01-15 17:01:03.765034074 +0300 4.5 ++++ Makefile 2010-01-15 17:01:51.998782031 +0300 4.6 +@@ -1,6 +1,6 @@ 4.7 + #!/usr/bin/make 4.8 + # Configure prefix here: 4.9 +-prefix="/usr/local" 4.10 +-aircrack_prefix="/usr/local" # for packaged aircrack-ng change me to /usr 4.11 ++#prefix="${pkgdir}/usr" 4.12 ++aircrack_prefix="/usr" # for packaged aircrack-ng change me to /usr 4.13 + OSTYPE:=$(shell uname -s|cut -d_ -f1) 4.14 + include Makefile-$(OSTYPE)