summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2003-04-08 16:43:20 (UTC)
committer mickeyl <mickeyl>2003-04-08 16:43:20 (UTC)
commit89100a32b43b7eda68aaa19bc275a0fb7ce36e30 (patch) (side-by-side diff)
tree7538662f3b5a0b8b657013bb82ba02f7d57fc80b
parent0d48ba39224582c83d68c2938e6cbedc4c77ec7d (diff)
downloadopie-89100a32b43b7eda68aaa19bc275a0fb7ce36e30.zip
opie-89100a32b43b7eda68aaa19bc275a0fb7ce36e30.tar.gz
opie-89100a32b43b7eda68aaa19bc275a0fb7ce36e30.tar.bz2
preparations for the standalone x11 build
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/wellenreiter/README59
-rwxr-xr-xnoncore/net/wellenreiter/build28
-rw-r--r--noncore/net/wellenreiter/gui/configwindow.cpp2
-rw-r--r--noncore/net/wellenreiter/gui/gui.pro3
-rw-r--r--noncore/net/wellenreiter/lib/lib.pro11
-rwxr-xr-xnoncore/net/wellenreiter/makedist.sh54
6 files changed, 109 insertions, 48 deletions
diff --git a/noncore/net/wellenreiter/README b/noncore/net/wellenreiter/README
index a4541b4..291f1fe 100644
--- a/noncore/net/wellenreiter/README
+++ b/noncore/net/wellenreiter/README
@@ -3,5 +3,5 @@
/* ===============================
/*
- Version: Opie-ALPHA-April
+/* Version: ALPHA-2-April
/************************************************************************
@@ -14,12 +14,9 @@ Release Notes for Opie-ALPHA Version April 2003
=====================
-- HERMES chipset [ orinoco or hostap ], e.g. Lucent/Agere cards
-- PRISM2 chipset [ orinoco or hostap ], e.g. D-Link, Buffallo
-- SYMBOL/SPECTRUM chipset* [ orinoco ], e.g. Symbol Spectrum 24, Socket Lowpower CF
+- HERMES chipset [ orinoco or hostap ], e.g. Lucent/Agere cards, ...
+- PRISM2 chipset [ orinoco or hostap ], e.g. D-Link, Buffallo, ...
+- SYMBOL/SPECTRUM chipset [ orinoco ], e.g. Symbol Spectrum 24, Socket Lowpower CF, ...
- CISCO chipset
--
-
-* Warning: Current Symbol/Spectrum CF drivers have bugs - they freeze the system in monitor mode.
- This has nothing todo with Wellenreiter as its a driver problem.
+- wlan-ng supported chipsets
=====================
@@ -27,34 +24,18 @@ Release Notes for Opie-ALPHA Version April 2003
=====================
-(I) Opie Build Environment
-
-To compile Wellenreiter within the Opie build environment, do
-'make menuconfig' and check Wellenreiter in the subsection
-"Communications and Networking". Make sure you have enabled the
-dependencies in "Experimental->libopie2"
-
-'make SUBDIRS=noncore/net/wellenreiter' or 'make' (to build everything)
-Note that you need to have libpcap in your toolchain.
-
-(II) OpenZaurus Build Environment
-
-See (I), but you must build a complete opie via 'make SUBDIRS=packages/opie'
+To compile a standalone Wellenreiter for X11, you need Qt3 and the development
+packages for Qt3, e.g. libqt3-devel.
-(III) To compile a standalone Wellenreiter for X11, you need Qt3 and the development
-packages for Qt3, e.g. libqt3-devel. Assuming, $QTDIR is set to your Qt-Director
-(e.g. /usr/lib/qt3), set $OPIEDIR to the root of the checked out Opie, then
-'export QMAKESPEC=$QTDIR/mkspecs/linux-g++'
-'cd noncore/net/wellenreiter'
-'qmake "platform=x11" wellenreiter.pro'
-'make SUBDIRS=noncore/net/wellenreiter'
-'make install'
+ * Set $QTDIR to the appropriate directory (e.g. /usr/lib/qt3)
+ * './build make'
+ * as root, './build install'
+ * Wellenreiter will be installed in /usr/local
=====================
-= Install
+= Precompiled Binaries
=====================
-Alternatively, you can use our precompiled ipk. Get it from
-http://opie.net.wox.org/wellenreiter/ where you will also
-find all necessary dependencies.
+Precompiled binaries are available for the PDA-Version.
+Get them from http://opie.net.wox.org/wellenreiter/
=====================
@@ -64,5 +45,5 @@ find all necessary dependencies.
* Configure your device by pressing the configure toolbutton (to the right)
* Start Sniffing by pressing the execute toolbutton which will be enabled,
-if your device has been configured.
+if your device has been properly configured.
=====================
@@ -72,7 +53,7 @@ if your device has been configured.
Wellenreiter II is (C) 2002-2003 M-M-M
-Sniffer Engine: Max Moser <max@remote-exploit.org>
-Communication and Protocol: Martin J. Muench <mjm@remote-exploit.org>
-GUI and Packaging: Michael Lauer <mickeyl@handhelds.org>
+Max Moser <max@remote-exploit.org>
+Martin J. Muench <mjm@remote-exploit.org>
+Michael Lauer <mickeyl@handhelds.org>
=====================
@@ -80,7 +61,7 @@ GUI and Packaging: Michael Lauer <mickeyl@handhelds.org>
=====================
-Opie Project: http://opie.handhelds.org
-OpenZaurus Project: http://openzaurus.org
Wellenreiter: http://www.remote-exploit.org
Wellenreiter/Opie: http://opie.net.wox.org/wellenreiter
+Opie Project: http://opie.handhelds.org
+OpenZaurus Project: http://openzaurus.org
diff --git a/noncore/net/wellenreiter/build b/noncore/net/wellenreiter/build
new file mode 100755
index 0000000..44eb8d8
--- a/dev/null
+++ b/noncore/net/wellenreiter/build
@@ -0,0 +1,28 @@
+##########################################
+# Wellenreiter X11 standalone build script #
+##########################################
+
+PREFIX=/usr/local
+
+# ------------------- do not change anything below
+
+if [ -z $QTDIR ]
+then
+ echo "*** ERROR: QTDIR is not set. QTDIR must point to your Qt directory, e.g. /usr/lib/qt3"
+ exit
+fi
+
+export QMAKESPEC=$QTDIR/mkspecs/linux-g++
+export OPIEDIR=$PWD
+export PATH=$QTDIR/bin:$PATH
+qmake "platform=x11" wellenreiter.pro
+
+
+case "$1" in
+compile) make;;
+install) cp -dfR output/* $PREFIX/;;
+*) echo "Usage: ./build [compile|install]"; exit;;
+esac
+
+
+
diff --git a/noncore/net/wellenreiter/gui/configwindow.cpp b/noncore/net/wellenreiter/gui/configwindow.cpp
index 59c2a61..ba1119e 100644
--- a/noncore/net/wellenreiter/gui/configwindow.cpp
+++ b/noncore/net/wellenreiter/gui/configwindow.cpp
@@ -75,5 +75,5 @@ WellenreiterConfigWindow::WellenreiterConfigWindow( QWidget * parent, const char
QPushButton* okButton = new QPushButton( "ok", this );
okButton->show();
- Layout5_2->addWidget( okButton ); //FIXME: rename this in configbase.ui
+ Layout5_2->addWidget( okButton, 0, 3 ); //FIXME: rename this in configbase.ui
connect( okButton, SIGNAL( clicked() ), this, SLOT( accept() ) );
#endif
diff --git a/noncore/net/wellenreiter/gui/gui.pro b/noncore/net/wellenreiter/gui/gui.pro
index 5a8972c..5970b01 100644
--- a/noncore/net/wellenreiter/gui/gui.pro
+++ b/noncore/net/wellenreiter/gui/gui.pro
@@ -36,7 +36,8 @@ TARGET = wellenreiter
contains( platform, x11 ) {
- LIBS += -L$(OPIEDIR)/lib -Wl,-rpath,$(OPIEDIR)/lib -lwellenreiter
+ LIBS += -L$(OPIEDIR)/output/lib -Wl,-rpath,$(OPIEDIR)/output/lib -Wl,-rpath,/usr/local/lib -lwellenreiter
SOURCES += resource.cpp
HEADERS += resource.h
+ DESTDIR = $(OPIEDIR)/output/bin
}
diff --git a/noncore/net/wellenreiter/lib/lib.pro b/noncore/net/wellenreiter/lib/lib.pro
index 8728323..e36db11 100644
--- a/noncore/net/wellenreiter/lib/lib.pro
+++ b/noncore/net/wellenreiter/lib/lib.pro
@@ -1,5 +1,5 @@
MOC_DIR = ./tmp
OBJECTS_DIR = ./tmp
-DESTDIR = $(OPIEDIR)/lib
+DESTDIR = $(OPIEDIR)/output/lib
TEMPLATE = lib
CONFIG = qt warn_on debug
@@ -7,4 +7,5 @@ CONFIG = qt warn_on debug
HEADERS = $(OPIEDIR)/libopie2/opieui/olistview.h \
$(OPIEDIR)/libopie2/opienet/onetutils.h \
+ $(OPIEDIR)/libopie2/opienet/omanufacturerdb.h \
$(OPIEDIR)/libopie2/opienet/onetwork.h \
$(OPIEDIR)/libopie2/opienet/opcap.h
@@ -12,4 +13,5 @@ HEADERS = $(OPIEDIR)/libopie2/opieui/olistview.h \
SOURCES = $(OPIEDIR)/libopie2/opieui/olistview.cpp \
$(OPIEDIR)/libopie2/opienet/onetutils.cpp \
+ $(OPIEDIR)/libopie2/opienet/omanufacturerdb.cpp \
$(OPIEDIR)/libopie2/opienet/onetwork.cpp \
$(OPIEDIR)/libopie2/opienet/opcap.cpp
@@ -17,12 +19,7 @@ SOURCES = $(OPIEDIR)/libopie2/opieui/olistview.cpp \
INCLUDEPATH += $(OPIEDIR)/include
DEPENDPATH += $(OPIEDIR)/include
-LIBS = -lpcap
+LIBS = -L$(OPIEDIR)/lib -Wl,-rpath,$(OPIEDIR)/lib -lpcap
TARGET = wellenreiter
VERSION = 1.0.0
-contains( platform, x11 ) {
- LIBS += -L$(OPIEDIR)/lib -Wl,-rpath,$(OPIEDIR)/lib
- SOURCES += resource.cpp
- HEADERS += resource.h
-}
diff --git a/noncore/net/wellenreiter/makedist.sh b/noncore/net/wellenreiter/makedist.sh
new file mode 100755
index 0000000..1795ae5
--- a/dev/null
+++ b/noncore/net/wellenreiter/makedist.sh
@@ -0,0 +1,54 @@
+VERSION=2-alpha2
+
+TGZDIR=$PWD
+
+# script to make a .tgz distributable for the Wellenreiter X11 Standalone Version
+
+find . -name "*.o"|xargs rm -f
+find . -name "Makefile"|xargs rm -f
+find . -name "*moc*"|xargs rm -f
+#TMPFILE=`mktemp -d -q /tmp/build.XXXXXX`
+TMPFILE=/tmp/build
+#if [ $? -ne 0 ]; then
+# echo "$0: Can't create temp file, exiting..."
+# exit 1
+#fi
+
+TMPDIR=$TMPFILE/wellenreiter$VERSION
+OUTPUT=$TMPDIR/output
+
+mkdir -p $TMPDIR/libopie2/opieui
+mkdir -p $TMPDIR/libopie2/opienet
+mkdir -p $TMPDIR/include/opie2
+mkdir -p $OUTPUT/share/wellenreiter/pics
+mkdir -p $OUTPUT/share/wellenreiter
+cp -dfR gui $TMPDIR
+cp -dfR lib $TMPDIR
+cp -dfR build README wellenreiter.pro $TMPDIR
+cp -dfR $OPIEDIR/pics/wellenreiter/* $OUTPUT/share/wellenreiter/
+cp -dfR $OPIEDIR/share/wellenreiter/* $OUTPUT/share/wellenreiter/
+
+# take care about sourcefiles
+
+FILES="libopie2/opienet/onetwork.h libopie2/opienet/onetwork.cpp \
+ libopie2/opienet/opcap.h libopie2/opienet/opcap.cpp libopie2/opienet/802_11_user.h \
+ libopie2/opienet/onetutils.h libopie2/opienet/onetutils.cpp \
+ libopie2/opienet/omanufacturerdb.h libopie2/opienet/omanufacturerdb.cpp \
+ libopie2/opieui/olistview.cpp libopie2/opieui/olistview.h"
+
+for i in $FILES
+ do cp -dfR $OPIEDIR/$i $TMPDIR/$i
+done
+
+# make includes
+pushd $TMPDIR/include/opie2
+ln -sf ../../libopie2/opieui/*.h .
+ln -sf ../../libopie2/opienet/*.h .
+popd
+
+find $TMPDIR -name "CVS"|xargs rm -rf
+
+pushd $TMPFILE
+tar czf $TGZDIR/wellenreiter$VERSION.tgz wellenreiter$VERSION
+popd
+