buildrootschalter/package/fakeroot/fakeroot.mk
Hector Oron 308bc53791 fakeroot: fix download URL
Closes #3451

The Debian package snapshot service moved to an official debian.org
address last year (http://www.debian.org/News/2010/20100412) with a
slightly different URL structure, so adjust the download URL to match.

Signed-off-by: Hector Oron <hector.oron@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2011-03-13 21:31:34 +01:00

29 lines
914 B
Makefile

#############################################################
#
# fakeroot
#
#############################################################
FAKEROOT_VERSION:=1.9.5
FAKEROOT_SOURCE:=fakeroot_$(FAKEROOT_VERSION).tar.gz
FAKEROOT_SITE:=http://snapshot.debian.org/archive/debian/20080427T000000Z/pool/main/f/fakeroot/
define FAKEROOT_PATCH_FAKEROOT_IN
# If using busybox getopt, make it be quiet.
$(SED) "s,getopt --version,getopt --version 2>/dev/null," \
$(@D)/scripts/fakeroot.in
endef
FAKEROOT_POST_PATCH_HOOKS += FAKEROOT_PATCH_FAKEROOT_IN
define FAKEROOT_RENAME_TARGET_BINARIES
-mv $(TARGET_DIR)/usr/bin/$(ARCH)-*-faked \
$(TARGET_DIR)/usr/bin/faked
-mv $(TARGET_DIR)/usr/bin/$(ARCH)-*-fakeroot \
$(TARGET_DIR)/usr/bin/fakeroot
endef
FAKEROOT_POST_INSTALL_TARGET_HOOKS += FAKEROOT_RENAME_TARGET_BINARIES
$(eval $(call AUTOTARGETS,package,fakeroot))
$(eval $(call AUTOTARGETS,package,fakeroot,host))