Bug 90305 - Update: security/samhain 2.0.10 -> 2.1.0
Summary: Update: security/samhain 2.0.10 -> 2.1.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Sam Lawrance
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-12 20:10 UTC by David Thiel
Modified: 2006-04-09 06:04 UTC (History)
0 users

See Also:


Attachments
file.shar (10.06 KB, text/plain)
2005-12-12 20:10 UTC, David Thiel
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Thiel 2005-12-12 20:10:02 UTC
Updating the Samhain integrity checking system to 2.1.0, a bugfix
release.

It's been requested by several people to break Samhain out into separate
client and server ports. This PR does that, with a samhain-client and
samhain-server port, as slave ports off of samhain. I'm not sure the
best way to submit a PR to do this kind of action, but here is a shar
of all three ports. If another format is desired, please let me know.
I'm also interested in feedback on the approach used for splitting
these out.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2005-12-12 20:35:08 UTC
State Changed
From-To: open->feedback

Can you please submit it as a unified diff? (diff -u)
Comment 2 David Thiel 2005-12-12 22:59:25 UTC
Ok, here is the diff for the update:

diff -ruN samhain.old/Makefile samhain/Makefile
--- samhain.old/Makefile	Mon Oct 31 13:28:04 2005
+++ samhain/Makefile	Mon Oct 31 15:58:00 2005
@@ -3,23 +3,9 @@
 # Whom:					lx
 #
 # $FreeBSD: ports/security/samhain/Makefile,v 1.30 2005/09/22 07:15:29 vsevolod Exp $
-#
-#
-# This port recognizes the following non-boolean tunables:
-#
-# WITH_RUNAS_USER:
-#	Whe building with "WITH_SERVER" defined, the username of the
-#	account Yule will run as. Defaults to "yule". If using
-#	WITH_GPG, ensure that this user exists and has a pgp
-#	keypair before installing.
-#
-# WITH_LOG_SERVER, WITH_ALT_LOG_SERVER. When "WITH_CLIENT" is defined,
-#	these specify what server the client will fetch configuration
-#	and database files from. This can also be defined at runtime.
-#
 
 PORTNAME=	samhain
-PORTVERSION=	2.0.10
+PORTVERSION=	2.1.0
 CATEGORIES=	security
 MASTER_SITES=	http://la-samhna.de/archive/ \
 		http://cold.darkambient.net/
@@ -33,12 +19,12 @@
 		MYSQL "Enable MySQL logging" off \
 		POSTGRESQL "Enable PostgreSQL logging" off \
 		XML_LOGS "Enable XML-formatted logs" on \
-		LIBWRAP "Enable TCP wrapper support" on \
-		CLIENT "Build as Samhain network client" off \
-		SERVER "Build as Yule network server" off
+		LIBWRAP "Enable TCP wrapper support" on
 
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
 
+CONFLICTS=	samhain-client-2*
+
 .include <bsd.port.pre.mk>
 
 .if defined(WITH_GPG)
@@ -105,10 +91,10 @@
 
 .if !defined(WITH_CLIENT) && !defined(WITH_SERVER)
 	@${ECHO_MSG}
-	@${ECHO_MSG} "Building in standalone mode."
+	@${ECHO_MSG} "Building Samhain in standalone mode."
 	@${ECHO_MSG} "If you wish to enable networked mode, please hit CTRL-C"
-	@${ECHO_MSG} "now, review the options in the Makefile, and make"
-	@${ECHO_MSG} "with WITH_SERVER=yes or WITH_CLIENT=yes."
+	@${ECHO_MSG} "now, and build samhain from the samhain-client and"
+	@${ECHO_MSG} "samhain-server ports."
 	@${ECHO_MSG}
 .endif
 
diff -ruN samhain.old/distinfo samhain/distinfo
--- samhain.old/distinfo	Mon Oct 31 13:28:04 2005
+++ samhain/distinfo	Mon Oct 31 13:33:41 2005
@@ -1,2 +1,2 @@
-MD5 (samhain_signed-2.0.10.tar.gz) = 30fa821fdeb674b57aa7db0b66ed3af2
-SIZE (samhain_signed-2.0.10.tar.gz) = 1298443
+MD5 (samhain_signed-2.1.0.tar.gz) = 295eae6715c9c3e6af3dcafad52f761e
+SIZE (samhain_signed-2.1.0.tar.gz) = 1312114

