Bug 214623 - [new port] security/samhain: Samhain Intrusion Detection System version 4.2.0
Summary: [new port] security/samhain: Samhain Intrusion Detection System version 4.2.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Nikolai Lifanov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-18 11:03 UTC by Nikola Kolev
Modified: 2017-03-12 17:11 UTC (History)
1 user (show)

See Also:


Attachments
samhain 4.2.0 (14.17 KB, application/x-shar)
2016-11-18 11:03 UTC, Nikola Kolev
no flags Details
samhain 4.2.0 uid gid (13.21 KB, application/x-shar)
2017-03-08 11:16 UTC, Nikola Kolev
no flags Details
GIDs yule user (241 bytes, patch)
2017-03-08 11:17 UTC, Nikola Kolev
no flags Details | Diff
UIDs yule user (491 bytes, patch)
2017-03-08 11:17 UTC, Nikola Kolev
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nikola Kolev 2016-11-18 11:03:09 UTC
Created attachment 177138 [details]
samhain 4.2.0

Samhain is an open source file integrity and host-based intrusion
detection system for Linux and Unix. It can run as a daemon process,
and and thus can remember file changes - contrary to a tool that runs
from cron, if a file is modified you will get only one report, while
subsequent checks of that file will ignore the modification as it is
already reported (unless the file is modified again).

Samhain can optionally be used as client/server system to provide
centralized monitoring for multiple host. Logging to a (MySQL or
PostgreSQL) database is supported.

WWW: http://la-samhna.de/samhain/

This port has been removed from the ports tree in 2014 because of missing staging. The shar file contains three ports: security/samhain (standalone), security/samhain-client and security/samhain-server. The main port is samhain, samhain-client and samhain-server use the main port with different build options.

Poudriere and portlint look OK.

About samhain-server poudriere complains with:

====>> Checking for staging violations... done
====>> Error: Filesystem touched during stage (files must install to ${STAGEDIR}):
extra: var/log/userlog
extra: var/mail/yule
etc/passwd: 
	size (1531, 1579)
etc/master.passwd: 
	size (1650, 1703)
etc/group: 
	size (445, 458)
====>> Cleaning up wrkdir

I assume this is because yule user is created during the installation. I suppose yule user should be added in UIDs and GIDs.

Regards,
Nikola
Comment 1 Nikolai Lifanov freebsd_committer freebsd_triage 2017-03-03 15:38:24 UTC
Can you submit a patch to add yule user as part of this submission please?
Comment 2 Nikola Kolev 2017-03-08 11:16:34 UTC
Created attachment 180630 [details]
samhain 4.2.0 uid gid
Comment 3 Nikola Kolev 2017-03-08 11:17:20 UTC
Created attachment 180631 [details]
GIDs yule user
Comment 4 Nikola Kolev 2017-03-08 11:17:46 UTC
Created attachment 180632 [details]
UIDs yule user
Comment 5 commit-hook freebsd_committer freebsd_triage 2017-03-12 17:08:00 UTC
A commit references this bug:

Author: lifanov
Date: Sun Mar 12 17:07:24 UTC 2017
New revision: 435996
URL: https://svnweb.freebsd.org/changeset/ports/435996

Log:
  add ports for Samhain Intrusion Detection System

  Samhain is an open source file integrity and host-based intrusion
  detection system for Linux and Unix. It can run as a daemon process,
  and and thus can remember file changes - contrary to a tool that runs
  from cron, if a file is modified you will get only one report, while
  subsequent checks of that file will ignore the modification as it is
  already reported (unless the file is modified again).

  Samhain can optionally be used as client/server system to provide
  centralized monitoring for multiple host. Logging to a (MySQL or
  PostgreSQL) database is supported.

  PR:		214623
  Submitted by:	Nikola Kolev <koue@chaosophia.net>

Changes:
  head/GIDs
  head/UIDs
  head/security/Makefile
  head/security/samhain/
  head/security/samhain/Makefile
  head/security/samhain/distinfo
  head/security/samhain/files/
  head/security/samhain/files/fixsamhainrc.patch
  head/security/samhain/files/fixyulerc.patch
  head/security/samhain/files/patch-config.h.in
  head/security/samhain/pkg-descr
  head/security/samhain/pkg-message
  head/security/samhain/pkg-plist
  head/security/samhain-client/
  head/security/samhain-client/Makefile
  head/security/samhain-server/
  head/security/samhain-server/Makefile
Comment 6 Nikolai Lifanov freebsd_committer freebsd_triage 2017-03-12 17:11:37 UTC
Committed with some changes, thanks!

o unwrap PORTDOCS
  If this stage is not expensive, it's better to unconditionally instal docs and let the package stage implement the option (if they are marked as %%PORTDOCS%%)

o remove stray blank lines from pkg-message

o add Creted by section to Makefiles

o cleaned up OPTIONS to match common descriptions
  It's better not to add a description for common options listed in bsd.options.desc.mk. I also switched from GPG to GNUPG option, as this one is more common

o remove explicit cat for pkg-message
  It's discouraged to explicitly cat this: pkg tool does this for you

Sorry this took so long!