Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34243 - New samhain, fcheck ebuilds
Summary: New samhain, fcheck ebuilds
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Luca Longinotti (RETIRED)
URL: http://www.gentoo.org/~lcars/ebuilds
Whiteboard:
Keywords:
: 47783 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-11-24 01:43 UTC by Andrea Barisani (RETIRED)
Modified: 2005-12-25 06:40 UTC (History)
7 users (show)

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


Attachments
samhain ebuild proposal (samhain-1.8.1.ebuild,8.41 KB, text/plain)
2004-02-15 23:55 UTC, Andrea Barisani (RETIRED)
Details
samhain ebuild (samhain-1.8.4.ebuild,6.07 KB, text/plain)
2004-04-15 02:17 UTC, rob holland (RETIRED)
Details
new ebuild version (samhain-1.8.6.ebuild,6.12 KB, text/plain)
2004-04-24 05:23 UTC, Andrea Barisani (RETIRED)
Details
samhain-2.0.4 ebuild proposal (samhain-2.0.4.ebuild,4.77 KB, text/plain)
2005-02-18 07:04 UTC, Jared B.
Details
updated samhain-2.0.4 ebuild (samhain-2.0.4.ebuild,5.49 KB, text/plain)
2005-02-18 14:54 UTC, Jared B.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrea Barisani (RETIRED) gentoo-dev 2003-11-24 01:43:26 UTC
At the specified URL you'll find new ebuilds for samhain and fcheck, two
integrity checking
apps (currently not present in portage). The ebuilds have been tested and I am
currently
using them without problems

Please use fcheck-2.07.59.ebuild and samhain-1.8.0.ebuild

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2003-11-24 01:52:28 UTC
7 local USE flags and interactive, that's not good.
Comment 2 Andrea Barisani (RETIRED) gentoo-dev 2003-11-24 01:58:38 UTC
Well I know that usually that's not good but in this case it's really necessary and it's the
only way that allow Gentoo users to exploit the features of the samhain app.

It's an integrity checker that includes many way for hiding the process and contact remotely a server, things like server IP address and other features _must_ be chosen at
compile time or they are useless (because an intruder can easily subvert them).

This is the only proper way to handle this package I guess.
Comment 3 Seemant Kulleen (RETIRED) gentoo-dev 2003-11-24 19:52:19 UTC
check robbat2's stuff as he stated on the dev mailing list
Comment 4 Andrea Barisani (RETIRED) gentoo-dev 2003-11-28 01:32:09 UTC
Ok, I'm rewriting the ebuild without interactive questions using environment  variables as the amanda ebuild.  Can I keep the local USE flags? What problems they cause?  thx
Comment 5 Andrea Barisani (RETIRED) gentoo-dev 2004-02-15 23:55:54 UTC
Created attachment 25703 [details]
samhain ebuild proposal
Comment 6 Andrea Barisani (RETIRED) gentoo-dev 2004-02-15 23:56:45 UTC
I've attached a new draft of the ebuild, it needs testing but I'm attaching it anyway for
reference.

BTW what about fcheck ebuild? Looks fine to me.
Comment 7 Andrea Barisani (RETIRED) gentoo-dev 2004-04-15 02:11:39 UTC
*** Bug 47783 has been marked as a duplicate of this bug. ***
Comment 8 rob holland (RETIRED) gentoo-dev 2004-04-15 02:17:21 UTC
Created attachment 29320 [details]
samhain ebuild
Comment 9 Andrea Barisani (RETIRED) gentoo-dev 2004-04-24 05:23:36 UTC
Created attachment 29953 [details]
new ebuild version

New ebuild, could you please test this and consider adding it to portage?
Comment 10 klavs klavsen 2004-04-24 08:53:48 UTC
Notice that samhain with gpg-signing enabled (part of the ebuild USE) requires a gnupg with TIGER/192 enabled.

This is not supported by the gnupg ebuild - and you get this message when compiling gnupg with --enable-tiger  | --enable-new-tiger:
***
*** The TIGER/192 digest is in the process of being removed from the
*** OpenPGP standard.  While it hasn't been removed from GnuPG yet, it
*** will be removed in a future version.  For the sake of future
*** compatibility, please do not use this digest.
***

