Blob Blame History Raw
# --- T2-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# 
# T2 SDE: package/.../ifstat/destdir.patch
# Copyright (C) 2007 The T2 SDE Project
# 
# More information can be found in the files COPYING and README.
# 
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# --- T2-COPYRIGHT-NOTE-END ---

--- ifstat-1.1/Makefile.in.orig	2006-12-14 09:33:32.000000000 +0100
+++ ifstat-1.1/Makefile.in	2006-12-14 09:31:35.000000000 +0100
@@ -65,18 +65,18 @@
 install: install-$(TARGET) install-@LIBTARGET@
 
 install-$(TARGET): $(TARGET)
-	$(INSTALL) -d -m 755 $(bindir)
-	$(INSTALL) -s -m 755 $(TARGET) $(bindir)/$(TARGET)
-	$(INSTALL) -d -m 755 $(mandir)/man1
-	$(INSTALL) -m 644 ifstat.1 $(mandir)/man1/ifstat.1
+	$(INSTALL) -d -m 755 $(DESTDIR)$(bindir)
+	$(INSTALL) -p -m 755 $(TARGET) $(DESTDIR)$(bindir)/$(TARGET)
+	$(INSTALL) -d -m 755 $(DESTDIR)$(mandir)/man1
+	$(INSTALL) -p -m 644 ifstat.1 $(DESTDIR)$(mandir)/man1/ifstat.1
 
 install-$(LIBTARGET): $(LIBTARGET) libifstat-config
-	$(INSTALL) -d -m 755 $(bindir)
-	$(INSTALL) -m 755 libifstat-config $(bindir)/libifstat-config
-	$(INSTALL) -d -m 755 $(includedir)
-	$(INSTALL) -m 644 ifstat.h $(includedir)/ifstat.h
-	$(INSTALL) -d -m 755 $(libdir)
-	$(INSTALL) -m 644 $(LIBTARGET) $(libdir)/$(LIBTARGET)
+	$(INSTALL) -d -m 755 $(DESTDIR)$(bindir)
+	$(INSTALL) -p -m 755 libifstat-config $(DESTDIR)$(bindir)/libifstat-config
+	$(INSTALL) -d -m 755 $(DESTDIR)$(includedir)
+	$(INSTALL) -p -m 644 ifstat.h $(DESTDIR)$(includedir)/ifstat.h
+	$(INSTALL) -d -m 755 $(DESTDIR)$(libdir)
+	$(INSTALL) -p -m 644 $(LIBTARGET) $(DESTDIR)$(libdir)/$(LIBTARGET)
 
 install-: # dependency when not building library