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.

82 lines
2.3 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=schroot
  3. PKG_VERSION:=1.6.10
  4. PKG_RELEASE:=1
  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. URL:=https://salsa.debian.org/debian/schroot
  27. endef
  28. define Package/schroot/description
  29. Securely enter a chroot and run a command or login shell.
  30. endef
  31. define Package/sudo/conffiles
  32. /etc/schroot/
  33. endef
  34. define Package/schroot/config
  35. source "$(SOURCE)/Config.in"
  36. endef
  37. PKG_CONFIG_DEPENDS := \
  38. CONFIG_SCHROOT_BTRFS \
  39. CONFIG_SCHROOT_LOOPBACK \
  40. CONFIG_SCHROOT_LVM \
  41. CONFIG_SCHROOT_UUID
  42. CONFIGURE_ARGS += \
  43. $(if $(CONFIG_SCHROOT_BTRFS),--enable,--disable)-btrfs-snapshot \
  44. $(if $(CONFIG_SCHROOT_LOOPBACK),--enable,--disable)-loopback \
  45. $(if $(CONFIG_SCHROOT_LVM),--enable,--disable)-lvm-snapshot \
  46. $(if $(CONFIG_SCHROOT_UUID),--enable,--disable)-uuid \
  47. --enable-block-device \
  48. --enable-union \
  49. --disable-dchroot \
  50. --disable-dchroot-dsa \
  51. --disable-csbuild \
  52. --disable-debug \
  53. --disable-pam \
  54. --disable-doxygen \
  55. --disable-rpath
  56. define Package/schroot/install
  57. $(INSTALL_DIR) $(1)/usr/bin
  58. $(INSTALL_SUID) $(PKG_INSTALL_DIR)/usr/bin/schroot $(1)/usr/bin/
  59. $(INSTALL_DIR) $(1)/etc/schroot
  60. $(CP) -R $(PKG_INSTALL_DIR)/etc/schroot/* $(1)/etc/schroot
  61. $(INSTALL_DIR) $(1)/usr/lib/schroot
  62. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libsbuild.* $(1)/usr/lib/
  63. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/schroot/* $(1)/usr/lib/schroot/
  64. $(INSTALL_DIR) $(1)/usr/share/schroot
  65. $(CP) -R $(PKG_INSTALL_DIR)/usr/share/schroot/* $(1)/usr/share/schroot/
  66. $(INSTALL_DIR) $(1)/etc/init.d
  67. $(INSTALL_BIN) ./files/schroot.init $(1)/etc/init.d/schroot
  68. endef
  69. $(eval $(call BuildPackage,schroot))