Index: /trunk/Makefile.in
===================================================================
--- /trunk/Makefile.in	(revision 527)
+++ /trunk/Makefile.in	(revision 528)
@@ -923,7 +923,7 @@
 	rpmbuild -ta ./$(PACKAGE)-$(VERSION).tar.gz; 
 	@RPMTOP=`cat ~/.rpmmacros 2>/dev/null | grep '%_topdir' | awk '{ print $$2}'`; \
-	if test x"$$RPMTOP" = x; then RPMTOP=/usr/src; fi; \
+	if test x"$$RPMTOP" = x; then RPMTOP=`echo $$HOME/rpmbuild`; fi; \
 	if ! test -d "$$RPMTOP"; then \
-	  RPMTOP=`echo $$HOME/rpmbuild`; \
+	  RPMTOP=/usr/src; \
 	fi; \
 	echo "Searching the RPM package below $$RPMTOP ..."; \
@@ -943,7 +943,7 @@
 	rpmbuild -ta ./$(PACKAGE)-$(VERSION).tar.gz; 
 	@RPMTOP=`cat ~/.rpmmacros 2>/dev/null | grep '%_topdir' | awk '{ print $$2}'`; \
-	if test x"$$RPMTOP" = x; then RPMTOP=/usr/src; fi; \
+	if test x"$$RPMTOP" = x; then RPMTOP=`echo $$HOME/rpmbuild`; fi; \
 	if ! test -d "$$RPMTOP"; then \
-	  RPMTOP=`echo $$HOME/rpmbuild`; \
+	  RPMTOP=/usr/src; \
 	fi; \
 	echo "Searching the RPM package below $$RPMTOP ..."; \
Index: /trunk/configure.ac
===================================================================
--- /trunk/configure.ac	(revision 527)
+++ /trunk/configure.ac	(revision 528)
@@ -12,5 +12,5 @@
 dnl start
 dnl
-AM_INIT_AUTOMAKE(samhain, 4.2.2)
+AM_INIT_AUTOMAKE(samhain, 4.2.3)
 AC_DEFINE([SAMHAIN], 1, [Application is samhain])
 AC_CANONICAL_HOST
Index: /trunk/docs/Changelog
===================================================================
--- /trunk/docs/Changelog	(revision 527)
+++ /trunk/docs/Changelog	(revision 528)
@@ -1,2 +1,6 @@
+4.2.3:
+	* fix order of search directories for 'make rpm' (issue reported by
+	Z. Drableg)
+
 4.2.2:
 	* fix bug with PortCheckSkip: for any given port, only first interface
