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.

96 lines
2.5 KiB

  1. #
  2. # Copyright (C) 2019 CZ.NIC, z. s. p. o. (https://www.nic.cz/)
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=augeas
  9. PKG_VERSION:=1.12.0
  10. PKG_RELEASE=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://download.augeas.net/
  13. PKG_HASH:=321942c9cc32185e2e9cb72d0a70eea106635b50269075aca6714e3ec282cb87
  14. PKG_INSTALL:=1
  15. PKG_BUILD_PARALLEL:=1
  16. PKG_LICENSE:=LGPL-2.1-or-later
  17. PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec@nic.cz>
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/augeas
  20. SECTION:=utils
  21. CATEGORY:=Utilities
  22. TITLE:=A configuration editing tool
  23. URL:=http://augeas.net
  24. DEPENDS:=+libxml2 +libreadline +libncurses
  25. endef
  26. define Package/augeas/description
  27. Augeas is a configuration editing tool.
  28. It parses configuration files in their
  29. native formats and transforms them into a tree.
  30. Configuration changes are made by manipulating this
  31. tree and saving it back into native config files.
  32. endef
  33. define Package/augeas-lenses
  34. SECTION:=utils
  35. CATEGORY:=Utilities
  36. TITLE:=Augeas lenses
  37. URL:=http://augeas.net
  38. DEPENDS:=+augeas
  39. endef
  40. define Package/augeas-lense/description
  41. Set of Augeas lenses.
  42. endef
  43. CONFIGURE_ARGS+= \
  44. --without-selinux
  45. define Package/augeas-lenses-tests
  46. SECTION:=utils
  47. CATEGORY:=Utilities
  48. TITLE:=Augeas lenses tests
  49. URL:=http://augeas.net
  50. DEPENDS:=+augeas
  51. endef
  52. define Package/augeas-lenses-tests/description
  53. Set of tests for official Augeas lenses.
  54. endef
  55. define Build/InstallDev
  56. $(INSTALL_DIR) $(1)/usr/include
  57. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  58. $(INSTALL_DIR) $(1)/usr/lib
  59. $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
  60. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  61. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
  62. endef
  63. define Package/augeas/install
  64. $(INSTALL_DIR) $(1)/usr/bin
  65. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  66. $(INSTALL_DIR) $(1)/usr/lib/
  67. $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
  68. endef
  69. define Package/augeas-lenses/install
  70. $(INSTALL_DIR) $(1)/usr/share/augeas/lenses/dist
  71. $(CP) $(PKG_INSTALL_DIR)/usr/share/augeas/lenses/dist/* $(1)/usr/share/augeas/lenses/dist/
  72. endef
  73. define Package/augeas-lenses-tests/install
  74. $(INSTALL_DIR) $(1)/usr/share/augeas/lenses/dist/tests
  75. $(CP) $(PKG_INSTALL_DIR)/usr/share/augeas/lenses/dist/tests/* $(1)/usr/share/augeas/lenses/dist/tests
  76. endef
  77. $(eval $(call BuildPackage,augeas))
  78. $(eval $(call BuildPackage,augeas-lenses))
  79. $(eval $(call BuildPackage,augeas-lenses-tests))