--- end diff ---

Here is the shar for the two new slave ports:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	samhain-client
#	samhain-client/Makefile
#	samhain-server
#	samhain-server/Makefile
#
echo c - samhain-client
mkdir -p samhain-client > /dev/null 2>&1
echo x - samhain-client/Makefile
sed 's/^X//' >samhain-client/Makefile << 'END-of-samhain-client/Makefile'
X# New ports collection makefile for:	samhain-client
X# Date created:				2005-10-31
X# Whom:					David Thiel
X#
X# $FreeBSD$
X#
X#
X# This port recognizes the following non-boolean tunables:
X#
X# WITH_LOG_SERVER, WITH_ALT_LOG_SERVER. When "WITH_CLIENT" is defined,
X#       these specify what server the client will fetch configuration
X#       and database files from. This can also be defined at runtime.
X#
X
XPKGNAMESUFFIX=		-client
X
XCOMMENT=		Client daemon for the Samhain IDS
X
XWITH_CLIENT=	yes
XNOPORTDOCS=	yes
X
XMASTERDIR=		${.CURDIR}/../samhain
X
XCONFLICTS=	samhain-2*
X
X.include "${MASTERDIR}/Makefile"
END-of-samhain-client/Makefile
echo c - samhain-server
mkdir -p samhain-server > /dev/null 2>&1
echo x - samhain-server/Makefile
sed 's/^X//' >samhain-server/Makefile << 'END-of-samhain-server/Makefile'
X# New ports collection makefile for:	samhain-server
X# Date created:				2005-10-31
X# Whom:					David Thiel
X#
X# $FreeBSD$
X#
X
X# This port recognizes the following non-boolean tunables:
X#
X# WITH_RUNAS_USER:
X#       Whe building with "WITH_SERVER" defined, the username of the
X#       account Yule will run as. Defaults to "yule". If using
X#       WITH_GPG, ensure that this user exists and has a pgp
X#       keypair before installing.
X
X
XPKGNAMESUFFIX=		-server
X
XCOMMENT=		Log server for the Samhain IDS
X
XWITH_SERVER=	yes
X
XMASTERDIR=		${.CURDIR}/../samhain
X
X.include "${MASTERDIR}/Makefile"
END-of-samhain-server/Makefile
exit
Comment 3 Sam Lawrance freebsd_committer freebsd_triage 2005-12-16 00:11:40 UTC
State Changed
From-To: feedback->open

Unidiff received.
Comment 4 Sam Lawrance freebsd_committer freebsd_triage 2005-12-16 06:23:48 UTC
Responsible Changed
From-To: freebsd-ports-bugs->lawrance

I'm on it
Comment 5 Sam Lawrance freebsd_committer freebsd_triage 2005-12-18 11:27:37 UTC
State Changed
From-To: open->feedback

Awaiting pkg-plist fix.
Comment 6 Sam Lawrance freebsd_committer freebsd_triage 2006-01-04 11:53:51 UTC
State Changed
From-To: feedback->feedback

Any progress on this PR?
Comment 7 Edwin Groothuis freebsd_committer freebsd_triage 2006-01-07 07:56:53 UTC
State Changed
From-To: feedback->closed

Committed, thanks!
Comment 8 Sam Lawrance freebsd_committer freebsd_triage 2006-01-07 08:42:26 UTC
State Changed
From-To: closed->feedback

Still awaiting fixes for uid/gid-related problems: 

gis2# ls -al /usr/local/etc/yulerc.sample 
-rw-------  1 root  100  8283 Jan  7 19:34 /usr/local/etc/yulerc.sample 

gis2# /usr/local/sbin/yule -D 

---------   sh_unix.c  ---    983 --------- 

User yule does not exist. Please add the user to your system. 

---------------------------------------------- 


---------   sh_unix.c  ---    983 --------- 

User yule does not exist. Please add the user to your system. 

----------------------------------------------
Comment 9 Sam Lawrance freebsd_committer freebsd_triage 2006-04-09 06:03:53 UTC
State Changed
From-To: feedback->closed

Patch committed to add "yule" user pre-install when yule is being 
installed.