This service will be undergoing maintenance at 00:00 UTC, 2017-10-23 It is expected to last about 30 minutes
Bug 222070 - Review Request: prewikka - Prelude IDS Management Console
Review Request: prewikka - Prelude IDS Management Console
Product: Fedora
Classification: Fedora
Component: Package Review (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Mamoru TASAKA
Fedora Package Reviews List
Depends On:
  Show dependency treegraph
Reported: 2007-01-09 18:50 EST by Thorsten Scherf
Modified: 2017-02-17 17:30 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-01-18 14:19:44 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Thorsten Scherf 2007-01-09 18:50:46 EST
Prewikka is a graphical front-end analysis console for the Prelude
Hybrid IDS Framework. Providing numerous features, Prewikka facilitates
the work of users and analysts. It provides alert aggregation and sensor
and hearbeat views, and has user management and configurable filters. It
has access to external tools such as whois and traceroute.

I need a sponsor for this package.
Comment 1 Mamoru TASAKA 2007-01-11 14:09:39 EST
I have not rebuilt this package, however..

* Requires:
Requires:	python-abi = .....
   - This is not needed any more because rpmbuild automatically
     adds python requirement as "Requires: python(abi) = ..."
* Bytecompiled python objects .pyc and .pyo files should have 0644

* At %install stage:
rm -rf %{buildroot}/%{python_sitearch}/%{name}/templates/
  Why is this needed?

* Documentation:
mkdir -p %{buildroot}%{_defaultdocdir}/%{name}-%{version}
mkdir -p %{buildroot}%{_defaultdocdir}/%{name}-%{version}/apache
cp -p doc/apache.conf %{buildroot}%{_defaultdocdir}/%{name}-%{version}/apache/
   These can be done by:
   mkdir apache
   cp -p doc/apache.conf apache/


%doc apache/
    By the way, is it really needed to move apache.conf documentation
    to apache directory (by creating apache directory)?

* Other dependency
  This package requires either libpreludedb-mysql/pgsql/sqlite
  package. Also, it seems that prewikka-httpd will not work
  only by installing one of them. To use prewikka-httpd some
  setting seems still needed.
  One solution is that you write a document "README.fedora" which
  explains that prewikka user needs to install either a package
  according to what database he/she will use and some settings are
  needed according to what installed (at this stage, you can
  say "the details of settings are on http://..., however,
  you must write to the document at least what package user should 

  By the way, if prewikka-httpd is used only by privileged user,
  it should  be installed under %{_sbindir}.
Comment 2 Thorsten Scherf 2007-01-11 19:06:33 EST
* removed python-abi requirement

* rm -rf %{buildroot}/%{python_sitearch}/%{name}/templates/ 
this is an empty file, thus is removed it.

* moved apache.conf to %{buildroot}%{_defaultdocdir}/%{name}-%{version}

* created a README.fedora with setup instructions and put it in

* moved prewikka-httpd from /usr/bin => /usr/sbin

new package is available here:
Comment 3 Mamoru TASAKA 2007-01-12 12:11:15 EST

* For file entry
  - Please clean up file entry. For example, why don't you
    just write
    instead of the directory + all files/directories under there?
    Just writing the directory without %dir prefix is 
    interpretted as the directory and all files/directories
    under there.

* Documentation install
  As said in comment 1, please don't use:
cp -p doc/apache.conf %{buildroot}%{_defaultdocdir}/%{name}-%{version}/
cp README.fedora %{buildroot}%{_defaultdocdir}/%{name}-%{version}
  Just write like:
  Using %doc without absolute path is interpretted as
  1. to create the default documentation directory 
  2. Install the files/diretories listed into the directory.

* README.fedora
  Don't create a patch. Just write README.fedora and
  include in srpm as a source. i.e.
%Source0:  <Please specify the URL>
%Source1:  README.fedora
%setup -q
cp -p %{SOURCE1} .
%doc AUTHORS ...
%doc README.fedora

* empty
  This file is imported first when to call python modules in the 
  directory, so this file is needed even this is empty. You can
  other empty scripts in prewikka.

  And.. the existence of means that the module scripts
  under this directory are imported from other binaries/scripts and
  not called directly by user. For this case the scripts should not 
  have shebang and should not have executable permission flags. So:

  1. Don't remove under prewikka/templates/
  2. Set permission of all .py/.pyo/.pyc files under this directory
     as 0644
  3. Remove shebang from all .py scripts under this directory.
  4. And... check if prewikka works without problems if you do 1-3.
Comment 4 Thorsten Scherf 2007-01-12 14:55:05 EST
ok, fixed the issues. one question remains:

when I use this:


why is prewikka the owner of both dirs, although I did not use the %dir macro?

new package is available here:
Comment 5 Mamoru TASAKA 2007-01-13 13:39:17 EST
And.. where is -5 srpm? -4 srpm does not have README.fedora
and I cannot create -5 srpm by "rpmbuild -bs prewikka.spec"

(In reply to comment #4)
> when I use this:
> %files
> %{python_sitearch}/%{name}/

As commented in comment 3, Writing just
without marking as %dir is interpreted as the directory
<some_directory> and all files/directories under the

  when written as this,
  * rpmbuild makes the directory 
  * rpmbuild just copies all the listed files/directories into
    the directory
  * rpmbuild automatically adds automatically the directory
   /%{_datadir}/doc/%{name}-%{version} and all files/directories
   under there into file list and mark all files as %doc.

sed -i -e '/^#!\/usr\/bin\/env python$/d'
   * After these, please make sure that all files under
     %{python_sitearch}/%{name}/templates/ do _not_ have
     executable permission.
Comment 6 Thorsten Scherf 2007-01-13 16:33:27 EST
sorry, it agree it would be helpful to upload the package I talk about. :)

find it here:
Comment 7 Mamoru TASAKA 2007-01-14 12:22:15 EST

* Now README.fedora seems good (although I don't know
  at all about mysql...)
  So, please add to %description the sentence like:
Please read README.fedora for fedora specific issues.

* Please check if the directory to be installed is
  whether python_sitelib or python_sitearch.
  On 64bit arch, these directories differ.

  If this package is arch-independent, the directory
  must be python_sitelib. Otherwise, this srpm must
  not be marked as noarch rpm.

* It seems that the current prewikka is 0.9.8 .
Comment 8 Thorsten Scherf 2007-01-14 13:51:34 EST
* added a note to README.fedora 

* this package is arch-independent, so I switch to python_sitelib

* used new upstream version 0.9.8

find it here:

Comment 9 Thorsten Scherf 2007-01-14 13:52:08 EST
* added a note to README.fedora 

* this package is arch-independent, so I switch to python_sitelib

* used new upstream version 0.9.8

find it here:
Comment 10 Mamoru TASAKA 2007-01-15 13:24:32 EST
Well, now:
   This package (prewikka) is APPROVED by me

Two notes:
* It seems that this is licensed under GPL, so please
  ask upstream to include the copy of GPL license in
* I don't think the Group "Development/Languages" is
  good. This group is usually used by gcc, python,
  perl, etc.

  rpmlint requires to choose Group from
"Amusements/Games", "Amusements/Graphics", "Applications/Archiving",
"Applications/Communications", "Applications/Databases",
"Applications/Editors", "Applications/Emulators", "Applications/Engineering",
"Applications/File", "Applications/Internet", "Applications/Multimedia",
"Applications/Productivity", "Applications/Publishing", "Applications/System",
"Applications/Text", "Development/Debug", "Development/Debuggers",
"Development/Languages", "Development/Libraries", "Development/System",
"Development/Tools", "Documentation", "System Environment/Base", "System
Environment/Daemons", "System Environment/Kernel", "System
Environment/Libraries", "System Environment/Shells", "User
Interface/Desktops", "User Interface/X", "User Interface/X Hardware Support".
   Maybe "Applications/System"?
Comment 11 Mamoru TASAKA 2007-01-18 13:00:45 EST
Please close this bug as CLOSED NEXTRELEASE when importing
is done.

Note You need to log in before you can comment on or make changes to this bug.