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.

97 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:=3
  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. include $(INCLUDE_DIR)/nls.mk
  20. define Package/augeas
  21. SECTION:=utils
  22. CATEGORY:=Utilities
  23. TITLE:=A configuration editing tool
  24. URL:=http://augeas.net
  25. DEPENDS:=+libxml2 +libreadline +libncurses
  26. endef
  27. define Package/augeas/description
  28. Augeas is a configuration editing tool.
  29. It parses configuration files in their
  30. native formats and transforms them into a tree.
  31. Configuration changes are made by manipulating this
  32. tree and saving it back into native config files.
  33. endef
  34. define Package/augeas-lenses
  35. SECTION:=utils
  36. CATEGORY:=Utilities
  37. TITLE:=Augeas lenses
  38. URL:=http://augeas.net
  39. DEPENDS:=+augeas
  40. endef
  41. define Package/augeas-lense/description
  42. Set of Augeas lenses.
  43. endef
  44. CONFIGURE_ARGS+= \
  45. --without-selinux
  46. define Package/augeas-lenses-tests
  47. SECTION:=utils
  48. CATEGORY:=Utilities
  49. TITLE:=Augeas lenses tests
  50. URL:=http://augeas.net
  51. DEPENDS:=+augeas
  52. endef
  53. define Package/augeas-lenses-tests/description
  54. Set of tests for official Augeas lenses.
  55. endef
  56. define Build/InstallDev
  57. $(INSTALL_DIR) $(1)/usr/include
  58. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  59. $(INSTALL_DIR) $(1)/usr/lib
  60. $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
  61. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  62. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
  63. endef
  64. define Package/augeas/install
  65. $(INSTALL_DIR) $(1)/usr/bin
  66. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  67. $(INSTALL_DIR) $(1)/usr/lib/
  68. $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
  69. endef
  70. define Package/augeas-lenses/install
  71. $(INSTALL_DIR) $(1)/usr/share/augeas/lenses/dist
  72. $(CP) $(PKG_INSTALL_DIR)/usr/share/augeas/lenses/dist/* $(1)/usr/share/augeas/lenses/dist/
  73. endef
  74. define Package/augeas-lenses-tests/install
  75. $(INSTALL_DIR) $(1)/usr/share/augeas/lenses/dist/tests
  76. $(CP) $(PKG_INSTALL_DIR)/usr/share/augeas/lenses/dist/tests/* $(1)/usr/share/augeas/lenses/dist/tests
  77. endef
  78. $(eval $(call BuildPackage,augeas))
  79. $(eval $(call BuildPackage,augeas-lenses))
  80. $(eval $(call BuildPackage,augeas-lenses-tests))