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.

54 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2010-2016 OpenWrt.org
  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:=sed
  9. PKG_VERSION:=4.8
  10. PKG_RELEASE:=3
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=@GNU/sed
  13. PKG_HASH:=f79b0cfea71b37a8eeec8490db6c5f7ae7719c35587f21edb0617f370eeff633
  14. PKG_MAINTAINER:=Russell Senior <russell@personaltelco.net>
  15. PKG_LICENSE:=GPL-3.0-or-later
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_CPE_ID:=cpe:/a:gnu:sed
  18. PKG_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/sed
  22. SECTION:=utils
  23. CATEGORY:=Utilities
  24. TITLE:=sed stream editor utility - full version
  25. DEPENDS:=+libpcre
  26. URL:=https://www.gnu.org/software/sed/
  27. ALTERNATIVES:=300:/bin/sed:/usr/libexec/sed-gnu
  28. endef
  29. define Package/sed/description
  30. sed (stream editor) is a non-interactive command-line text editor. sed is commonly
  31. used to filter text, i.e., it takes text input, performs some operation (or set of
  32. operations) on it, and outputs the modified text. sed is typically used for
  33. extracting part of a file using pattern matching or substituting multiple
  34. occurrences of a string within a file.
  35. endef
  36. CONFIGURE_ARGS += \
  37. --disable-acl \
  38. --without-selinux
  39. define Package/sed/install
  40. $(INSTALL_DIR) $(1)/usr/libexec
  41. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sed $(1)/usr/libexec/sed-gnu
  42. endef
  43. $(eval $(call BuildPackage,sed))