Index: trunk/Makefile.in
===================================================================
--- trunk/Makefile.in	(revision 413)
+++ trunk/Makefile.in	(revision 414)
@@ -613,8 +613,15 @@
 	fi
 	@if test -d /etc/logrotate.d; then \
-		if test ! -f /etc/logrotate.d/@install_name@; then \
-			cp $(srcdir)/scripts/logrotate /etc/logrotate.d/@install_name@; \
+		if test ! -d $(DESTDIR)/etc/logrotate.d; then \
+			$(mkinstalldirs) $(DESTDIR)/etc/logrotate.d; \
+		fi; \
+		if test ! -f $(DESTDIR)/etc/logrotate.d/@install_name@; then \
+			if test -w $(DESTDIR)/etc/logrotate.d; then \
+				cp $(srcdir)/scripts/logrotate $(DESTDIR)/etc/logrotate.d/@install_name@; \
+			else \
+				echo "$(DESTDIR)/etc/logrotate.d not writable"; \
+			fi; \
 		else \
-			echo "/etc/logrotate.d/@install_name@ exists, not overwriting"; \
+			echo "$(DESTDIR)/etc/logrotate.d/@install_name@ exists, not overwriting"; \
 		fi; \
 	fi
@@ -1640,5 +1647,5 @@
 samhain.startIRIX samhain.startMACOSX
 
-SCRIPTFILES=redhat_i386.client.spec check_samhain.pl samhainadmin.pl logrotate \
+SCRIPTFILES=redhat_i386.client.spec check_samhain.pl samhainadmin.pl \
 yuleadmin.pl samhain.ebuild samhain.ebuild-light samhain.spec
 
Index: trunk/docs/Changelog
===================================================================
--- trunk/docs/Changelog	(revision 413)
+++ trunk/docs/Changelog	(revision 414)
@@ -1,3 +1,5 @@
 3.0.6:
+	* install logrotate script if /etc/logrotate.d is detected
+	* new option --enable-suid for nagios
 	* fix for --enable-ptrace: make the save_tv variable thread specific
 	* fix bug in inotify code which made it follow symlinks (by [anonymous])
