Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 118717 - net-wireless/swscanner-0.2.2 (new ebuild)
Summary: net-wireless/swscanner-0.2.2 (new ebuild)
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Other
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://www.swscanner.org/
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2006-01-11 15:56 UTC by Christoph Vogtländer
Modified: 2014-03-26 17:04 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
swscanner-0.2.2.ebuild (swscanner-0.2.2.ebuild,884 bytes, text/plain)
2006-01-11 15:58 UTC, Christoph Vogtländer
Details
new swscanner-0.2.2.ebuild (swscanner-0.2.2.ebuild,992 bytes, text/plain)
2006-02-14 14:22 UTC, Ryan Hill (RETIRED)
Details
swscanner-0.2.2-libshp.patch (swscanner-0.2.2-libshp.patch,401 bytes, patch)
2006-02-14 14:23 UTC, Ryan Hill (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Vogtländer 2006-01-11 15:56:55 UTC
Simple Wireless Scanner (SWScanner) is an application for Linux environments designed for scanning, configuring, and (in general) managing wireless networks. SWScanner is also a powerfull wardriving tool, and has a high level of compatibility with NetStumbler, a similar and well-known application designed for other operating system.

Only tested on ppc so far.
There is a problem with storing data. swscanner needs qsqllite. If qt is not compiled with the sqlite USE-Flag the following error will occur when starting the app:
QSqlDatabase: QSQLITE driver not loaded
But scanning works.

I don't know how to test if qt was compiled with a certain use flag in the ebuild, though. Anybody? AFAIK this is not possible with DEPEND.
Or just print out a warning with ewarn at the end of the install that qt needs to be build with sqlite?
Comment 1 Christoph Vogtländer 2006-01-11 15:58:01 UTC
Created attachment 76864 [details]
swscanner-0.2.2.ebuild

I suggest net-wireless/swscanner
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-01-13 17:51:33 UTC
(In reply to comment #0)
> I don't know how to test if qt was compiled with a certain use flag in the
> ebuild, though. Anybody? AFAIK this is not possible with DEPEND.
> Or just print out a warning with ewarn at the end of the install that qt needs
> to be build with sqlite?

pkg_setup() {
	if ! built_with_use x11-libs/qt sqlite; then
		eerror "QT needs to be installed with USE=sqlite"
		eerror "for ${PN} to run correctly"
		die "remerge x11-libs/qt with \"USE=sqlite\"
	fi
}
Comment 3 Christoph Vogtländer 2006-01-14 02:27:48 UTC
Cool, never thought it would be so easy :-)
This should definitely go into the docs! It is not in the man page of ebuild or eutils, nor in the Ebuild-Howto...
Or am I looking wrong and using outdated docs?
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-01-14 02:42:46 UTC
(In reply to comment #3)
> Cool, never thought it would be so easy :-)
> This should definitely go into the docs! It is not in the man page of ebuild or
> eutils, nor in the Ebuild-Howto...
> Or am I looking wrong and using outdated docs?

Well, we try to avoid this unless necessary, use-based deps are the real solution, the above is just a workaround for portage lack of features (see Bug 2272). See eutils eclass, also http://dev.gentoo.org/~plasmaroo/devmanual/ is a good reading if you want to write ebuilds.
Comment 5 Ryan Hill (RETIRED) gentoo-dev 2006-02-14 14:22:04 UTC
Created attachment 79801 [details]
new swscanner-0.2.2.ebuild

i changed over Christoph's ebuild to use the kde.eclass and fixed up some bits.

- DESCRIPTION should be 80 characters max
- RESTRICT="nomirror" should only be used for files Gentoo cannot legally host
- put QT sqlite detection in pkg_setup as per Jakub
- SLOT and IUSE have to be present, even if they're empty
- added kdelibs to DEPENDS

the kdeenablefinal USE flag breaks compilation, so it's force disabled.  also 
--with-extra-includes=/usr/include/libshp/ would be overridden by kde.eclass so i made a simple patch to src/shapehandler.h to fix the include problem.

we could make the HTML documentation dependant on the doc USEflag, but that's up to the maintainer.
Comment 6 Ryan Hill (RETIRED) gentoo-dev 2006-02-14 14:23:04 UTC
Created attachment 79802 [details, diff]
swscanner-0.2.2-libshp.patch
Comment 7 Walter White 2006-05-15 11:18:37 UTC
on both my 64bit desktop and 32bit laptop, I get this error:

64bit system: /usr/lib64/.libs/libshp.so
32bit system: /usr/lib/.libs/libshp.so

no such file or directory

That is with the patch, so it should work.  The library is installed, but not in that place.  How do I tell it to look somewhere else?
Comment 8 ema 2006-08-31 16:05:15 UTC
ln -s /usr/lib64/libshp.so /usr/lib64/.libs/libshp.so   
Comment 9 Juergen Nagel 2006-09-26 14:05:42 UTC
Walter's problem has to do with an error in /usr/lib/libshp.la.

In /usr/lib/libshp.la (from sci-libs/shapelib-1.2.10-r1) there's the section:
   # Is this an already installed library?
   installed=no

Changing "no" into "yes" fixes the problem temporarily.
(Solution found at http://www.sane-project.org/old-archive/2000-11/0003.html)

The real problem, however, lies in the incorrect generation of libshp.la by the shapelib build process.
Comment 10 Michael Palimaka (kensington) gentoo-dev 2014-03-26 17:04:42 UTC
Requires qt 3 and upstream is dead.