Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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.9
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=@GNU/sed
  13. PKG_HASH:=6e226b732e1cd739464ad6862bd1a1aba42d7982922da7a53519631d24975181
  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. URL:=https://www.gnu.org/software/sed/
  26. ALTERNATIVES:=300:/bin/sed:/usr/libexec/sed-gnu
  27. endef
  28. define Package/sed/description
  29. sed (stream editor) is a non-interactive command-line text editor. sed is commonly
  30. used to filter text, i.e., it takes text input, performs some operation (or set of
  31. operations) on it, and outputs the modified text. sed is typically used for
  32. extracting part of a file using pattern matching or substituting multiple
  33. occurrences of a string within a file.
  34. endef
  35. CONFIGURE_ARGS += \
  36. --disable-acl \
  37. --without-selinux
  38. define Package/sed/install
  39. $(INSTALL_DIR) $(1)/usr/libexec
  40. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sed $(1)/usr/libexec/sed-gnu
  41. endef
  42. $(eval $(call BuildPackage,sed))