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
Fix: Without this patch, this port will not uninstall correctly and will generate
tons of errors about missing files.
@unexec if cmp -s %D/%%PORTNAME%%/etc/ossec.conf %D/%%PORTNAME%%/etc/ossec.conf.sample; then rm -f %D/%%PORTNAME%%/etc/ossec.conf; fi
--- pkg-plist.client ends here -----py7mxkD2LpGNeXrzFJaRqIw8COHlWVThg9f7Fnwuqld5dAtE
Content-Type: text/plain; name="patch-Makefile"
Content-Disposition: attachment; filename="patch-Makefile"
--- Makefile.orig Sat Jun 2 01:29:58 2007
+++ Makefile Sat Jun 2 01:24:25 2007
@@ -9,4 +9,6 @@
Awaiting maintainers feedback
I'll take it.
miwi 2007-06-09 10:42:37 UTC
FreeBSD ports repository
- Add pkg-plist.client
- Bump PORTREVISION
Submitted by: Paul Schmehl <firstname.lastname@example.org>
Approved by: maintainer
Revision Changes Path
1.2 +2 -0 ports/security/ossec-hids-client/Makefile
1.1 +34 -0 ports/security/ossec-hids-client/pkg-plist.client (new)
email@example.com mailing list
To unsubscribe, send any mail to "firstname.lastname@example.org"
Thanks for you good works. Committed.