--- src/Makefile.in.org	2006-03-09 13:20:55.000000000 -0800
+++ src/Makefile.in	2006-03-09 13:21:32.000000000 -0800
@@ -735,8 +735,8 @@
 
 
 install-exec-hook:
-	mkdir -p $(prefix)/var/scripturechecks
-	chmod 777 $(prefix)/var/scripturechecks
+	mkdir -p $(DESTDIR)$(prefix)/var/scripturechecks
+	chmod 777 $(DESTDIR)$(prefix)/var/scripturechecks
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.
 .NOEXPORT:
