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.

83 lines
2.3 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=schroot
  3. PKG_VERSION:=1.6.10
  4. PKG_RELEASE:=2
  5. PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.xz
  6. PKG_SOURCE_URL:=http://deb.debian.org/debian/pool/main/s/schroot
  7. PKG_HASH:=3ce8dfd9cb97b099e4b6d4ccec421d6cc8c9ef84574681e928a12badb5643d0b
  8. PKG_MAINTAINER:=Javier Marcet <javier@marcet.info>
  9. PKG_LICENSE:=GPL-3.0-only
  10. PKG_LICENSE_FILES:=COPYING
  11. PKG_INSTALL:=1
  12. PKG_BUILD_PARALLEL:=1
  13. PKG_FIXUP:=autoreconf
  14. include $(INCLUDE_DIR)/nls.mk
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/schroot
  17. SECTION:=admin
  18. CATEGORY:=Administration
  19. TITLE:=Securely enter a chroot and run a command or login shell.
  20. DEPENDS:=$(ICONV_DEPENDS) \
  21. +boost +boost-filesystem +boost-iostreams +boost-program_options +boost-regex \
  22. +SCHROOT_BTRFS:btrfs-progs \
  23. +SCHROOT_LOOPBACK:losetup \
  24. +SCHROOT_LVM:lvm2 \
  25. +SCHROOT_UUID:libuuid \
  26. $(INTL_DEPENDS)
  27. URL:=https://salsa.debian.org/debian/schroot
  28. endef
  29. define Package/schroot/description
  30. Securely enter a chroot and run a command or login shell.
  31. endef
  32. define Package/sudo/conffiles
  33. /etc/schroot/
  34. endef
  35. define Package/schroot/config
  36. source "$(SOURCE)/Config.in"
  37. endef
  38. PKG_CONFIG_DEPENDS := \
  39. CONFIG_SCHROOT_BTRFS \
  40. CONFIG_SCHROOT_LOOPBACK \
  41. CONFIG_SCHROOT_LVM \
  42. CONFIG_SCHROOT_UUID
  43. CONFIGURE_ARGS += \
  44. $(if $(CONFIG_SCHROOT_BTRFS),--enable,--disable)-btrfs-snapshot \
  45. $(if $(CONFIG_SCHROOT_LOOPBACK),--enable,--disable)-loopback \
  46. $(if $(CONFIG_SCHROOT_LVM),--enable,--disable)-lvm-snapshot \
  47. $(if $(CONFIG_SCHROOT_UUID),--enable,--disable)-uuid \
  48. --enable-block-device \
  49. --enable-union \
  50. --disable-dchroot \
  51. --disable-dchroot-dsa \
  52. --disable-csbuild \
  53. --disable-debug \
  54. --disable-pam \
  55. --disable-doxygen \
  56. --disable-rpath
  57. define Package/schroot/install
  58. $(INSTALL_DIR) $(1)/usr/bin
  59. $(INSTALL_SUID) $(PKG_INSTALL_DIR)/usr/bin/schroot $(1)/usr/bin/
  60. $(INSTALL_DIR) $(1)/etc/schroot
  61. $(CP) -R $(PKG_INSTALL_DIR)/etc/schroot/* $(1)/etc/schroot
  62. $(INSTALL_DIR) $(1)/usr/lib/schroot
  63. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libsbuild.* $(1)/usr/lib/
  64. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/schroot/* $(1)/usr/lib/schroot/
  65. $(INSTALL_DIR) $(1)/usr/share/schroot
  66. $(CP) -R $(PKG_INSTALL_DIR)/usr/share/schroot/* $(1)/usr/share/schroot/
  67. $(INSTALL_DIR) $(1)/etc/init.d
  68. $(INSTALL_BIN) ./files/schroot.init $(1)/etc/init.d/schroot
  69. endef
  70. $(eval $(call BuildPackage,schroot))