summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2016-09-06 13:33:53 (GMT)
committerSteve McIntyre <steve@einval.com>2016-09-06 13:33:53 (GMT)
commit26ae52971b21e14c6c81af3b8aa0211bc3553dd2 (patch)
tree0bb4987a34f65e8a452a097d24792bbe083a606c /Makefile
parent9043947bfcb14c55c771276069f76f0735f2c999 (diff)
downloaddebootstrap-26ae52971b21e14c6c81af3b8aa0211bc3553dd2.zip
debootstrap-26ae52971b21e14c6c81af3b8aa0211bc3553dd2.tar.gz
debootstrap-26ae52971b21e14c6c81af3b8aa0211bc3553dd2.tar.bz2
Excise all devices.tar.gz code
Since bug #571136 was fixed the --second-stage doesn't even use the devices tarball so we can remove all its related cruft. The README has been updated to show when real root access is required and give an example of a foreign debootstrap which works with fakeroot.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 0 insertions, 25 deletions
diff --git a/Makefile b/Makefile
index 1020cbc..55f229d 100644
--- a/Makefile
+++ b/Makefile
@@ -2,17 +2,9 @@
VERSION := $(shell sed 's/.*(\(.*\)).*/\1/; q' debian/changelog)
DATE := $(shell sed -n '/^ -- /{s/.*> \(.*\)/\1/p;q;}' debian/changelog)
-MAKEDEV ?= /sbin/MAKEDEV
-
-ifeq ($(shell uname),Linux)
-all: devices.tar.gz
-else
all:
-endif
clean:
- rm -f devices.tar.gz
- rm -rf dev
DSDIR=$(DESTDIR)/usr/share/debootstrap
install:
@@ -25,20 +17,3 @@ install:
sed 's/@VERSION@/$(VERSION)/g' debootstrap >$(DESTDIR)/usr/sbin/debootstrap
chown root:root $(DESTDIR)/usr/sbin/debootstrap
chmod 0755 $(DESTDIR)/usr/sbin/debootstrap
-
-ifeq ($(shell uname),Linux)
- install -o root -g root -m 0644 devices.tar.gz $(DSDIR)/
-endif
-
-devices.tar.gz:
- rm -rf dev
- mkdir -p dev
- chown 0:0 dev
- chmod 755 dev
- (cd dev && $(MAKEDEV) std ptmx fd consoleonly)
- tar --mtime="$(DATE)" -cf - dev | gzip -9n >devices.tar.gz
- @if [ "$$(tar tvf devices.tar.gz | wc -l)" -lt 2 ]; then \
- echo " ** devices.tar.gz is empty!" >&2; \
- exit 1; \
- fi
- rm -rf dev