Files
ports/sysutils/debootstrap/files/patch-Makefile
T
Felix Palmen 2bf4a73e61 sysutils/debootstrap: Update to 1.0.128-2
For a debian-native package, a +nmuX version should be considered a new
upstream version (it just means "non mantainer upload" there). Derive
some PORTVERSION from that that's sane for our versioning.

While here, eliminate hardcoded /usr/local from Makefile patch.

Approved by:		nc (maintainer), tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D38670
2023-02-24 07:50:47 +01:00

23 lines
710 B
Plaintext

--- Makefile.orig 2022-07-13 22:17:17 UTC
+++ Makefile
@@ -5,14 +5,13 @@ clean:
clean:
-DSDIR=$(DESTDIR)/usr/share/debootstrap
+DSDIR=$(DESTDIR)$(PREFIX)/share/debootstrap
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
+ chmod 0755 $(DESTDIR)$(PREFIX)/sbin/debootstrap