summaryrefslogtreecommitdiff
path: root/system/rkhunter/install_path_fix.diff
blob: 88ba0d3f01eb03e089b11e4f767d019f21b54682 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff -Nur rkhunter-1.3.4.orig/installer.sh rkhunter-1.3.4/installer.sh
--- rkhunter-1.3.4.orig/installer.sh	2008-12-30 15:23:00.000000000 -0600
+++ rkhunter-1.3.4/installer.sh	2009-07-14 00:36:40.755149686 -0500
@@ -171,7 +171,7 @@
 				esac
 				;;
 			RPM)	if [ -n "${RPM_BUILD_ROOT}" ]; then
-					PREFIX="${RPM_BUILD_ROOT}/usr/local"
+					PREFIX="${RPM_BUILD_ROOT}/usr"
 				else
 					echo "RPM prefix chosen but \$RPM_BUILD_ROOT variable not found, exiting."
 					exit 1
@@ -227,7 +227,7 @@
 					LIBDIR="${PREFIX}/lib"
 				fi
 				VARDIR="${RPM_BUILD_ROOT}/var"
-				SHAREDIR="${PREFIX}/share"; BINDIR="${PREFIX}/bin"
+				SHAREDIR="${PREFIX}"; BINDIR="${PREFIX}/bin"
 				;;
 			DEB)
 				LIBDIR="${PREFIX}/lib"