opnsense-ports/sysutils/debootstrap/files/patch-Makefile
Franco Fichtner 33e98a2a58 */*: sync with upstream
Taken from: FreeBSD
2016-09-16 14:21:20 +02:00

21 lines
644 B
Text

--- Makefile.orig 2016-09-09 12:30:20 UTC
+++ Makefile
@@ -6,14 +6,12 @@ all:
clean:
-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