Sophie

Sophie

distrib > Mandriva > 2007.0 > i586 > by-pkgid > 039e847f7ab2c631f914732591e6af12 > files > 3

honeyd-1.5a-3mdk.src.rpm

--- Makefile.am	2006-03-19 14:40:47.000000000 +0100
+++ Makefile.am.oden	2006-03-19 14:41:31.000000000 +0100
@@ -215,10 +215,11 @@
 	honeyd_overload.c pyextend.c pyextend.h
 
 install-data-local:
+	mkdir -p $(DESTDIR)$(honeyddatadir)
 	(cd $(top_srcdir) && tar -cf - $(top_srcdir)/webserver) | \
-	(cd $(honeyddatadir) && tar -xf -)
-	find $(honeyddatadir)/webserver -type f | xargs chmod a+r
-	find $(honeyddatadir)/webserver -type d | xargs chmod a+xr
+	(cd $(DESTDIR)$(honeyddatadir) && tar -xf -)
+	find $(DESTDIR)$(honeyddatadir)/webserver -type f | xargs chmod a+r
+	find $(DESTDIR)$(honeyddatadir)/webserver -type d | xargs chmod a+xr
 
 CLEANFILES = *.so
 DISTCLEANFILES = *~