ports/113260: security/ossec-hids-client

Paul Schmehl pauls at utdallas.edu
Sat Jun 2 17:40:04 UTC 2007

>Number:         113260
>Category:       ports
>Synopsis:       security/ossec-hids-client
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 02 17:40:03 GMT 2007
>Originator:     Paul Schmehl
>Release:        FreeBSD 6.0-SECURITY i386
The University of Texas at Dallas
System: FreeBSD hostname.utdallas.edu 6.0-SECURITY FreeBSD 6.0-SECURITY #0: Wed Feb 14 12:22:36 UTC 2007 root at builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386

	The pkg-plist for this port was placed in the master port and called
	from the master port Makefile, so it didn't work.  This PR patches the
	Makefile to call the pkg-plist correctly and adds a corrected pkg-plist
	which is added to this port.  The pkg-plist was corrected to use
	@dirrmtry instead of @dirrm, because if the daemons have been started
	once, new directories and files are added to the ossec-hids directory
	structure that the port can't possibly know about in advance.  Additional
	file removals were added to properly remove all the installed files if the
	port has never been used.

	PLEASE NOTE: I have not tested this port with the related server port,
	because I don't have the equipment to do that.  On its own, the port 
	generates errors when you try to start the daemons.  Those may be related
	to the need for a running server and proper configuration of the port, but
	I did not test that.  This PR simply ensures that the port will install and
	deinstall correctly.

	Without this patch, this port will not uninstall correctly and will generate
	tons of errors about missing files.

--- patch-Makefile begins here ---
--- Makefile.orig	Sat Jun  2 01:29:58 2007
+++ Makefile	Sat Jun  2 01:24:25 2007
@@ -9,4 +9,6 @@
 MASTERDIR=	${.CURDIR}/../ossec-hids-server
+PLIST=	pkg-plist.client
 .include "${MASTERDIR}/Makefile"
--- patch-Makefile ends here ---

--- pkg-plist.client begins here ---
@unexec if cmp -s %D/%%PORTNAME%%/etc/ossec.conf %D/%%PORTNAME%%/etc/ossec.conf.sample; then rm -f %D/%%PORTNAME%%/etc/ossec.conf; fi
@dirrmtry %%PORTNAME%%/active-response/bin/firewalls
@dirrmtry %%PORTNAME%%/active-response/bin
@dirrmtry %%PORTNAME%%/active-response
@dirrmtry %%PORTNAME%%/etc/shared
@dirrmtry %%PORTNAME%%/etc/
@dirrmtry %%PORTNAME%%/var/run
@dirrmtry %%PORTNAME%%/var
@dirrmtry %%PORTNAME%%/queue/syscheck
@dirrmtry %%PORTNAME%%/queue/rids
@dirrmtry %%PORTNAME%%/queue/ossec
@dirrmtry %%PORTNAME%%/queue/alerts
@dirrmtry %%PORTNAME%%/queue
@dirrmtry %%PORTNAME%%/logs
@dirrmtry %%PORTNAME%%/bin
@dirrmtry %%PORTNAME%%
--- pkg-plist.client ends here ---


More information about the freebsd-ports-bugs mailing list