opnsense-ports/sysutils/debootstrap/files/patch-Makefile
Franco Fichtner b03e350973 */*: sync with upstream
Taken from: FreeBSD
2015-08-11 08:21:00 +02:00

24 lines
764 B
Text

--- Makefile.orig 2015-05-19 09:35:39 UTC
+++ Makefile
@@ -14,17 +14,15 @@ clean:
rm -f devices.tar.gz
rm -rf dev
-DSDIR=$(DESTDIR)/usr/share/debootstrap
+DSDIR=$(DESTDIR)%%DATADIR%%
install:
mkdir -p $(DSDIR)/scripts
- mkdir -p $(DESTDIR)/usr/sbin
+ mkdir -p $(DESTDIR)%%PREFIX%%/sbin
cp -a scripts/* $(DSDIR)/scripts/
- install -o root -g root -m 0644 functions $(DSDIR)/
+ cp -a functions $(DSDIR)/
- sed 's/@VERSION@/$(VERSION)/g' debootstrap >$(DESTDIR)/usr/sbin/debootstrap
- chown root:root $(DESTDIR)/usr/sbin/debootstrap
- chmod 0755 $(DESTDIR)/usr/sbin/debootstrap
+ sed 's/@VERSION@/$(VERSION)/g' debootstrap >$(DESTDIR)%%PREFIX%%/sbin/debootstrap
ifeq ($(shell uname),Linux)
install -o root -g root -m 0644 devices.tar.gz $(DSDIR)/