Changeset View
Changeset View
Standalone View
Standalone View
sysutils/debootstrap/files/patch-Makefile
--- Makefile.orig 2022-07-13 22:17:17 UTC | --- Makefile.orig 2022-07-13 22:17:17 UTC | ||||
+++ Makefile | +++ Makefile | ||||
@@ -5,14 +5,13 @@ clean: | @@ -5,14 +5,13 @@ clean: | ||||
clean: | clean: | ||||
-DSDIR=$(DESTDIR)/usr/share/debootstrap | -DSDIR=$(DESTDIR)/usr/share/debootstrap | ||||
+DSDIR=$(DESTDIR)/usr/local/share/debootstrap | +DSDIR=$(DESTDIR)$(PREFIX)/share/debootstrap | ||||
install: | install: | ||||
mkdir -p $(DSDIR)/scripts | mkdir -p $(DSDIR)/scripts | ||||
- mkdir -p $(DESTDIR)/usr/sbin | - mkdir -p $(DESTDIR)/usr/sbin | ||||
+ mkdir -p $(DESTDIR)/usr/local/sbin | + mkdir -p $(DESTDIR)$(PREFIX)/sbin | ||||
cp -a scripts/* $(DSDIR)/scripts/ | cp -a scripts/* $(DSDIR)/scripts/ | ||||
- install -o root -g root -m 0644 functions $(DSDIR)/ | - install -o root -g root -m 0644 functions $(DSDIR)/ | ||||
+ cp -a functions $(DSDIR)/ | + cp -a functions $(DSDIR)/ | ||||
- sed 's/@VERSION@/$(VERSION)/g' debootstrap >$(DESTDIR)/usr/sbin/debootstrap | - sed 's/@VERSION@/$(VERSION)/g' debootstrap >$(DESTDIR)/usr/sbin/debootstrap | ||||
- chown root:root $(DESTDIR)/usr/sbin/debootstrap | - chown root:root $(DESTDIR)/usr/sbin/debootstrap | ||||
- chmod 0755 $(DESTDIR)/usr/sbin/debootstrap | - chmod 0755 $(DESTDIR)/usr/sbin/debootstrap | ||||
+ sed 's/@VERSION@/$(VERSION)/g' debootstrap >$(DESTDIR)/usr/local/sbin/debootstrap | + sed 's/@VERSION@/$(VERSION)/g' debootstrap >$(DESTDIR)$(PREFIX)/sbin/debootstrap | ||||
+ chmod 0755 $(DESTDIR)/usr/local/sbin/debootstrap | + chmod 0755 $(DESTDIR)$(PREFIX)/sbin/debootstrap |