Unless the Samhain people are going to change the alg they use - there will soon be a problem :(

Until then - the gnupg ebuild should have the --enable-new-tiger & --enable-tiger USE options added IMHO :)
Comment 11 Grant Goodyear (RETIRED) gentoo-dev 2004-05-25 10:11:51 UTC
Spanky,
  This ebuild is pretty ugly.  Would you take a look at it and provide some 
comments?

Thanks,
g2boojum
Comment 12 Grant Goodyear (RETIRED) gentoo-dev 2004-06-02 17:35:34 UTC
Here's my thoughts:

I think my preference would be to replace some of the local USE flags with just 
environment variables.  Moreover, this ebuild is currently very "noisy", 
meaning that it provides a lot of info to the user that most users 
are unlikely to want, at least their first time installing the package.
My suggestion would be to put most or all of that info at the top of
the ebuild as comments, and then add an einfo to the end of the ebuild
telling people that reading the ebuild might be a good idea if they
want to enable special features.

I think we should keep the crypt USE flag, but don't bother to build w/ 
a gpg key unless SAMHAIN_KEYFINGERPRINT is set.  The postgres and mysql
USE flags are reasonable, and samhain-stealth can be replaced with 
an "imagemagick" USE flag.

Perhaps keep the local "microstealth" local USE flag, which will tell
the ebuild to use microstealth if SAMHAIN_XOR is set.  If microstealth
is not present then stealth will be used if SAMHAIN_XOR is set.  (Note, 
local USE flags don't need to be prefixed with the package name.)

The samhain-newname USE flag can be replaced by just looking for a 
SAMHAIN_NAME env variable.

Instead of samhain-netconf and samhain-netdb, how about just looking for
a SAMHAIN_SERVER variable and enabling both netconf and netdb?  I might 
suggest always building both the client and the server, but I won't complain
too much if you want "client" and 'server' USE flags.  The 'suidcheck' USE 
flag seems reasonable, too.

Any of that make sense?
Comment 13 SpanKY gentoo-dev 2004-10-02 23:27:26 UTC
ok ... not sure why base-system has this ...

the best person to test/maintain the ebuild would be someone who actually uses it ... that means it's all yours andrea ;)
Comment 14 Daniel Webert 2004-11-22 17:16:54 UTC
give me something to test ...

latest is 2.0.2
Comment 15 Jared B. 2005-02-18 07:04:57 UTC
Created attachment 51517 [details]
samhain-2.0.4 ebuild proposal

I've updated and modified Andrea's ebuild to (hopefully) make it a bit easier
to work with.  I've also taken some of Grant's suggestions into account.

I think this should strike a reasonable balance between the comprehensive
options available for Samhain and the verbosity/complexity of the ebuild. 
Please test and give me your opinions.	I'd definitely like to get this into
portage, as it seems to be a wonderful utility.

Thanks.
Comment 16 Jared B. 2005-02-18 13:14:51 UTC
After some additional test, I've realized that my first ebuild is broken.  Please don't use it.  I'll attach a fixed version shortly.
Comment 17 Jared B. 2005-02-18 14:54:19 UTC
Created attachment 51550 [details]
updated samhain-2.0.4 ebuild

Ok, I fixed the errors in the last ebuild.  Please try this one, it seems to be
working fine for me.
Comment 18 Jesse Adelman 2005-08-23 00:11:27 UTC
Just FYI: Version 2.0.8 is current: http://la-samhna.de/samhain/s_download.html
Comment 19 Luca Longinotti (RETIRED) gentoo-dev 2005-12-17 10:25:57 UTC
Reassigning bug to myself, I'll work on updating and checking the ebuild for Samhain 2.1.0 and getting it into Portage and then maintaining it, should be done in a few days, will update once it's in.
Best regards, CHTEKK.
Comment 20 Luca Longinotti (RETIRED) gentoo-dev 2005-12-25 06:40:14 UTC
Sorry for the delay, I just added app-forensics/samhain-2.1.1a to the tree, so have fun with it! ;)
Thanks to Andrea Barisani and Jared Breland for the initial ebuild.
Atm it's not possible to build a static Samhain binary with PostgreSQL or Prelude support, it just fails during linking... The ebuild blocks those USE flag combinations, and I'll look deeper into it when I have more time to do so (if anyone comes up with ideas or patches, just open a new bug or mail me directly, thanks!).
Closing this now, best regards, CHTEKK.