ports/sysutils/debootstrap/files/patch-Makefile
2011-08-26 07:55:06 +00:00

26 lines
902 B
Text

--- Makefile.orig 2011-08-15 20:29:37.000000000 +0200
+++ Makefile 2011-08-25 19:19:09.951348991 +0200
@@ -13,17 +13,17 @@
rm -f devices.tar.gz
rm -rf dev
-DSDIR=$(DESTDIR)/usr/share/debootstrap
+DSDIR=$(PREFIX)/share/debootstrap
install:
mkdir -p $(DSDIR)/scripts
- mkdir -p $(DESTDIR)/usr/sbin
+ mkdir -p $(PREFIX)/sbin
cp -a scripts/* $(DSDIR)/scripts/
- install -o root -g root -m 0644 functions $(DSDIR)/
+ install -o root -g wheel -m 0644 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 >$(PREFIX)/sbin/debootstrap
+ chown root:wheel $(PREFIX)/sbin/debootstrap
+ chmod 0755 $(PREFIX)/sbin/debootstrap
ifeq ($(shell uname),Linux)
install -o root -g root -m 0644 devices.tar.gz $(DSDIR)/