Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 87617 - net-analyzer/prewikka ebuild request
Summary: net-analyzer/prewikka ebuild request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Gentoo Netmon project
URL: http://www.prelude-ids.org/rubrique.p...
Whiteboard:
Keywords:
Depends on:
Blocks: 87408
  Show dependency tree
 
Reported: 2005-04-01 18:40 UTC by Marcelo Goes (RETIRED)
Modified: 2005-05-29 05:16 UTC (History)
0 users

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


Attachments
net-analyzer/prewikka-0.9.0_rc5.ebuild (prewikka-0.9.0_rc5.ebuild,627 bytes, text/plain)
2005-05-08 04:11 UTC, Laurento Frittella (mrfree)
Details
net-analyzer/prewikka-0.9.0_rc5-r1.ebuild (prewikka-0.9.0_rc5-r1.ebuild,778 bytes, text/plain)
2005-05-08 04:24 UTC, Laurento Frittella (mrfree)
Details
prewikka-0.9.0_rc5.ebuild (prewikka-0.9.0_rc5.ebuild,889 bytes, text/plain)
2005-05-08 09:54 UTC, Marcelo Goes (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcelo Goes (RETIRED) gentoo-dev 2005-04-01 18:40:13 UTC
Hello there,

Prewikka is the new "Prelude Management Console."
"Prewikka IDS Web Interface - A frontend to your Prelude database"

As I understand it, it is a replacement for net-analyzer/piwi, whose last version is a bit outdated.
Comment 1 Jan Dusek 2005-04-15 04:22:13 UTC
Hi, is anybody working on this? I'd really use prewikka in portage. Since we have all the other prelude 0.9 stuff in portage, it'd be nice to have there a tool which manages and visualizes the results as well.
Comment 2 Marcelo Goes (RETIRED) gentoo-dev 2005-04-15 07:44:15 UTC
Hi,
Not that I know of, but yep, it would be nice.
Comment 3 Laurento Frittella (mrfree) 2005-05-08 04:11:23 UTC
Created attachment 58337 [details]
net-analyzer/prewikka-0.9.0_rc5.ebuild

Here is my prewikka ebuild ;)
Comment 4 Laurento Frittella (mrfree) 2005-05-08 04:16:21 UTC
More info about distutils_src_install problem here in the forum http://forums.gentoo.org/viewtopic-p-2386834.html
Comment 5 Laurento Frittella (mrfree) 2005-05-08 04:24:54 UTC
Created attachment 58339 [details]
net-analyzer/prewikka-0.9.0_rc5-r1.ebuild

I've simply added useful info in pkg_postinst()
Comment 6 Marcelo Goes (RETIRED) gentoo-dev 2005-05-08 09:54:20 UTC
Created attachment 58365 [details]
prewikka-0.9.0_rc5.ebuild

Thanks for the ebuild.
I have a bit of a problem with the installation layout, however.

I got it to install to a more sane layout, but when I ran
/usr/bin/prewikka-httpd it complained that
/var/tmp/portage/prewikka-0.9.0_rc5/image/usr/etc/prewikka/prewikka.conf was
not found (*bad*).
Comment 7 Laurento Frittella (mrfree) 2005-05-12 03:21:24 UTC
See here http://forums.gentoo.org/viewtopic-p-2386834.html for some known issue ;)

Actually with some post-install manual adj prewikka works very well, this weekend I'll try to create an init.d script ;)
Comment 8 Laurento Frittella (mrfree) 2005-05-12 03:25:54 UTC
Marcelo, for your config problem try to edit by hand the config file /lib/python2.3/site-packages/prewikka/siteconfig.py and set the correct config file path; on the forum there is some other infos about this issue
Comment 9 Marcelo Goes (RETIRED) gentoo-dev 2005-05-19 08:02:34 UTC
In src_install()

	# fix broken paths
	sed -i 's:${D}::g' \
	${D}/usr/lib/python2.3/site-packages/prewikka/* || die
	sed -i 's:usr/etc:etc:g' \
	${D}/usr/lib/python2.3/site-packages/prewikka/* || die
	mv ${D}/usr/etc ${D}

The first sed line isn't working for some reason I can't figure out right now,
but I think you get the idea. This must be fixed in the ebuild before adding the
package to the tree.
Comment 10 Jan Dusek 2005-05-24 14:52:30 UTC
Hi, I'm constantly getting this error - any ideas?

# prewikka-httpd
Traceback (most recent call last):
  File "/usr/bin/prewikka-httpd", line 132, in ?
    server = PrewikkaServer(("0.0.0.0", 8000), PrewikkaRequestHandler)
  File "/usr/bin/prewikka-httpd", line 39, in __init__
    self.core = Core.Core()
  File "/usr/lib/python2.3/site-packages/prewikka/Core.py", line 57, in __init__
    self._initDatabase()
  File "/usr/lib/python2.3/site-packages/prewikka/Core.py", line 71, in
_initDatabase
    self._env.db = Database.Database(config)
  File "/usr/lib/python2.3/site-packages/prewikka/Database.py", line 71, in __init__
    self._sql = preludedb_sql_new(db_type, settings)
preludedb.PreludeDBError: Cannot load sql plugin

I emerged preludedb with -debug -doc -mysql +perl +postgres +python.
Comment 11 Marcelo Goes (RETIRED) gentoo-dev 2005-05-24 15:22:25 UTC
> preludedb.PreludeDBError: Cannot load sql plugin
How about enabling the mysql flag?
Comment 12 Jan Dusek 2005-05-24 15:35:48 UTC
Is that absolutelly necessary? I want to use postgres. I don't have any mysql
stuff and I don't want any.
Comment 13 Marcelo Goes (RETIRED) gentoo-dev 2005-05-25 10:19:40 UTC
I don't know. Maybe prewikka _requires_ mysql in preludedb?
If it is so, the ebuild will have to require it as well.
Comment 14 Jan Dusek 2005-05-25 13:46:04 UTC
According to https://trac.prelude-ids.org/wiki/InstallingPrewikka you can
install prewikka either on MySQL or on Postgres. I really don't think MySQL si
necessary neither for prewikka nor for libpreludedb.

Btw I had to install dev-python/pypgsql manually and I think this should be
required as a dependency by the ebuild when using postgres and prewikka,
shouldn't it? That didn't solve my current issue though.
Comment 15 Daniel Black (RETIRED) gentoo-dev 2005-05-26 05:03:52 UTC
version commited - please confirm it works for you. 
Comment 16 Jan Dusek 2005-05-29 02:49:50 UTC
works here
Comment 17 Daniel Black (RETIRED) gentoo-dev 2005-05-29 05:16:35 UTC
Thanks Jan!