# HG changeset patch # User Christopher Rogers # Date 1291578504 0 # Node ID 0a0fb13a2e643d6d81d0f524b1972a459b3238b2 # Parent 450b08f0f62306fe96ab82ae7d868fc25359daf9 Add airoscript-ng. diff -r 450b08f0f623 -r 0a0fb13a2e64 airoscript-ng/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/airoscript-ng/receipt Sun Dec 05 19:48:24 2010 +0000 @@ -0,0 +1,36 @@ +# SliTaz package receipt. + +PACKAGE="airoscript-ng" +VERSION="1.0rc1" +CATEGORY="network" +SHORT_DESC="Airoscript ng" +MAINTAINER="slaxemulator@gmail.com" +DEPENDS="bash" +SOURCE="Airoscript-ng" +TARBALL="${SOURCE}${VERSION%rc1}.tgz" +WEB_SITE="http://code.google.com/p/airoscript/" +WGET_URL="http://airoscript.googlecode.com/files/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + src=$WOK/$PACKAGE/${SOURCE%-ng} + cd $src + patch -Np0 -i ../stuff/path.patch + patch -Np0 -i ../stuff/makefile.patch + make -j1 prefix=$PWD/_pkg/usr install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + _pkg=$WOK/$PACKAGE/Airoscript/_pkg + mkdir -p $fs/usr/share + cp -a $_pkg/usr/sbin $fs/usr + cp -a $_pkg/usr/share/airoscript-ng $fs/usr/share + cp -a $_pkg/usr/etc $fs/etc + mv $fs/etc/screenrc $fs/usr/share/airoscript-ng/ + cd $fs/etc + patch -Np0 -i $WOK/$PACKAGE/stuff/config.patch +} + diff -r 450b08f0f623 -r 0a0fb13a2e64 airoscript-ng/stuff/config.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/airoscript-ng/stuff/config.patch Sun Dec 05 19:48:24 2010 +0000 @@ -0,0 +1,31 @@ +--- airoscript-ng.conf.orig 2010-01-15 21:57:00.955875872 +0300 ++++ airoscript-ng.conf 2010-01-15 21:58:13.745874206 +0300 +@@ -61,8 +61,8 @@ + # For example, in systems where you have compiled aircrack-ng + # or in slax it'll be /usr/local/bin or BINDIR and SBINDIR + # And, on some systems, mdk3 will be installed on /usr/local/bin/ +- PREFIX="/usr/local" +- AIRPREFIX="/usr/local" # This way we don't need to have airoscript in the same path as aircrack... ++ PREFIX="/usr" ++ AIRPREFIX="/usr" # This way we don't need to have airoscript in the same path as aircrack... + + BINDIR="$AIRPREFIX/bin/" + SBINDIR="$AIRPREFIX/sbin/" +@@ -78,7 +78,7 @@ + MACCHANGER=$BINDIR"macchanger" + + # Fix to be able to use screenrc defined screenrc's +- [[ "$SCREENRC" == "" ]] && SCREENRC="$PREFIX/share/airoscript/screenrc" ++ [[ "$SCREENRC" == "" ]] && SCREENRC="$PREFIX/share/airoscript-ng/screenrc" + + FUNCTIONS="$PREFIX/share/airoscript-ng/functions.sh" + IFUNCTIONS="$PREFIX/share/airoscript-ng/functions_internal.sh" +@@ -92,7 +92,7 @@ + iwconfig="iwconfig" + + # Path to optional binaries +- MDK3="/usr/local/sbin/mdk3" ++ MDK3="/usr/sbin/mdk3" + + # As i know, those are just used for spanish routers... + JTD="jazzteldecrypter" diff -r 450b08f0f623 -r 0a0fb13a2e64 airoscript-ng/stuff/makefile.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/airoscript-ng/stuff/makefile.patch Sun Dec 05 19:48:24 2010 +0000 @@ -0,0 +1,13 @@ +--- Makefile-Linux.orig 2010-01-15 21:45:21.791876742 +0300 ++++ Makefile-Linux 2010-01-15 21:48:54.509121551 +0300 +@@ -27,9 +27,7 @@ + install: installdirs\ + install-airoscript install-themes \ + install-tools \ +- install-docs \ +- install-locale \ +- post-install ++ install-docs + + installdirs: + @$(SHELL) $(srcdir)/mkinstalldirs $(bindir) $(datadir) \ diff -r 450b08f0f623 -r 0a0fb13a2e64 airoscript-ng/stuff/path.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/airoscript-ng/stuff/path.patch Sun Dec 05 19:48:24 2010 +0000 @@ -0,0 +1,11 @@ +--- Makefile 2010-01-15 17:01:03.765034074 +0300 ++++ Makefile 2010-01-15 17:01:51.998782031 +0300 +@@ -1,6 +1,6 @@ + #!/usr/bin/make + # Configure prefix here: +-prefix="/usr/local" +-aircrack_prefix="/usr/local" # for packaged aircrack-ng change me to /usr ++#prefix="${pkgdir}/usr" ++aircrack_prefix="/usr" # for packaged aircrack-ng change me to /usr + OSTYPE:=$(shell uname -s|cut -d_ -f1) + include Makefile-$(OSTYPE)