Skip site navigation (1)Skip section navigation (2)
Date:      7 Feb 2005 17:49:12 -0000
From:      David Thiel <lx@redundancy.redundancy.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/77221: Bugfix: security/osiris scan agent only fix
Message-ID:  <20050207174912.36308.qmail@redundancy.redundancy.org>
Resent-Message-ID: <200502071750.j17HoR3V011718@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         77221
>Category:       ports
>Synopsis:       Bugfix: security/osiris scan agent only fix
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 07 17:50:26 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     David Thiel
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD redundancy.redundancy.org 5.3-STABLE FreeBSD 5.3-STABLE #0: Sun Jan 9 21:41:16 PST 2005 root@redundancy.redundancy.org:/usr/obj/usr/src/sys/REDUNDANCY i386


>Description:

There was a bug in the 4.1.1 port that caused osirisd not to start
if built without osirismd because of the lack of a /usr/local/osiris
directory. This is now created no matter what options are set.

>How-To-Repeat:
>Fix:

diff -ruN osiris/Makefile osiris.new/Makefile
--- osiris/Makefile	Mon Feb  7 09:13:28 2005
+++ osiris.new/Makefile	Mon Feb  7 09:41:51 2005
@@ -7,6 +7,7 @@
 
 PORTNAME=	osiris
 PORTVERSION=	4.1.1
+PORTREVISION=	1
 CATEGORIES=	security
 MASTER_SITES=	http://osiris.shmoo.com/data/
 
@@ -41,6 +42,7 @@
 
 do-install:
 	${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
+	@${MKDIR} ${PREFIX}/osiris
 .if defined(WITH_CLI)
 	${INSTALL_PROGRAM} ${WRKSRC}/src/cli/osiris ${PREFIX}/sbin
 .endif
@@ -63,11 +65,11 @@
 	${INSTALL_DATA} ${WRKSRC}/src/configs/default.${os} \
 		${PREFIX}/osiris/configs
 .endfor
-	${CHOWN} -R osiris:osiris ${PREFIX}/osiris
 	${INSTALL_PROGRAM} -m 4755 -o osiris -g osiris \
 		${WRKSRC}/src/osirismd/osirismd ${PREFIX}/sbin
 	${INSTALL_SCRIPT} ${WRKSRC}/src/install/freebsd/osirismd.sh.sample \
 		${PREFIX}/etc/rc.d
 .endif
+	${CHOWN} -R osiris:osiris ${PREFIX}/osiris
 
 .include <bsd.port.post.mk>
diff -ruN osiris/pkg-plist osiris.new/pkg-plist
--- osiris/pkg-plist	Mon Feb  7 09:13:28 2005
+++ osiris.new/pkg-plist	Mon Feb  7 09:32:50 2005
@@ -20,4 +20,4 @@
 %%OSIRISMD%%osiris/configs/default.windowsxp
 %%OSIRISMD%%osiris/configs/default.wrt54g
 %%OSIRISMD%%@dirrm osiris/configs
-%%OSIRISMD%%@dirrm osiris
+@dirrm osiris

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050207174912.36308.qmail>