augeas: add new package
Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz> Co-authored-by: Jeffery To <jeffery.to@gmail.com>
This commit is contained in:
parent
8310fc5a17
commit
7fc497dd67
1 changed files with 93 additions and 0 deletions
93
utils/augeas/Makefile
Normal file
93
utils/augeas/Makefile
Normal file
|
@ -0,0 +1,93 @@
|
|||
#
|
||||
# Copyright (C) 2019 CZ.NIC, z. s. p. o. (https://www.nic.cz/)
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=augeas
|
||||
PKG_VERSION:=1.12.0
|
||||
PKG_RELEASE=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://download.augeas.net/
|
||||
PKG_HASH:=321942c9cc32185e2e9cb72d0a70eea106635b50269075aca6714e3ec282cb87
|
||||
|
||||
PKG_INSTALL:=1
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
PKG_LICENSE:=LGPL-2.1-or-later
|
||||
PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec@nic.cz>
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/augeas
|
||||
SECTION:=utils
|
||||
CATEGORY:=Utilities
|
||||
TITLE:=A configuration editing tool
|
||||
URL:=http://augeas.net
|
||||
DEPENDS:=+libxml2 +libreadline +libncurses
|
||||
endef
|
||||
|
||||
define Package/augeas/description
|
||||
Augeas is a configuration editing tool.
|
||||
It parses configuration files in their
|
||||
native formats and transforms them into a tree.
|
||||
Configuration changes are made by manipulating this
|
||||
tree and saving it back into native config files.
|
||||
endef
|
||||
|
||||
define Package/augeas-lenses
|
||||
SECTION:=utils
|
||||
CATEGORY:=Utilities
|
||||
TITLE:=Augeas lenses
|
||||
URL:=http://augeas.net
|
||||
DEPENDS:=+augeas
|
||||
endef
|
||||
|
||||
define Package/augeas-lense/description
|
||||
Set of Augeas lenses.
|
||||
endef
|
||||
|
||||
define Package/augeas-lenses-tests
|
||||
SECTION:=utils
|
||||
CATEGORY:=Utilities
|
||||
TITLE:=Augeas lenses tests
|
||||
URL:=http://augeas.net
|
||||
DEPENDS:=+augeas
|
||||
endef
|
||||
|
||||
define Package/augeas-lenses-tests/description
|
||||
Set of tests for official Augeas lenses.
|
||||
endef
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) $(1)/usr/include
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
|
||||
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
|
||||
endef
|
||||
|
||||
define Package/augeas/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
|
||||
$(INSTALL_DIR) $(1)/usr/lib/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
define Package/augeas-lenses/install
|
||||
$(INSTALL_DIR) $(1)/usr/share/augeas/lenses/dist
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/share/augeas/lenses/dist/* $(1)/usr/share/augeas/lenses/dist/
|
||||
endef
|
||||
|
||||
define Package/augeas-lenses-tests/install
|
||||
$(INSTALL_DIR) $(1)/usr/share/augeas/lenses/dist/tests
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/share/augeas/lenses/dist/tests/* $(1)/usr/share/augeas/lenses/dist/tests
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,augeas))
|
||||
$(eval $(call BuildPackage,augeas-lenses))
|
||||
$(eval $(call BuildPackage,augeas-lenses-tests))
|
Loading…
Reference in a new issue