You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
2.0 KiB

  1. #
  2. # Copyright (C) 2010 Gianluigi Tiesi <sherpya@netfarm.it>
  3. # Copyright (C) 2011-2013 OpenWrt.org
  4. #
  5. # This is free software, licensed under the GNU General Public License v2.
  6. # See /LICENSE for more information.
  7. #
  8. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=debootstrap
  10. PKG_VERSION:=1.0.60~bpo70+1
  11. PKG_RELEASE:=1
  12. PKG_MAINTAINER=Daniel Golle <daniel@makrotopia.org>
  13. PKG_SOURCE:=$(PKG_NAME)-udeb_$(PKG_VERSION)_all.udeb
  14. PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/d/debootstrap
  15. PKG_MD5SUM:=6d4e3b97981b9e0bb86f49d8edac91af
  16. UNPACK_CMD=ar -p "$(DL_DIR)/$(PKG_SOURCE)" data.tar.xz | xzcat | tar -C $(1) -xf -
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/debootstrap
  19. SECTION:=admin
  20. CATEGORY:=Administration
  21. TITLE:=Bootstrap a basic Debian system
  22. URL:=http://wiki.debian.org/Debootstrap
  23. DEPENDS:= +coreutils +coreutils-chroot +coreutils-sha1sum
  24. endef
  25. define Package/debootstrap/description
  26. debootstrap is used to create a Debian base system from scratch, without
  27. requiring the availability of dpkg or apt. It does this by downloading .deb
  28. files from a mirror site, and carefully unpacking them into a directory which
  29. can eventually be chrooted into.
  30. endef
  31. define Build/Compile
  32. # file pkgdetails.c was imported from debian package base-installer version 1.130
  33. $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) ./files/pkgdetails.c -o $(PKG_BUILD_DIR)/usr/share/debootstrap/pkgdetails
  34. endef
  35. define Package/debootstrap/install
  36. $(INSTALL_DIR) $(1)/usr/sbin
  37. $(INSTALL_BIN) $(PKG_BUILD_DIR)/usr/sbin/$(PKG_NAME) $(1)/usr/sbin
  38. $(INSTALL_DIR) $(1)/usr/share/debootstrap
  39. $(INSTALL_BIN) $(PKG_BUILD_DIR)/usr/share/debootstrap/pkgdetails $(1)/usr/share/debootstrap
  40. $(INSTALL_DATA) $(PKG_BUILD_DIR)/usr/share/debootstrap/functions $(1)/usr/share/debootstrap
  41. $(INSTALL_DATA) $(PKG_BUILD_DIR)/usr/share/debootstrap/devices.tar.gz $(1)/usr/share/debootstrap
  42. $(INSTALL_DIR) $(1)/usr/share/debootstrap/scripts
  43. $(INSTALL_DATA) $(PKG_BUILD_DIR)/usr/share/debootstrap/scripts/* $(1)/usr/share/debootstrap/scripts
  44. endef
  45. $(eval $(call BuildPackage,debootstrap))