author | mickeyl <mickeyl> | 2003-04-08 16:43:20 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-04-08 16:43:20 (UTC) |
commit | 89100a32b43b7eda68aaa19bc275a0fb7ce36e30 (patch) (unidiff) | |
tree | 7538662f3b5a0b8b657013bb82ba02f7d57fc80b | |
parent | 0d48ba39224582c83d68c2938e6cbedc4c77ec7d (diff) | |
download | opie-89100a32b43b7eda68aaa19bc275a0fb7ce36e30.zip opie-89100a32b43b7eda68aaa19bc275a0fb7ce36e30.tar.gz opie-89100a32b43b7eda68aaa19bc275a0fb7ce36e30.tar.bz2 |
preparations for the standalone x11 build
-rw-r--r-- | noncore/net/wellenreiter/README | 59 | ||||
-rwxr-xr-x | noncore/net/wellenreiter/build | 28 | ||||
-rw-r--r-- | noncore/net/wellenreiter/gui/configwindow.cpp | 2 | ||||
-rw-r--r-- | noncore/net/wellenreiter/gui/gui.pro | 3 | ||||
-rw-r--r-- | noncore/net/wellenreiter/lib/lib.pro | 11 | ||||
-rwxr-xr-x | noncore/net/wellenreiter/makedist.sh | 54 |
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 | |||
@@ -1,86 +1,67 @@ | |||
1 | /************************************************************************ | 1 | /************************************************************************ |
2 | /* W e l l e n r e i t e r I I | 2 | /* W e l l e n r e i t e r I I |
3 | /* =============================== | 3 | /* =============================== |
4 | /* | 4 | /* |
5 | Version: Opie-ALPHA-April | 5 | /* Version: ALPHA-2-April |
6 | /************************************************************************ | 6 | /************************************************************************ |
7 | 7 | ||
8 | ---------------------------------------------------- | 8 | ---------------------------------------------------- |
9 | Release Notes for Opie-ALPHA Version April 2003 | 9 | Release Notes for Opie-ALPHA Version April 2003 |
10 | ---------------------------------------------------- | 10 | ---------------------------------------------------- |
11 | 11 | ||
12 | ===================== | 12 | ===================== |
13 | = Supported Devices | 13 | = Supported Devices |
14 | ===================== | 14 | ===================== |
15 | 15 | ||
16 | - HERMES chipset [ orinoco or hostap ], e.g. Lucent/Agere cards | 16 | - HERMES chipset [ orinoco or hostap ], e.g. Lucent/Agere cards, ... |
17 | - PRISM2 chipset [ orinoco or hostap ], e.g. D-Link, Buffallo | 17 | - PRISM2 chipset [ orinoco or hostap ], e.g. D-Link, Buffallo, ... |
18 | - SYMBOL/SPECTRUM chipset* [ orinoco ], e.g. Symbol Spectrum 24, Socket Lowpower CF | 18 | - SYMBOL/SPECTRUM chipset [ orinoco ], e.g. Symbol Spectrum 24, Socket Lowpower CF, ... |
19 | - CISCO chipset | 19 | - CISCO chipset |
20 | - | 20 | - wlan-ng supported chipsets |
21 | |||
22 | * Warning: Current Symbol/Spectrum CF drivers have bugs - they freeze the system in monitor mode. | ||
23 | This has nothing todo with Wellenreiter as its a driver problem. | ||
24 | 21 | ||
25 | ===================== | 22 | ===================== |
26 | = Build | 23 | = Build |
27 | ===================== | 24 | ===================== |
28 | 25 | ||
29 | (I) Opie Build Environment | 26 | To compile a standalone Wellenreiter for X11, you need Qt3 and the development |
30 | 27 | packages for Qt3, e.g. libqt3-devel. | |
31 | To compile Wellenreiter within the Opie build environment, do | ||
32 | 'make menuconfig' and check Wellenreiter in the subsection | ||
33 | "Communications and Networking". Make sure you have enabled the | ||
34 | dependencies in "Experimental->libopie2" | ||
35 | |||
36 | 'make SUBDIRS=noncore/net/wellenreiter' or 'make' (to build everything) | ||
37 | Note that you need to have libpcap in your toolchain. | ||
38 | |||
39 | (II) OpenZaurus Build Environment | ||
40 | |||
41 | See (I), but you must build a complete opie via 'make SUBDIRS=packages/opie' | ||
42 | 28 | ||
43 | (III) To compile a standalone Wellenreiter for X11, you need Qt3 and the development | 29 | * Set $QTDIR to the appropriate directory (e.g. /usr/lib/qt3) |
44 | packages for Qt3, e.g. libqt3-devel. Assuming, $QTDIR is set to your Qt-Director | 30 | * './build make' |
45 | (e.g. /usr/lib/qt3), set $OPIEDIR to the root of the checked out Opie, then | 31 | * as root, './build install' |
46 | 'export QMAKESPEC=$QTDIR/mkspecs/linux-g++' | 32 | * Wellenreiter will be installed in /usr/local |
47 | 'cd noncore/net/wellenreiter' | ||
48 | 'qmake "platform=x11" wellenreiter.pro' | ||
49 | 'make SUBDIRS=noncore/net/wellenreiter' | ||
50 | 'make install' | ||
51 | 33 | ||
52 | ===================== | 34 | ===================== |
53 | = Install | 35 | = Precompiled Binaries |
54 | ===================== | 36 | ===================== |
55 | 37 | ||
56 | Alternatively, you can use our precompiled ipk. Get it from | 38 | Precompiled binaries are available for the PDA-Version. |
57 | http://opie.net.wox.org/wellenreiter/ where you will also | 39 | Get them from http://opie.net.wox.org/wellenreiter/ |
58 | find all necessary dependencies. | ||
59 | 40 | ||
60 | ===================== | 41 | ===================== |
61 | = Run | 42 | = Run |
62 | ===================== | 43 | ===================== |
63 | 44 | ||
64 | * Configure your device by pressing the configure toolbutton (to the right) | 45 | * Configure your device by pressing the configure toolbutton (to the right) |
65 | * Start Sniffing by pressing the execute toolbutton which will be enabled, | 46 | * Start Sniffing by pressing the execute toolbutton which will be enabled, |
66 | if your device has been configured. | 47 | if your device has been properly configured. |
67 | 48 | ||
68 | ===================== | 49 | ===================== |
69 | = Credits = | 50 | = Credits = |
70 | ===================== | 51 | ===================== |
71 | 52 | ||
72 | Wellenreiter II is (C) 2002-2003 M-M-M | 53 | Wellenreiter II is (C) 2002-2003 M-M-M |
73 | 54 | ||
74 | Sniffer Engine: Max Moser <max@remote-exploit.org> | 55 | Max Moser <max@remote-exploit.org> |
75 | Communication and Protocol: Martin J. Muench <mjm@remote-exploit.org> | 56 | Martin J. Muench <mjm@remote-exploit.org> |
76 | GUI and Packaging: Michael Lauer <mickeyl@handhelds.org> | 57 | Michael Lauer <mickeyl@handhelds.org> |
77 | 58 | ||
78 | ===================== | 59 | ===================== |
79 | = Links = | 60 | = Links = |
80 | ===================== | 61 | ===================== |
81 | 62 | ||
82 | Opie Project: http://opie.handhelds.org | ||
83 | OpenZaurus Project: http://openzaurus.org | ||
84 | Wellenreiter: http://www.remote-exploit.org | 63 | Wellenreiter: http://www.remote-exploit.org |
85 | Wellenreiter/Opie: http://opie.net.wox.org/wellenreiter | 64 | Wellenreiter/Opie: http://opie.net.wox.org/wellenreiter |
65 | Opie Project: http://opie.handhelds.org | ||
66 | OpenZaurus Project: http://openzaurus.org | ||
86 | 67 | ||
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 @@ | |||
1 | ########################################## | ||
2 | # Wellenreiter X11 standalone build script # | ||
3 | ########################################## | ||
4 | |||
5 | PREFIX=/usr/local | ||
6 | |||
7 | # ------------------- do not change anything below | ||
8 | |||
9 | if [ -z $QTDIR ] | ||
10 | then | ||
11 | echo "*** ERROR: QTDIR is not set. QTDIR must point to your Qt directory, e.g. /usr/lib/qt3" | ||
12 | exit | ||
13 | fi | ||
14 | |||
15 | export QMAKESPEC=$QTDIR/mkspecs/linux-g++ | ||
16 | export OPIEDIR=$PWD | ||
17 | export PATH=$QTDIR/bin:$PATH | ||
18 | qmake "platform=x11" wellenreiter.pro | ||
19 | |||
20 | |||
21 | case "$1" in | ||
22 | compile) make;; | ||
23 | install) cp -dfR output/* $PREFIX/;; | ||
24 | *) echo "Usage: ./build [compile|install]"; exit;; | ||
25 | esac | ||
26 | |||
27 | |||
28 | |||
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 | |||
@@ -1,100 +1,100 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. | 2 | ** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Opie Environment. | 4 | ** This file is part of Opie Environment. |
5 | ** | 5 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 6 | ** This file may be distributed and/or modified under the terms of the |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | **********************************************************************/ | 14 | **********************************************************************/ |
15 | 15 | ||
16 | /* LOCAL */ | 16 | /* LOCAL */ |
17 | #include "configwindow.h" | 17 | #include "configwindow.h" |
18 | 18 | ||
19 | /* QT */ | 19 | /* QT */ |
20 | #include <qcombobox.h> | 20 | #include <qcombobox.h> |
21 | #include <qfile.h> | 21 | #include <qfile.h> |
22 | #include <qlayout.h> | 22 | #include <qlayout.h> |
23 | #include <qmap.h> | 23 | #include <qmap.h> |
24 | #include <qpushbutton.h> | 24 | #include <qpushbutton.h> |
25 | #include <qspinbox.h> | 25 | #include <qspinbox.h> |
26 | #include <qtextstream.h> | 26 | #include <qtextstream.h> |
27 | 27 | ||
28 | /* OPIE */ | 28 | /* OPIE */ |
29 | #include <opie2/onetwork.h> | 29 | #include <opie2/onetwork.h> |
30 | 30 | ||
31 | WellenreiterConfigWindow* WellenreiterConfigWindow::_instance = 0; | 31 | WellenreiterConfigWindow* WellenreiterConfigWindow::_instance = 0; |
32 | 32 | ||
33 | WellenreiterConfigWindow::WellenreiterConfigWindow( QWidget * parent, const char * name, WFlags f ) | 33 | WellenreiterConfigWindow::WellenreiterConfigWindow( QWidget * parent, const char * name, WFlags f ) |
34 | :WellenreiterConfigBase( parent, name, true, f ) | 34 | :WellenreiterConfigBase( parent, name, true, f ) |
35 | { | 35 | { |
36 | _devicetype[ "cisco" ] = 1; | 36 | _devicetype[ "cisco" ] = 1; |
37 | _devicetype[ "wlan-ng" ] = 2; | 37 | _devicetype[ "wlan-ng" ] = 2; |
38 | _devicetype[ "hostap" ] = 3; | 38 | _devicetype[ "hostap" ] = 3; |
39 | _devicetype[ "orinoco" ] = 4; | 39 | _devicetype[ "orinoco" ] = 4; |
40 | _devicetype[ "<manual>" ] = 5; | 40 | _devicetype[ "<manual>" ] = 5; |
41 | 41 | ||
42 | // gather possible interface names from ONetwork | 42 | // gather possible interface names from ONetwork |
43 | ONetwork* net = ONetwork::instance(); | 43 | ONetwork* net = ONetwork::instance(); |
44 | ONetwork::InterfaceIterator it = net->iterator(); | 44 | ONetwork::InterfaceIterator it = net->iterator(); |
45 | while ( it.current() ) | 45 | while ( it.current() ) |
46 | { | 46 | { |
47 | if ( it.current()->isWireless() ) | 47 | if ( it.current()->isWireless() ) |
48 | interfaceName->insertItem( it.current()->name() ); | 48 | interfaceName->insertItem( it.current()->name() ); |
49 | ++it; | 49 | ++it; |
50 | } | 50 | } |
51 | 51 | ||
52 | // try to guess device type | 52 | // try to guess device type |
53 | QFile m( "/proc/modules" ); | 53 | QFile m( "/proc/modules" ); |
54 | if ( m.open( IO_ReadOnly ) ) | 54 | if ( m.open( IO_ReadOnly ) ) |
55 | { | 55 | { |
56 | int devicetype(0); | 56 | int devicetype(0); |
57 | QString line; | 57 | QString line; |
58 | QTextStream modules( &m ); | 58 | QTextStream modules( &m ); |
59 | while( !modules.atEnd() && !devicetype ) | 59 | while( !modules.atEnd() && !devicetype ) |
60 | { | 60 | { |
61 | modules >> line; | 61 | modules >> line; |
62 | if ( line.contains( "cisco" ) ) devicetype = 1; | 62 | if ( line.contains( "cisco" ) ) devicetype = 1; |
63 | else if ( line.contains( "hostap" ) ) devicetype = 3; | 63 | else if ( line.contains( "hostap" ) ) devicetype = 3; |
64 | else if ( line.contains( "prism" ) ) devicetype = 2; | 64 | else if ( line.contains( "prism" ) ) devicetype = 2; |
65 | else if ( line.contains( "orinoco" ) ) devicetype = 4; | 65 | else if ( line.contains( "orinoco" ) ) devicetype = 4; |
66 | } | 66 | } |
67 | if ( devicetype ) | 67 | if ( devicetype ) |
68 | { | 68 | { |
69 | deviceType->setCurrentItem( devicetype ); | 69 | deviceType->setCurrentItem( devicetype ); |
70 | qDebug( "Wellenreiter: guessed device type to be %d", devicetype ); | 70 | qDebug( "Wellenreiter: guessed device type to be %d", devicetype ); |
71 | } | 71 | } |
72 | } | 72 | } |
73 | 73 | ||
74 | #ifdef Q_WS_X11 // We're on X11: adding an Ok-Button for the Dialog here | 74 | #ifdef Q_WS_X11 // We're on X11: adding an Ok-Button for the Dialog here |
75 | QPushButton* okButton = new QPushButton( "ok", this ); | 75 | QPushButton* okButton = new QPushButton( "ok", this ); |
76 | okButton->show(); | 76 | okButton->show(); |
77 | Layout5_2->addWidget( okButton ); //FIXME: rename this in configbase.ui | 77 | Layout5_2->addWidget( okButton, 0, 3 ); //FIXME: rename this in configbase.ui |
78 | connect( okButton, SIGNAL( clicked() ), this, SLOT( accept() ) ); | 78 | connect( okButton, SIGNAL( clicked() ), this, SLOT( accept() ) ); |
79 | #endif | 79 | #endif |
80 | 80 | ||
81 | WellenreiterConfigWindow::_instance = this; | 81 | WellenreiterConfigWindow::_instance = this; |
82 | }; | 82 | }; |
83 | 83 | ||
84 | int WellenreiterConfigWindow::daemonDeviceType() | 84 | int WellenreiterConfigWindow::daemonDeviceType() |
85 | { | 85 | { |
86 | QString name = deviceType->currentText(); | 86 | QString name = deviceType->currentText(); |
87 | if ( _devicetype.contains( name ) ) | 87 | if ( _devicetype.contains( name ) ) |
88 | { | 88 | { |
89 | return _devicetype[name]; | 89 | return _devicetype[name]; |
90 | } | 90 | } |
91 | else | 91 | else |
92 | { | 92 | { |
93 | return 0; | 93 | return 0; |
94 | } | 94 | } |
95 | }; | 95 | }; |
96 | 96 | ||
97 | int WellenreiterConfigWindow::daemonHopInterval() | 97 | int WellenreiterConfigWindow::daemonHopInterval() |
98 | { | 98 | { |
99 | return hopInterval->cleanText().toInt(); | 99 | return hopInterval->cleanText().toInt(); |
100 | } | 100 | } |
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 | |||
@@ -1,42 +1,43 @@ | |||
1 | MOC_DIR = ./tmp | 1 | MOC_DIR = ./tmp |
2 | OBJECTS_DIR = ./tmp | 2 | OBJECTS_DIR = ./tmp |
3 | DESTDIR = $(OPIEDIR)/bin | 3 | DESTDIR = $(OPIEDIR)/bin |
4 | TEMPLATE = app | 4 | TEMPLATE = app |
5 | CONFIG = qt warn_on debug | 5 | CONFIG = qt warn_on debug |
6 | 6 | ||
7 | HEADERS = wellenreiterbase.h \ | 7 | HEADERS = wellenreiterbase.h \ |
8 | mainwindow.h \ | 8 | mainwindow.h \ |
9 | wellenreiter.h \ | 9 | wellenreiter.h \ |
10 | scanlist.h \ | 10 | scanlist.h \ |
11 | logwindow.h \ | 11 | logwindow.h \ |
12 | hexwindow.h \ | 12 | hexwindow.h \ |
13 | configwindow.h \ | 13 | configwindow.h \ |
14 | manufacturers.h | 14 | manufacturers.h |
15 | 15 | ||
16 | SOURCES = main.cpp \ | 16 | SOURCES = main.cpp \ |
17 | mainwindow.cpp \ | 17 | mainwindow.cpp \ |
18 | wellenreiterbase.cpp \ | 18 | wellenreiterbase.cpp \ |
19 | wellenreiter.cpp \ | 19 | wellenreiter.cpp \ |
20 | scanlist.cpp \ | 20 | scanlist.cpp \ |
21 | logwindow.cpp \ | 21 | logwindow.cpp \ |
22 | hexwindow.cpp \ | 22 | hexwindow.cpp \ |
23 | configwindow.cpp \ | 23 | configwindow.cpp \ |
24 | manufacturers.cpp | 24 | manufacturers.cpp |
25 | 25 | ||
26 | INCLUDEPATH += $(OPIEDIR)/include | 26 | INCLUDEPATH += $(OPIEDIR)/include |
27 | DEPENDPATH += $(OPIEDIR)/include | 27 | DEPENDPATH += $(OPIEDIR)/include |
28 | INTERFACES = configbase.ui | 28 | INTERFACES = configbase.ui |
29 | TARGET = wellenreiter | 29 | TARGET = wellenreiter |
30 | 30 | ||
31 | !contains( platform, x11 ) { | 31 | !contains( platform, x11 ) { |
32 | message( qws ) | 32 | message( qws ) |
33 | include ( $(OPIEDIR)/include.pro ) | 33 | include ( $(OPIEDIR)/include.pro ) |
34 | LIBS += -lqpe -lopie -lopiecore2 -lopieui2 -lopienet2 | 34 | LIBS += -lqpe -lopie -lopiecore2 -lopieui2 -lopienet2 |
35 | } | 35 | } |
36 | 36 | ||
37 | contains( platform, x11 ) { | 37 | contains( platform, x11 ) { |
38 | LIBS += -L$(OPIEDIR)/lib -Wl,-rpath,$(OPIEDIR)/lib -lwellenreiter | 38 | LIBS += -L$(OPIEDIR)/output/lib -Wl,-rpath,$(OPIEDIR)/output/lib -Wl,-rpath,/usr/local/lib -lwellenreiter |
39 | SOURCES += resource.cpp | 39 | SOURCES += resource.cpp |
40 | HEADERS += resource.h | 40 | HEADERS += resource.h |
41 | DESTDIR = $(OPIEDIR)/output/bin | ||
41 | } | 42 | } |
42 | 43 | ||
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,28 +1,25 @@ | |||
1 | MOC_DIR = ./tmp | 1 | MOC_DIR = ./tmp |
2 | OBJECTS_DIR = ./tmp | 2 | OBJECTS_DIR = ./tmp |
3 | DESTDIR = $(OPIEDIR)/lib | 3 | DESTDIR = $(OPIEDIR)/output/lib |
4 | TEMPLATE = lib | 4 | TEMPLATE = lib |
5 | CONFIG = qt warn_on debug | 5 | CONFIG = qt warn_on debug |
6 | 6 | ||
7 | HEADERS = $(OPIEDIR)/libopie2/opieui/olistview.h \ | 7 | HEADERS = $(OPIEDIR)/libopie2/opieui/olistview.h \ |
8 | $(OPIEDIR)/libopie2/opienet/onetutils.h \ | 8 | $(OPIEDIR)/libopie2/opienet/onetutils.h \ |
9 | $(OPIEDIR)/libopie2/opienet/omanufacturerdb.h \ | ||
9 | $(OPIEDIR)/libopie2/opienet/onetwork.h \ | 10 | $(OPIEDIR)/libopie2/opienet/onetwork.h \ |
10 | $(OPIEDIR)/libopie2/opienet/opcap.h | 11 | $(OPIEDIR)/libopie2/opienet/opcap.h |
11 | 12 | ||
12 | SOURCES = $(OPIEDIR)/libopie2/opieui/olistview.cpp \ | 13 | SOURCES = $(OPIEDIR)/libopie2/opieui/olistview.cpp \ |
13 | $(OPIEDIR)/libopie2/opienet/onetutils.cpp \ | 14 | $(OPIEDIR)/libopie2/opienet/onetutils.cpp \ |
15 | $(OPIEDIR)/libopie2/opienet/omanufacturerdb.cpp \ | ||
14 | $(OPIEDIR)/libopie2/opienet/onetwork.cpp \ | 16 | $(OPIEDIR)/libopie2/opienet/onetwork.cpp \ |
15 | $(OPIEDIR)/libopie2/opienet/opcap.cpp | 17 | $(OPIEDIR)/libopie2/opienet/opcap.cpp |
16 | 18 | ||
17 | INCLUDEPATH += $(OPIEDIR)/include | 19 | INCLUDEPATH += $(OPIEDIR)/include |
18 | DEPENDPATH += $(OPIEDIR)/include | 20 | DEPENDPATH += $(OPIEDIR)/include |
19 | LIBS = -lpcap | 21 | LIBS = -L$(OPIEDIR)/lib -Wl,-rpath,$(OPIEDIR)/lib -lpcap |
20 | TARGET = wellenreiter | 22 | TARGET = wellenreiter |
21 | VERSION = 1.0.0 | 23 | VERSION = 1.0.0 |
22 | 24 | ||
23 | contains( platform, x11 ) { | ||
24 | LIBS += -L$(OPIEDIR)/lib -Wl,-rpath,$(OPIEDIR)/lib | ||
25 | SOURCES += resource.cpp | ||
26 | HEADERS += resource.h | ||
27 | } | ||
28 | 25 | ||
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 @@ | |||
1 | VERSION=2-alpha2 | ||
2 | |||
3 | TGZDIR=$PWD | ||
4 | |||
5 | # script to make a .tgz distributable for the Wellenreiter X11 Standalone Version | ||
6 | |||
7 | find . -name "*.o"|xargs rm -f | ||
8 | find . -name "Makefile"|xargs rm -f | ||
9 | find . -name "*moc*"|xargs rm -f | ||
10 | #TMPFILE=`mktemp -d -q /tmp/build.XXXXXX` | ||
11 | TMPFILE=/tmp/build | ||
12 | #if [ $? -ne 0 ]; then | ||
13 | # echo "$0: Can't create temp file, exiting..." | ||
14 | # exit 1 | ||
15 | #fi | ||
16 | |||
17 | TMPDIR=$TMPFILE/wellenreiter$VERSION | ||
18 | OUTPUT=$TMPDIR/output | ||
19 | |||
20 | mkdir -p $TMPDIR/libopie2/opieui | ||
21 | mkdir -p $TMPDIR/libopie2/opienet | ||
22 | mkdir -p $TMPDIR/include/opie2 | ||
23 | mkdir -p $OUTPUT/share/wellenreiter/pics | ||
24 | mkdir -p $OUTPUT/share/wellenreiter | ||
25 | cp -dfR gui $TMPDIR | ||
26 | cp -dfR lib $TMPDIR | ||
27 | cp -dfR build README wellenreiter.pro $TMPDIR | ||
28 | cp -dfR $OPIEDIR/pics/wellenreiter/* $OUTPUT/share/wellenreiter/ | ||
29 | cp -dfR $OPIEDIR/share/wellenreiter/* $OUTPUT/share/wellenreiter/ | ||
30 | |||
31 | # take care about sourcefiles | ||
32 | |||
33 | FILES="libopie2/opienet/onetwork.h libopie2/opienet/onetwork.cpp \ | ||
34 | libopie2/opienet/opcap.h libopie2/opienet/opcap.cpp libopie2/opienet/802_11_user.h \ | ||
35 | libopie2/opienet/onetutils.h libopie2/opienet/onetutils.cpp \ | ||
36 | libopie2/opienet/omanufacturerdb.h libopie2/opienet/omanufacturerdb.cpp \ | ||
37 | libopie2/opieui/olistview.cpp libopie2/opieui/olistview.h" | ||
38 | |||
39 | for i in $FILES | ||
40 | do cp -dfR $OPIEDIR/$i $TMPDIR/$i | ||
41 | done | ||
42 | |||
43 | # make includes | ||
44 | pushd $TMPDIR/include/opie2 | ||
45 | ln -sf ../../libopie2/opieui/*.h . | ||
46 | ln -sf ../../libopie2/opienet/*.h . | ||
47 | popd | ||
48 | |||
49 | find $TMPDIR -name "CVS"|xargs rm -rf | ||
50 | |||
51 | pushd $TMPFILE | ||
52 | tar czf $TGZDIR/wellenreiter$VERSION.tgz wellenreiter$VERSION | ||
53 | popd | ||
54 | |||